.. _functx_insert-string: ==================== functx:insert-string ==================== Insere uma string numa posição Descrição ~~~~~~~~~ A função functx:insert-string insere uma string ($stringToInsert) dentro de outra ($originalString), na posição indicada (começando em 1). Se a posição for maior que o tamanho de $originalString, $stringToInsert é colocada no fim. .. list-table:: :widths: 40 60 :header-rows: 1 * - **Parâmetros** - **Descrição** * - originalString:string() - a string original, onde inserir * - stringToInsert:string() - a string a inserir * - pos:integer() - a posição Exemplos ~~~~~~~~ .. list-table:: :widths: 50 50 :header-rows: 1 * - **XPath** - **Resultado** * - functx:insert-string('xyz','def',2) - xdefyz * - functx:insert-string('xyz','def',5) - xyzdef * - functx:insert-string('xyz','',2) - xyz * - functx:insert-string('','def',2) - def Veja também ~~~~~~~~~~~ .. toctree:: :titlesonly: :glob: * :ref:`functx_index-of-string`.