.. _string-length: ============= string-length ============= O tamanho de uma string Descrição ~~~~~~~~~ A função fn:string-length devolve um xs:integer com o número de caracteres da string. Os espaços contam, inclusive os do início e do fim. .. list-table:: :widths: 40 60 :header-rows: 1 * - **Parâmetros** - **Descrição** * - arg:string() - a string a medir; se omitida, o valor de string do item de contexto Exemplos ~~~~~~~~ .. list-table:: :widths: 50 50 :header-rows: 1 * - **XPath** - **Resultado** * - 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 Veja também ~~~~~~~~~~~ .. toctree:: :titlesonly: :glob: * :ref:`functx_max-line-length`.