.. _functx_capitalize-first: ======================= functx:capitalize-first ======================= Capitalizes the first character of a string Description ~~~~~~~~~~~ The functx:capitalize-first function capitalizes the first character of $arg. If the first character is not a lowercase letter, $arg is left unchanged. It capitalizes only the first character of the entire string, not the first letter of every word. .. list-table:: :widths: 40 60 :header-rows: 1 * - **Parameters** - **Description** * - arg:string() - the word or phrase to capitalize Examples ~~~~~~~~ .. list-table:: :widths: 50 50 :header-rows: 1 * - **XPath** - **Results** * - functx:capitalize-first('hello') - Hello * - functx:capitalize-first('hello world') - Hello world * - functx:capitalize-first('Hello world') - Hello world See Also ~~~~~~~~ .. toctree:: :titlesonly: :glob: * :ref:`upper-case`.