.. _functx_index-of-string: ====================== functx:index-of-string ====================== A posição (ou as posições) de um trecho Descrição ~~~~~~~~~ A função functx:index-of-string devolve um ou mais inteiros com a posição de $substring dentro de $arg. Trechos sobrepostos não são contados. Se $arg não contiver $substring, devolve a sequência vazia. .. list-table:: :widths: 40 60 :header-rows: 1 * - **Parâmetros** - **Descrição** * - arg:string() - a string * - substring:string() - o trecho a procurar Exemplos ~~~~~~~~ .. list-table:: :widths: 50 50 :header-rows: 1 * - **XPath** - **Resultado** * - functx:index-of-string('abcdabcdabcd','abc') - (1, 5, 9) * - functx:index-of-string('abcd','abc') - 1 * - functx:index-of-string('xxx','abc') - () Veja também ~~~~~~~~~~~ .. toctree:: :titlesonly: :glob: * :ref:`functx_index-of-string-first`. * :ref:`functx_index-of-string-last`.