Description
Converts the first character of a string to lowercase while leaving the rest of the string unchanged.Syntax
Parameters
Returns
Type: string The input string with its first character converted to lowercase. Returnsnull if the input is null, and empty string if input is empty.
Examples
Example 1: Basic Usage
Example 2: Processing Field Names
Notes
- Returns
nullfornullinput - Returns empty string for empty string input
- Only affects the first character
- Does not change the case of subsequent characters
See Also
- text.capitalize - Uppercase the first character
- text.camelCase - Convert to camelCase format
Frequently Asked Questions
What does flex.text.decapitalize do?
What does flex.text.decapitalize do?
It converts only the first character of a string to lowercase, leaving all other characters unchanged.
When would I use decapitalize?
When would I use decapitalize?
It is useful for converting PascalCase identifiers to camelCase-style keys, e.g., turning
'FirstName' into 'firstName'.