C# Класс Nintenlord.Utility.StringExtensions

Extensions and helper methods to string class
Показать файл Открыть проект

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

Метод Описание
Amount ( this text, char value ) : int
Amount ( this text, char value, int start, int length ) : int
AmountInTheBeginning ( this text, char value ) : int
AmountInTheEnd ( this text, char value ) : int
AmountOfLines ( this text ) : int
Contains ( this text, Predicate test ) : bool
ContainsAnyOf ( this text, char toContain ) : bool
ContainsNonWhiteSpace ( this text ) : bool
ContainsWhiteSpace ( this text ) : bool
FirstNonWhiteSpaceIs ( this s, char c ) : bool
GetIndexes ( this text, string toFind ) : int[]
GetLableName ( this parameter ) : string
GetMathStringValue ( this s, int &result ) : bool
GetMathStringValue ( this s ) : int?
GetValue ( this parameter ) : int
IndexOf ( this text, Predicate match ) : int
IsBinary ( this parameter ) : bool
IsHexByte ( this parameter ) : bool
IsHexNumber ( this parameter ) : bool
IsHexWord ( this parameter ) : bool
IsLable ( this parameter ) : bool
IsValidNumber ( this parameter ) : bool
LastIndexOf ( this text, Predicate match ) : int
Remove ( this bldr, int length ) : StringBuilder
RemoveFromEnd ( this bldr, int length ) : StringBuilder
Repeat ( this text, int toLength ) : string
ReplaceEach ( this text, string toReplace, string with ) : string
Same ( string a, int index1, string b, int index2, int length ) : bool
Split ( this text ) : string[]
Split ( this line, ICollection separators, char>.Dictionary uniters ) : string[]
Split ( this line, ICollection separators, char>.Dictionary uniters, int &nonClosedParenthesis ) : string[]
Split ( this line, char separators, char uniters ) : string[]
ToLinedString ( this lines ) : string
TryGetValue ( this s, int &value ) : bool

Приватные методы

Метод Описание
RemoveAll ( this bldr ) : StringBuilder

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

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

public static Amount ( this text, char value ) : int
text this
value char
Результат int

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

public static Amount ( this text, char value, int start, int length ) : int
text this
value char
start int
length int
Результат int

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

public static AmountInTheBeginning ( this text, char value ) : int
text this
value char
Результат int

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

public static AmountInTheEnd ( this text, char value ) : int
text this
value char
Результат int

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

public static AmountOfLines ( this text ) : int
text this
Результат int

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

public static Contains ( this text, Predicate test ) : bool
text this
test Predicate
Результат bool

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

public static ContainsAnyOf ( this text, char toContain ) : bool
text this
toContain char
Результат bool

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

public static ContainsNonWhiteSpace ( this text ) : bool
text this
Результат bool

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

public static ContainsWhiteSpace ( this text ) : bool
text this
Результат bool

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

public static FirstNonWhiteSpaceIs ( this s, char c ) : bool
s this
c char
Результат bool

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

public static GetIndexes ( this text, string toFind ) : int[]
text this
toFind string
Результат int[]

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

public static GetLableName ( this parameter ) : string
parameter this
Результат string

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

public static GetMathStringValue ( this s, int &result ) : bool
s this
result int
Результат bool

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

public static GetMathStringValue ( this s ) : int?
s this
Результат int?

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

public static GetValue ( this parameter ) : int
parameter this
Результат int

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

public static IndexOf ( this text, Predicate match ) : int
text this
match Predicate
Результат int

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

public static IsBinary ( this parameter ) : bool
parameter this
Результат bool

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

public static IsHexByte ( this parameter ) : bool
parameter this
Результат bool

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

public static IsHexNumber ( this parameter ) : bool
parameter this
Результат bool

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

public static IsHexWord ( this parameter ) : bool
parameter this
Результат bool

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

public static IsLable ( this parameter ) : bool
parameter this
Результат bool

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

public static IsValidNumber ( this parameter ) : bool
parameter this
Результат bool

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

public static LastIndexOf ( this text, Predicate match ) : int
text this
match Predicate
Результат int

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

public static Remove ( this bldr, int length ) : StringBuilder
bldr this
length int
Результат StringBuilder

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

public static RemoveFromEnd ( this bldr, int length ) : StringBuilder
bldr this
length int
Результат StringBuilder

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

public static Repeat ( this text, int toLength ) : string
text this
toLength int
Результат string

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

public static ReplaceEach ( this text, string toReplace, string with ) : string
text this
toReplace string
with string
Результат string

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

public static Same ( string a, int index1, string b, int index2, int length ) : bool
a string
index1 int
b string
index2 int
length int
Результат bool

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

public static Split ( this text ) : string[]
text this
Результат string[]

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

public static Split ( this line, ICollection separators, char>.Dictionary uniters ) : string[]
line this
separators ICollection
uniters char>.Dictionary
Результат string[]

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

public static Split ( this line, ICollection separators, char>.Dictionary uniters, int &nonClosedParenthesis ) : string[]
line this
separators ICollection
uniters char>.Dictionary
nonClosedParenthesis int
Результат string[]

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

public static Split ( this line, char separators, char uniters ) : string[]
line this
separators char
uniters char
Результат string[]

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

public static ToLinedString ( this lines ) : string
lines this
Результат string

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

public static TryGetValue ( this s, int &value ) : bool
s this
value int
Результат bool