C# Class Nintenlord.Utility.StringExtensions

Extensions and helper methods to string class
Datei anzeigen Open project: Diegoisawesome/AwesomeMapEditor-old

Public Methods

Method Description
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

Private Methods

Method Description
RemoveAll ( this bldr ) : StringBuilder

Method Details

Amount() public static method

public static Amount ( this text, char value ) : int
text this
value char
return int

Amount() public static method

public static Amount ( this text, char value, int start, int length ) : int
text this
value char
start int
length int
return int

AmountInTheBeginning() public static method

public static AmountInTheBeginning ( this text, char value ) : int
text this
value char
return int

AmountInTheEnd() public static method

public static AmountInTheEnd ( this text, char value ) : int
text this
value char
return int

AmountOfLines() public static method

public static AmountOfLines ( this text ) : int
text this
return int

Contains() public static method

public static Contains ( this text, Predicate test ) : bool
text this
test Predicate
return bool

ContainsAnyOf() public static method

public static ContainsAnyOf ( this text, char toContain ) : bool
text this
toContain char
return bool

ContainsNonWhiteSpace() public static method

public static ContainsNonWhiteSpace ( this text ) : bool
text this
return bool

ContainsWhiteSpace() public static method

public static ContainsWhiteSpace ( this text ) : bool
text this
return bool

FirstNonWhiteSpaceIs() public static method

public static FirstNonWhiteSpaceIs ( this s, char c ) : bool
s this
c char
return bool

GetIndexes() public static method

public static GetIndexes ( this text, string toFind ) : int[]
text this
toFind string
return int[]

GetLableName() public static method

public static GetLableName ( this parameter ) : string
parameter this
return string

GetMathStringValue() public static method

public static GetMathStringValue ( this s, int &result ) : bool
s this
result int
return bool

GetMathStringValue() public static method

public static GetMathStringValue ( this s ) : int?
s this
return int?

GetValue() public static method

public static GetValue ( this parameter ) : int
parameter this
return int

IndexOf() public static method

public static IndexOf ( this text, Predicate match ) : int
text this
match Predicate
return int

IsBinary() public static method

public static IsBinary ( this parameter ) : bool
parameter this
return bool

IsHexByte() public static method

public static IsHexByte ( this parameter ) : bool
parameter this
return bool

IsHexNumber() public static method

public static IsHexNumber ( this parameter ) : bool
parameter this
return bool

IsHexWord() public static method

public static IsHexWord ( this parameter ) : bool
parameter this
return bool

IsLable() public static method

public static IsLable ( this parameter ) : bool
parameter this
return bool

IsValidNumber() public static method

public static IsValidNumber ( this parameter ) : bool
parameter this
return bool

LastIndexOf() public static method

public static LastIndexOf ( this text, Predicate match ) : int
text this
match Predicate
return int

Remove() public static method

public static Remove ( this bldr, int length ) : StringBuilder
bldr this
length int
return StringBuilder

RemoveFromEnd() public static method

public static RemoveFromEnd ( this bldr, int length ) : StringBuilder
bldr this
length int
return StringBuilder

Repeat() public static method

public static Repeat ( this text, int toLength ) : string
text this
toLength int
return string

ReplaceEach() public static method

public static ReplaceEach ( this text, string toReplace, string with ) : string
text this
toReplace string
with string
return string

Same() public static method

public static Same ( string a, int index1, string b, int index2, int length ) : bool
a string
index1 int
b string
index2 int
length int
return bool

Split() public static method

public static Split ( this text ) : string[]
text this
return string[]

Split() public static method

public static Split ( this line, ICollection separators, char>.Dictionary uniters ) : string[]
line this
separators ICollection
uniters char>.Dictionary
return string[]

Split() public static method

public static Split ( this line, ICollection separators, char>.Dictionary uniters, int &nonClosedParenthesis ) : string[]
line this
separators ICollection
uniters char>.Dictionary
nonClosedParenthesis int
return string[]

Split() public static method

public static Split ( this line, char separators, char uniters ) : string[]
line this
separators char
uniters char
return string[]

ToLinedString() public static method

public static ToLinedString ( this lines ) : string
lines this
return string

TryGetValue() public static method

public static TryGetValue ( this s, int &value ) : bool
s this
value int
return bool