C# Class AssemblyCSharp.StringUtils

Datei anzeigen Open project: wooga/ps_social_jam

Public Methods

Method Description
CsvToJson ( this value ) : string
FormatNumber ( int value ) : string
FormatNumberWithColorCode ( int value, string colorCode ) : string
GetFormattedTime ( System.TimeSpan timeSpan ) : string
GetFormattedTime ( int totalSeconds, bool withLetters = true ) : string
GetFormattedTimeWithText ( int requiredTimeInSeconds ) : string
GetFormattedTimeWithoutLetters ( System.TimeSpan timeSpan ) : string
PrettyShorten ( string str, int maxLength ) : string
ReplaceInvalidCharactersWithEmptyStrings ( string input ) : string
SafeFormat ( string message ) : string
SplitQuotedLine ( this value, char separator, bool quotes ) : string

Method Details

CsvToJson() public static method

public static CsvToJson ( this value ) : string
value this
return string

FormatNumber() public static method

public static FormatNumber ( int value ) : string
value int
return string

FormatNumberWithColorCode() public static method

public static FormatNumberWithColorCode ( int value, string colorCode ) : string
value int
colorCode string
return string

GetFormattedTime() public static method

public static GetFormattedTime ( System.TimeSpan timeSpan ) : string
timeSpan System.TimeSpan
return string

GetFormattedTime() public static method

public static GetFormattedTime ( int totalSeconds, bool withLetters = true ) : string
totalSeconds int
withLetters bool
return string

GetFormattedTimeWithText() public static method

public static GetFormattedTimeWithText ( int requiredTimeInSeconds ) : string
requiredTimeInSeconds int
return string

GetFormattedTimeWithoutLetters() public static method

public static GetFormattedTimeWithoutLetters ( System.TimeSpan timeSpan ) : string
timeSpan System.TimeSpan
return string

PrettyShorten() public static method

public static PrettyShorten ( string str, int maxLength ) : string
str string
maxLength int
return string

ReplaceInvalidCharactersWithEmptyStrings() public static method

public static ReplaceInvalidCharactersWithEmptyStrings ( string input ) : string
input string
return string

SafeFormat() public static method

public static SafeFormat ( string message ) : string
message string
return string

SplitQuotedLine() public static method

public static SplitQuotedLine ( this value, char separator, bool quotes ) : string
value this
separator char
quotes bool
return string