Extension:StringUtils

The StringUtils extension allows to manipulate strings. It may be used to translate characters (to lower/upper case) or to replace sequences in a string.

Character translation

 * To lower case
 * converts all chars in text to lower case.
 * converts all chars in text to lower case.


 * To upper case
 * converts all chars in text to upper case.
 * converts all chars in text to upper case.

String replacement

 * Replace case sensitive
 * replace search with replace in text where char case in search must match those in text.
 * replace search with replace in text where char case in search must match those in text.


 * Replace case insensitive
 * replace search with replace in text where char case in search will be ignored.
 * replace search with replace in text where char case in search will be ignored.

Examples
produces:

this is a test.

THIS IS A TEST.

produces:

Foo ZOO bar.

Foo ZOO ZOO.

Code

 * StringUtils.php


 * StringUtils.i18n.php