C# Класс Iaik.Utils.StringHelper

Static class which provides some string helper methods
Показать файл Открыть проект

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

Метод Описание
IndentPerLine ( string src, string indention ) : string

Intends each line of the source string by the specified indention string

ReplaceVariables ( string expression, VariableDetectedCB cb ) : string

Looks for {[..]} constructions in the specified expression, and calls the callback for each of them replacing its occurance with the return value of the callback

SplitToKeyValue ( string s, string delimiter ) : string>?.KeyValuePair

Splits the specified string by the specified delimiter into key[delimiter]value

StringToUInt64 ( string val ) : System.UInt64

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

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

Intends each line of the source string by the specified indention string
public static IndentPerLine ( string src, string indention ) : string
src string
indention string
Результат string

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

Looks for {[..]} constructions in the specified expression, and calls the callback for each of them replacing its occurance with the return value of the callback
public static ReplaceVariables ( string expression, VariableDetectedCB cb ) : string
expression string
cb VariableDetectedCB
Результат string

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

Splits the specified string by the specified delimiter into key[delimiter]value
public static SplitToKeyValue ( string s, string delimiter ) : string>?.KeyValuePair
s string
delimiter string
Результат string>?.KeyValuePair

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

public static StringToUInt64 ( string val ) : System.UInt64
val string
Результат System.UInt64