namespace Eu07.BlackBox;
/// The names of the stations as shown: the scenery tells the stop points of one station apart after a #.
public static class StationNames
{
/// The name up to a #, with the underscores of the scenery as spaces.
public static string Display(string name)
{
int hash = name.IndexOf('#');
var shown = hash >= 0 ? name[..hash] : name;
return shown.Replace('_', ' ').Trim();
}
}