.. _functx_line-count: ================= functx:line-count ================= The number of lines Description ~~~~~~~~~~~ The functx:line-count function counts the number of lines in a string, using the carriage return and newline characters to indicate the end of a line. .. list-table:: :widths: 40 60 :header-rows: 1 * - **Parameters** - **Description** * - arg:string() - the string to test Examples ~~~~~~~~ .. list-table:: :widths: 50 50 :header-rows: 1 * - **XPath** - **Results** * - functx:line-count('a value') - 1 * - functx:line-count($lines) - 5 Depends On ~~~~~~~~~~ * :ref:`functx_lines`. See Also ~~~~~~~~ .. toctree:: :titlesonly: :glob: * :ref:`functx_word-count`. * :ref:`functx_max-line-length`.