capitalize(a, b [,c] [,d])

Changes every first character of a word of a into uppercase. The rule for this transformation is set with b by specifying the locale. By default, only spaces are used as separator between words which can be changed with d. Subsequent occurrences of the separators are stripped to one space which can be changed with c.

Description of Parameters

Parameter

Description

a

Text to be capitalised.

b

(optional) Locale. Default: DE_de

c

(optional) false if subsequence spaces/whitespaces should not be stripped together 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