lucee.Componentcoldbox.system.core.delegates.StringUtil
Copyright Since 2005 ColdBox Framework by Luis Majano and Ortus Solutions, Corp www.ortussolutions.com --- A delegate for string manipulation and operations
Method Summary | |
---|---|
any
|
camelCase(any target)
Convert a string to camel case using a functional approach. |
any
|
headline(any target)
Create a headline from a string delimited by casing, hyphens, or underscores into a space delimited string with each word's first letter capitalized:. |
any
|
kebabCase(any target)
Create kebab-case from a string. |
any
|
lcFirst(any target)
Lowercase the first letter of the string. |
any
|
pluralize(any word)
Convert a singular word to a plural word. |
any
|
singularize(any word)
Convert a plural word to a singular word. |
any
|
slugify(any str, [numeric maxLength='0'], [any allow=''])
Slugify a string for URL Safety. |
any
|
snakeCase(any target, [any delimiter='_'])
Convert a string to snake case. |
any
|
ucFirst(any target)
Uppercase the first letter of a string. |
Methods inherited from class lucee.Component |
---|
None |
Method Detail |
---|
Convert a string to camel case using a functional approach.
target
- The string to convert to camel case.Create a headline from a string delimited by casing, hyphens, or underscores into a space delimited string with each word's first letter capitalized:
target
- The string to convert to a headline.Create kebab-case from a string.
target
- The string to convert to kebab-case.Lowercase the first letter of the string
target
- The incoming stringConvert a singular word to a plural word
word
- The word to convertConvert a plural word to a singular word
word
- The word to convertSlugify a string for URL Safety
str
- Target to slugifymaxLength
- The maximum number of characters for the slugallow
- a regex safe list of additional characters to allowConvert a string to snake case.
target
- The string to convert to snake case.delimiter
- The delimiter to use (default is underscore).Uppercase the first letter of a string.
target
- The target string