capitalize()

This function converts every initial letter of a word in a into an uppercase letter. Parameter b determines the locale according to whose rule the conversion to upper case is to take place. By default, only spaces are used as separator between words, which can be changed with d. Use c to control whether successive separators are to be combined into a single blank character or copied unchanged.

Parameters


Parameter

Description

a

Text to be capitalised.

b

(optional) Locale. Default: de_DE. Note: Valid values can be selected via the three dots.

c

(optional) false if several consecutive spaces/whitespaces should be merged to one space. Default: true

d

(optional) false if not only spaces but all whitespaces should be used to find the words to be capitalised. Default: true

Examples


Parameter a

Parameter b

Parameter c

Parameter d

Result

hello world




Hello World

hello world

DE_de



Hello World

hello world

EN_us



Hello World

hello world

EN_us

false


Hello World

hello[TAB][TAB]world

DE_de

false


Hello[TAB][TAB]world

hello[TAB][TAB]world

DE_de

false

false

Hello[TAB][TAB]World

hello[TAB][TAB]world

DE_de

true

false

Hello World