C# Класс AssemblyCSharp.StringUtils

Показать файл Открыть проект

Открытые методы

Метод Описание
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

Описание методов

CsvToJson() публичный статический Метод

public static CsvToJson ( this value ) : string
value this
Результат string

FormatNumber() публичный статический Метод

public static FormatNumber ( int value ) : string
value int
Результат string

FormatNumberWithColorCode() публичный статический Метод

public static FormatNumberWithColorCode ( int value, string colorCode ) : string
value int
colorCode string
Результат string

GetFormattedTime() публичный статический Метод

public static GetFormattedTime ( System.TimeSpan timeSpan ) : string
timeSpan System.TimeSpan
Результат string

GetFormattedTime() публичный статический Метод

public static GetFormattedTime ( int totalSeconds, bool withLetters = true ) : string
totalSeconds int
withLetters bool
Результат string

GetFormattedTimeWithText() публичный статический Метод

public static GetFormattedTimeWithText ( int requiredTimeInSeconds ) : string
requiredTimeInSeconds int
Результат string

GetFormattedTimeWithoutLetters() публичный статический Метод

public static GetFormattedTimeWithoutLetters ( System.TimeSpan timeSpan ) : string
timeSpan System.TimeSpan
Результат string

PrettyShorten() публичный статический Метод

public static PrettyShorten ( string str, int maxLength ) : string
str string
maxLength int
Результат string

ReplaceInvalidCharactersWithEmptyStrings() публичный статический Метод

public static ReplaceInvalidCharactersWithEmptyStrings ( string input ) : string
input string
Результат string

SafeFormat() публичный статический Метод

public static SafeFormat ( string message ) : string
message string
Результат string

SplitQuotedLine() публичный статический Метод

public static SplitQuotedLine ( this value, char separator, bool quotes ) : string
value this
separator char
quotes bool
Результат string