string length
FEEL built-in function · FEEL string functions
string length(string)
Returns the number of characters in the string.
The length counts characters (Unicode code points), so accented letters and emoji count as one each. Spaces count too. A non-string argument such as a number gives null; convert it with string() first if you want the length of its text.
Parameters
| Parameter | Type | Description |
|---|---|---|
| string | string | the string to measure |
Examples
string length("foo")
3
Try it ↑
string length("")
0
Try it ↑
Edge cases and null handling
string length(string(123))
3
Try it ↑
string length(null)
null
Try it ↑
Part of FEEL string functions: the rules all of them share, string concatenation, regex pitfalls and every function side by side.
Related functions
Defined by the OMG DMN 1.6 specification, chapter 10.3.4 (built-in functions).