C# Class Nintenlord.Event_assembler.StringExtensions

Extensions and helper methods to string class
Show file Open project: Diegoisawesome/AwesomeMapEditor-old

Public Methods

Method Description
Amount ( this text, char value ) : int
AmountInTheBeginning ( this text, char value ) : int
AmountInTheEnd ( this text, char value ) : int
ContainsAnyOf ( this text, char toContain ) : bool
ContainsNonWhiteSpace ( this text ) : bool
ContainsWhiteSpace ( this text ) : bool
GetCoordinates ( this parameter ) : int[]
GetIndexes ( this text, string toFind ) : int[]
GetLableName ( this parameter ) : string
GetValue ( this parameter ) : int
IndexOf ( this text, Predicate match ) : int
IsBinary ( this parameter ) : bool
IsCoordinate ( this parameter ) : bool
IsHexByte ( this parameter ) : bool
IsHexNumber ( this parameter ) : bool
IsHexWord ( this parameter ) : bool
IsLable ( this parameter ) : bool
IsParenthesis ( this parameter ) : bool
IsValidNumber ( this parameter ) : bool
LastIndexOf ( this text, Predicate match ) : int
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, char separators, char uniters ) : string[]
ToLinedString ( this lines ) : string
TryGetValue ( this s, int &value ) : bool

Private Methods

Method Description
IsHexDigit ( this c ) : bool
IsNewLine ( this s ) : bool

Method Details

Amount() public static method

public static Amount ( this text, char value ) : int
text this
value char
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

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

GetCoordinates() public static method

public static GetCoordinates ( this parameter ) : int[]
parameter this
return int[]

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

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

IsCoordinate() public static method

public static IsCoordinate ( 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

IsParenthesis() public static method

public static IsParenthesis ( 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

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, 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