Functions39 public, 0 private

Returns the numbers of bytes required for the provided string using the specified encoding.
publicnumericbyteLen
requiredstringvalue
stringencodingUTF-8
Returns if the provided string contains an HTML tag or entity. Self-closing tags are only considered HTML if they are part of the spec.
publicbooleancontainsHtml
requiredstringcontent
Returns the number of matches found for the specified string (needle) in the provided string (haystack).
publicnumericcountMatches
requiredanyhaystack
requiredstringneedle
Creates a UUID and removes the dashes. The UUID contains of 32 uppercase characters and digits.
publicstringcreateUUID
Corrects the length of the provided string considering the specified minimum/maximum length.
publicstringfixLength
requiredstringsource
numericmin0
numericmax0
stringfill_
Corrects the length of the provided string padding the specified minimum length.
publicstringfixMinLength
requiredstringsource
requirednumericmin
stringfill_
Corrects the length of the provided string truncating the specified maximum length.
publicstringfixMaxLength
requiredstringsource
requirednumericmax
The ellipsis … is placed within the string and will not exceed the maximum.
stringellipsis
Replaces occurences of placeholder marks in the provided string with the specified values in order. Default placeholder mark is: %s
publicstringformat
String that contains placeholder marks to be replaced.
requiredstringsource
Collection of values to replace the placeholder marks in order.
requiredanyvalues
structOPTIONS
optionstringplaceholder%s
optionbooleankeepRemainingPlaceholdersfalse
how to repeat values in case there are more placeholder marks than values
option"ALL", "LAST", "NONE"repeatArgsNONE
Generates a human friendly sequence of (47) random characters.
publicstringgenerateClearString
Length of the generated sequence.
requirednumericlength
Generates a human friendly sequence of (27) random characters.
publicstringgenerateClearStringNoCase
Length of the generated sequence.
requirednumericlength
Generates a sequence of random characters.
publicstringgenerateRandomString
Length of the generated sequence.
requirednumericlength
Possible characters to appear in the generated sequence.
arraycharacterSet
Converts the provided HTML content to plain text.
publicstringhtmlToPlain
The HTML content to strip down to plain text.
requiredstringhtml
Allow transforming common elements to their plain representation.
booleantransformtrue
Calculates the phonetics for the provided word(s) based on the Cologne phonetics by Hans-Joachim Postel.
publicstringkoelnerPhonetik
Word(s) to calculate the phonetics for.
requiredanyvalue
Calculate words divided by spaces separately.
booleanseparateWordsfalse
Removes all obsolete white spaces (tabs, newlines, spaces) in the provided string. Only keeps single spaces.
publicstringminifyString
requiredstringvalue
Normalizes all newlines to linefeed (10) in the provided string.
publicstringnormalizeNewLines
requiredstringsource
Normalizes the provided string by using title case and removing obsolete whitespaces.
publicstringnormalizeString
requiredstringvalue
NONE, COMPANY, PERSONtypeNONE
Pads any digit sequence in the provided string to the specified length
publicstringpadDigits
requiredstringvalue
requirednumericpadding
structOPTIONS{}
option"DIGIT", "NUMERIC"sequenceModeDIGIT
Converts the provided plain text to HTML.
publicstringplainToHtml
requiredstringtext
Extends ColdFusion's reFindNoCase by accepted data types.
publicnumericreFindNoCase
requiredanyexpression
requiredanydata
Returns the matching groups found in the provided string using the specified regular expression. POSIX: captures all groups (supports lookbehind) JORO: captures first match only (does not support lookbehind)
publicarrayreMatchGroup
requiredstringregex
requiredstringvalue
"JORO", "POSIX"enginePOSIX
Returns the matching groups found in the provided string using the specified regular expression. POSIX: captures all groups (supports lookbehind) JORO: captures first match only (does not support lookbehind)
publicarrayreMatchGroupNoCase
requiredstringregex
requiredstringvalue
"JORO", "POSIX"enginePOSIX
Replaces the last occurence of the specified string(s) with the provided string.
publicstringreplaceLastOccurenceOf
requiredstringtarget
requiredstring, string[]search
requiredstringreplace
Replaces words (with boundaries left and right) with the provided list of words.
publicstringreplaceWords
requiredstringreplaceIn
requiredarraywordsToReplace
requiredarraywordsToReplaceWith
arrayadditionalBoundaries[]
Invokes the provided callback for each regular expression match in the provided string.
publicstringreReplaceWithCallback
requiredstringvalue
requiredstringregex
requiredfunctioncallback
booleanreturnGroupsfalse
Invokes the provided callback for each regular expression match in the provided string.
publicstringreReplaceNoCaseWithCallback
requiredstringvalue
requiredstringregex
requiredfunctioncallback
booleanreturnGroupsfalse
Returns if the provided string contains any string in the provided array. Matching is case-insensitive.
publicbooleanstringContainsAny
requiredstringvalue
requiredarrayelements
Converts the provided string to a CSS class friendly format.
publicstringtoCssFriendly
requiredstring, string[]value
booleanmultiClasstrue
Converts the provided string to a file name friendly format.
publicstringtoFileFriendly
requiredstringvalue
stringspaceCharacter_
Converts the provided string to a folder name friendly format.
publicstringtoFolderFriendly
requiredstringvalue
stringspaceCharacter_
Converts the provided string to an URL friendly format, typically used for SEO.
publicstringtoSeoFriendly
requiredstringvalue
stringlanguage
structOPTIONS{}
optionarraypreserveCharacters[]
Replaces all conflict-laden characters.
publicstringtoSqlFriendly
requiredstringvalue
publicstringtoNameCase
requiredstringvalue
required"COMPANY", "PERSON"type
Converts the first letter of each word to uppercase and the remaining letters to lowercase.
publicstringtoTitleCase
requiredstringvalue
structOPTIONS{}
optionnumericlower0
optionnumericupper0
Transforms the provided string to a regular expression. Flags will be ignored.
publicstringreTransform
requiredstringvalue
Removes all empty lines within the provided string.
publicstringtrimEmptyLines
requiredanyvalue
Removes leading, trailing and consecutive whitespaces.
publicstringtrimExtended
String to remove whitespaces in.
requiredstringvalue
Removes all tabs and obsolete newlines within the provided string.
publicstringtrimIndentation
requiredanyvalue
publicstringtrimLeadingZeros
requiredstringvalue
Compares each character of the provided strings and returns the remaining part of the first string that is not equal to the second string.
publicstringtrimToDifference
requiredstringvalueA
requiredstringvalueB
stringellipsis