StringFormatting Class
Provides helper functions to format certain data into common string formatting
Namespace: Scopos.BabelFish.HelpersAssembly: BabelFish (in BabelFish.dll) Version: 1.11.1.4+b1da393815f6638555a663d9a94167ecabea5695
public static class StringFormatting
- Inheritance
- Object StringFormatting
| ConvertOrdinalsToLowerCase |
Converts the ordinal values to lower case.
1ST => 1st, or 2ND => 2nd
|
| FormatScore(String, Score) |
Replaces the special characters in input string format, with the score values defined in score.
Replacement characters are defined at https://support.scopos.tech/index.html?string-formatting-score-format.html
|
| FormatScore(String, LeagueTeamResult) |
Formats the score for the passed in LeagueTeamResult.
Special case for if the resutl if a DNS, DSQ, or LATE
|
| FormatScore(ScoreFormatCollection, String, String, Score) |
Formats to a string, the inputed score, based on the ScoreFormatCollection
|
| FormatScore(ScoreFormatCollection, String, String, Score) |
Formats to a string, the inputed score, based on the ScoreFormatCollection
Obsolete |
| GetTruncatedString |
Truncates a string at the given number of characters (default to 24).
|
| Hometown(Location) |
Formats a Location instance in a standard format.
|
| Hometown(String, String, String) |
Formats city, state and country in a standard format.
|
| Location | |
| SingleDate(DateTime) |
Formats the passed in DateTime into a standard method of displaying dates.
|
| SingleDate(String) | |
| SingleDateTime | |
| SpanOfDates(DateTime, DateTime) |
Formats a span of dates, a start and end date, to a common formatted string.
|
| SpanOfDates(String, String) |
Formats a span of dates, a start and end date, to a common formatted string.
If either input variable can not be parsed as a DateTime, then today's date is used.
|
| TitleCase |
Returns the input string in Title Case, and converts ordinals to lower case.
|