A Sandcastle Documented Class Library
StringExtensions Methods |
The StringExtensions type exposes the following members.
Methods
Name | Description | |
---|---|---|
CapitalizeFirstLetter |
The CapitalizeFirstLetter() method takes non empty input string sequence
and capitalize first letter of the string
|
|
ConvertCyrillicToLatinLetters |
The ConvertCyrillicToLatinLetters() method takes cyrillic string sequence and transliterate it to latin one.
|
|
ConvertLatinToCyrillicKeyboard |
The ConvertLatinToCyrillicKeyboard() method takes latin string sequence and transliterate it to cyrillic one.
|
|
GetFileExtension |
The GetFileExtension() method reads file name and returns the extension of the file.
|
|
GetFirstCharacters |
The GetFirstCharacters() method takes string sequence and returns string substring
starting from the beginning of the sequence with length - parsed integer number.
|
|
GetStringBetween |
The GetStringBetween() method takes input string and returns string between
parsed start and end strings.
|
|
ToBoolean |
Check if a string contains true-like statements value: "true", "ok", "yes", "1", "да"
|
|
ToByteArray |
Converts a string into an array of bytes
|
|
ToContentType |
The ToContentType() method reads file name, gets the extension of the file
and according to it returns file content type.
|
|
ToDateTime |
Converts input string to DateTime.
|
|
ToInteger |
Converts input string to integer number.
|
|
ToLong |
Converts input string to long integer number.
|
|
ToMd5Hash |
Converts input string to bytes array, compute the hash and each byte of the hashed data
is presented as hexadecimal string.
|
|
ToShort |
Converts input string to 16-bit sight integer number.
|
|
ToValidLatinFileName |
The ToValidLatinFileName() method takes string, converts it to latin (if it is in cyrillic)
and then check whether given file name consists of letters and numbers.
|
|
ToValidUsername |
The ToValidUsername() method takes string, converts it to latin (if it is in cyrillic)
and then check whether given user name consists of letters and numbers.
|
See Also