| StringExtras Class |
Namespace: ANDREICSLIB.ClassExtras
The StringExtras type exposes the following members.
| Name | Description | |
|---|---|---|
| AddText |
append/prepend text to a string
| |
| ApplyTrim |
Trim a string of a certain number of chars, either from the start or the end
| |
| CleanString |
removes \n \r and \0 from the start and end of a string
| |
| ContainsSubStringCount |
count how many occurences of a substring occur in a string
| |
| GetFirstRepetition |
get first block of repetitions in string
| |
| GetMd5Hash | ||
| GetMD5OfString | ||
| MergeWhiteSpace |
merges all consecutive whitespace into one character
| |
| PadString |
Truncate or pad a string with spaces to a certain length
| |
| RemoveAllNonAlphabetChars | ||
| RemoveComments |
remove comment lines etc
| |
| ReplaceAllChars(String, Char, Char) |
Replace all instances of a char with another char
| |
| ReplaceAllChars(String, String, Char) | ||
| ReplaceAllChars(String, String, String) | ||
| ReplaceCharAtPosition |
Replace a char in a string with another
| |
| ReplaceStringAtPosition |
replace a length of string in a string with another string
| |
| SplitString | ||
| SplitStrings |
Split a long string into separate lines based on a max length
| |
| SplitTwo | ||
| SplitTwoInt | ||
| StringIsNumber | ||
| StringStartsWithLetter | ||
| ToCamelCase |
Auto capitalise a string - first letter in each word is capitalised, rest are lower case
| |
| Truncate |