.. _functx_substring-after-if-contains: ================================== functx:substring-after-if-contains ================================== Faz o substring-after, devolvendo a string inteira se ela não contiver o delimitador Descrição ~~~~~~~~~ A função functx:substring-after-if-contains faz o substring-after, mas devolve a string inteira se ela não contiver o delimitador. É diferente da função fn:substring-after, que devolve uma string vazia quando não acha o delimitador. .. list-table:: :widths: 40 60 :header-rows: 1 * - **Parâmetros** - **Descrição** * - arg:string() - a string de onde tirar o trecho * - delim:string() - o delimitador Exemplos ~~~~~~~~ .. list-table:: :widths: 50 50 :header-rows: 1 * - **XPath** - **Resultado** * - functx:substring-after-if-contains('abcd','b') - cd * - functx:substring-after-if-contains('abcd','x') - abcd Veja também ~~~~~~~~~~~ .. toctree:: :titlesonly: :glob: * :ref:`substring-after`. * :ref:`functx_substring-after-last`. * :ref:`functx_substring-after-last-match`. * :ref:`functx_substring-before-if-contains`.