.. _functx_max-line-length: ====================== functx:max-line-length ====================== The maximum line length Description ~~~~~~~~~~~ The functx:max-line-length function counts the number of characters in each line, and returns the maximum. It uses carriage return and/or newline characters to determine the end of a line. It is useful for determining the amount of space a fixed-format string will take up on, for example, a web page. .. 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:max-line-length('a value') - 7 * - functx:max-line-length($lines) - 10 Depends On ~~~~~~~~~~ * :ref:`functx_lines`. See Also ~~~~~~~~ .. toctree:: :titlesonly: :glob: * :ref:`functx_line-count`.