diff --git a/extensions/functions_string.yaml b/extensions/functions_string.yaml index 2e0f174db..3acdb48ae 100644 --- a/extensions/functions_string.yaml +++ b/extensions/functions_string.yaml @@ -1048,6 +1048,34 @@ scalar_functions: char_set: values: [ UTF8, ASCII_ONLY ] return: "fixedchar" + - + name: initcap + description: >- + Capitalizes the first character of each word in the input string, including articles, + and lowercases the rest. Implementation should follow the utf8_unicode_ci collations + according to the Unicode Collation Algorithm described at http://www.unicode.org/reports/tr10/. + impls: + - args: + - value: "string" + name: "input" + options: + char_set: + values: [ UTF8, ASCII_ONLY ] + return: "string" + - args: + - value: "varchar" + name: "input" + options: + char_set: + values: [ UTF8, ASCII_ONLY ] + return: "varchar" + - args: + - value: "fixedchar" + name: "input" + options: + char_set: + values: [ UTF8, ASCII_ONLY ] + return: "fixedchar" - name: char_length description: >-