You are viewing the documentation for Blueriq 16. Documentation for other versions is available in our documentation directory.
CAPITALIZE
Returns a string with the first character uppercased.
Syntax
CAPITALIZE string CAPITALIZE ( string, lowerTheRest )
Inputs
- string - An attribute of base type string, an expression that results in a string or a constant string value.
- lowerTheRest - An attribute of base type boolean, an expression that results in a boolean or a constant boolean value, indicating that the other characters need to be lowercased. This parameter is optional and if it is not supplied, the other characters are left untouched.
Return type
- string
Example
Expression | Result | Type |
---|---|---|
CAPITALIZE "hello" | "Hello" | String |
CAPITALIZE ( "WORLD" ) | "WORLD" | String |
CAPITALIZE ( "hello world " ) | "Hello world " | String |
CAPITALIZE " hELLo " | " hELLo " | String |
CAPITALIZE TRIM " hELLo " | "HELLo" | String |
CAPITALIZE TRIM LOWERCASE " hELLo " | "Hello" | String |
CAPITALIZE ( "hello" , TRUE ) | "Hello" | String |
CAPITALIZE ( "WORLD" , TRUE ) | "World" | String |
CAPITALIZE ( "hello world " , TRUE ) | "Hello world " | String |
CAPITALIZE ( " hELLo " , TRUE ) | " hello " | String |
CAPITALIZE ( TRIM " hELLo " , TRUE ) | "Hello" | String |
CAPITALIZE( ? ) | ? | String |
Overview
Content Tools