Strings (dw::core::Strings)
This module contains helper functions to work with Strings.
To use this module, you must import it to your DataWeave code, for example,
by adding the line import * from dw::core::Strings
to the header of your
DataWeave script.
Functions
Name | Description |
---|---|
Appends the |
|
Returns a string in camel case based on underscores in the string. |
|
Capitalizes the first letter of each word in a string. |
|
Returns the Unicode for the first character in an input string. |
|
Returns the Unicode for a character at the specified index. |
|
Replaces spaces, underscores, and camel-casing in a string with dashes (hyphens). |
|
Returns a character that matches the specified Unicode. |
|
Checks if the |
|
Checks if the |
|
Checks if the |
|
Checks if the |
|
Checks if the |
|
Checks if the |
|
The specified |
|
Returns a number as an ordinal, such as |
|
Pluralizes a singular string. |
|
Prepends the |
|
Repeats a |
|
The specified |
|
Converts a plural string to its singular form. |
|
Gets the substring after the first occurrence of a separator. The separator is not returned. |
|
Gets the substring after the last occurrence of a separator. The separator is not returned. |
|
Gets the substring before the first occurrence of a separator. The separator is not returned. |
|
Gets the substring before the last occurrence of a separator. The separator is not returned. |
|
Replaces hyphens, spaces, and camel-casing in a string with underscores. |
|
Unwraps a given |
|
Checks that the string length is no larger than the specified |
|
Wraps |
|
Wraps the specified |