.. _functx_reverse-string: ===================== functx:reverse-string ===================== Reverses the order of characters Description ~~~~~~~~~~~ The functx:reverse-string function reverses the order of characters in a string. It returns a zero-length string if the argument is the empty sequence. .. list-table:: :widths: 40 60 :header-rows: 1 * - **Parameters** - **Description** * - arg:string() - the string to reverse Examples ~~~~~~~~ .. list-table:: :widths: 50 50 :header-rows: 1 * - **XPath** - **Results** * - functx:reverse-string('abc') - cba * - functx:reverse-string('a') - a See Also ~~~~~~~~ .. toctree:: :titlesonly: :glob: * :ref:`reverse`.