.. _string-length: ============= string-length ============= The length of a string Description ~~~~~~~~~~~ The fn-string-length function returns an xs:integer value indicating the number of characters in the string. Whitespace is significant, so leading and trailing whitespace characters are counted. .. list-table:: :widths: 40 60 :header-rows: 1 * - **Parameters** - **Description** * - arg:string() - Examples ~~~~~~~~ .. list-table:: :widths: 50 50 :header-rows: 1 * - **XPath** - **Results** * - string-length('query') - 5 * - string-length(' query ') - 9 * - string-length(normalize-space(' query ')) - 5 * - string-length('xml query') - 9 * - string-length('') - 0 * - string-length(()) - 0 See Also ~~~~~~~~ .. toctree:: :titlesonly: :glob: * :ref:`functx_max-line-length`.