Strings (dw::core::Strings)
DataWeave 2.2 is compatible and bundled with Mule 4.2. This version of Mule reached its End of Life on May 2, 2023, when Extended Support ended. Deployments of new applications to CloudHub that use this version of Mule are no longer allowed. Only in-place updates to applications are permitted. MuleSoft recommends that you upgrade to the latest version of Mule 4 that is in Standard Support so that your applications run with the latest fixes and security enhancements. |
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 |
|
Wraps |
|
Wraps the specified |