Click or drag to resize
StringExtras Methods

The StringExtras type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAddText
append/prepend text to a string
Public methodStatic memberApplyTrim
Trim a string of a certain number of chars, either from the start or the end
Public methodStatic memberCleanString
removes \n \r and \0 from the start and end of a string
Public methodStatic memberContainsSubStringCount
count how many occurences of a substring occur in a string
Public methodStatic memberGetFirstRepetition
get first block of repetitions in string
Public methodStatic memberGetMd5Hash
Public methodStatic memberGetMD5OfString
Public methodStatic memberMergeWhiteSpace
merges all consecutive whitespace into one character
Public methodStatic memberPadString
Truncate or pad a string with spaces to a certain length
Public methodStatic memberRemoveAllNonAlphabetChars
Public methodStatic memberRemoveComments
remove comment lines etc
Public methodStatic memberReplaceAllChars(String, Char, Char)
Replace all instances of a char with another char
Public methodStatic memberReplaceAllChars(String, String, Char)
Public methodStatic memberReplaceAllChars(String, String, String)
Public methodStatic memberReplaceCharAtPosition
Replace a char in a string with another
Public methodStatic memberReplaceStringAtPosition
replace a length of string in a string with another string
Public methodStatic memberSplitString
Public methodStatic memberSplitStrings
Split a long string into separate lines based on a max length
Public methodStatic memberSplitTwo
Public methodStatic memberSplitTwoInt
Public methodStatic memberStringIsNumber
Public methodStatic memberStringStartsWithLetter
Public methodStatic memberToCamelCase
Auto capitalise a string - first letter in each word is capitalised, rest are lower case
Public methodStatic memberTruncate
Top
See Also