Method | Description | |
---|---|---|
AppendIfExists ( string div, string val ) : string | ||
CompareAlphaNumeric ( string a, string b ) : int |
Comparison delegate for strings that contain letters and numbers. Improves upon standard string comparisons where "A11" comes before "A2". Usage: Array.Sort(list, StringUtils.CompareAlphaNumeric);
|
|
ExtractNumber ( string numStr ) : int | ||
FindNumericEnd ( int start, string numStr ) : int | ||
FindNumericEnd ( string numStr ) : int | ||
FindNumericStart ( string numStr ) : int | ||
GetSmartPlural ( int num, string noun ) : string |
Get phrase in present tense: e.g. there "are no boxes" selected; there "is one box" selected; there "are 5 boxes" selected
|
|
GetSmartPlural ( int num, string noun, string addToMakePlural ) : string | ||
GetSmartPluralPastTense ( int num, string noun ) : string |
Get phrase in past tense: e.g. "no boxes were" selected; "one box was" selected; "5 boxes were" selected
|
|
GetSmartPluralPastTense ( int num, string noun, string addToMakePlural ) : string | ||
IsAlphaNumeric ( char x ) : bool | ||
IsAlphaNumeric ( string x ) : bool | ||
IsNumeric ( object expression ) : bool | ||
Join ( IEnumerable list, string delim ) : string | ||
RemoveExcessWhiteSpace ( string str ) : string | ||
RemoveFromFront ( string str, string frontStr ) : string | ||
RenameFolder ( string oldDirPath, string proposedName ) : string | ||
Split ( string str, string delim ) : string[] | ||
SplitToList ( string str, string delim ) : List |
||
SplitToList ( string str, string delim, bool trim ) : List |
||
SubstringAlphaNumericAtPosition ( string str, int pos ) : string | ||
SubstringBetween ( string str, string start, string end ) : string | ||
UppercaseFirst ( this s ) : string | ||
WildcardEquals ( string pattern, string str ) : bool | ||
WildcardEquals ( string pattern, string str, bool ignoreCase ) : bool |
Method | Description | |
---|---|---|
CompareAlphaNumericNums ( string a, string b ) : int | ||
WildcardEquals ( string pattern, int patternIdx, string stringRenamed, int stringIdx ) : bool |
public static AppendIfExists ( string div, string val ) : string | ||
div | string | |
val | string | |
return | string |
public static CompareAlphaNumeric ( string a, string b ) : int | ||
a | string | |
b | string | |
return | int |
public static ExtractNumber ( string numStr ) : int | ||
numStr | string | |
return | int |
public static FindNumericEnd ( int start, string numStr ) : int | ||
start | int | |
numStr | string | |
return | int |
public static FindNumericEnd ( string numStr ) : int | ||
numStr | string | |
return | int |
public static FindNumericStart ( string numStr ) : int | ||
numStr | string | |
return | int |
public static GetSmartPlural ( int num, string noun ) : string | ||
num | int | |
noun | string | |
return | string |
public static GetSmartPlural ( int num, string noun, string addToMakePlural ) : string | ||
num | int | |
noun | string | |
addToMakePlural | string | |
return | string |
public static GetSmartPluralPastTense ( int num, string noun ) : string | ||
num | int | |
noun | string | |
return | string |
public static GetSmartPluralPastTense ( int num, string noun, string addToMakePlural ) : string | ||
num | int | |
noun | string | |
addToMakePlural | string | |
return | string |
public static IsAlphaNumeric ( char x ) : bool | ||
x | char | |
return | bool |
public static IsAlphaNumeric ( string x ) : bool | ||
x | string | |
return | bool |
public static IsNumeric ( object expression ) : bool | ||
expression | object | |
return | bool |
public static Join ( IEnumerable list, string delim ) : string | ||
list | IEnumerable | |
delim | string | |
return | string |
public static RemoveExcessWhiteSpace ( string str ) : string | ||
str | string | |
return | string |
public static RemoveFromFront ( string str, string frontStr ) : string | ||
str | string | |
frontStr | string | |
return | string |
public static RenameFolder ( string oldDirPath, string proposedName ) : string | ||
oldDirPath | string | |
proposedName | string | |
return | string |
public static Split ( string str, string delim ) : string[] | ||
str | string | |
delim | string | |
return | string[] |
public static SplitToList ( string str, string delim ) : List |
||
str | string | |
delim | string | |
return | List |
public static SplitToList ( string str, string delim, bool trim ) : List |
||
str | string | |
delim | string | |
trim | bool | |
return | List |
public static SubstringAlphaNumericAtPosition ( string str, int pos ) : string | ||
str | string | |
pos | int | |
return | string |
public static SubstringBetween ( string str, string start, string end ) : string | ||
str | string | |
start | string | |
end | string | |
return | string |
public static UppercaseFirst ( this s ) : string | ||
s | this | |
return | string |
public static WildcardEquals ( string pattern, string str ) : bool | ||
pattern | string | |
str | string | |
return | bool |
public static WildcardEquals ( string pattern, string str, bool ignoreCase ) : bool | ||
pattern | string | |
str | string | |
ignoreCase | bool | |
return | bool |