mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
17 lines
824 B
Plaintext
17 lines
824 B
Plaintext
<h3>wordwrap() function</h3>
|
|
Returns a string wrapped to a maximum/minimum number of characters.
|
|
|
|
<p><h4>Syntax</h4>
|
|
wordwrap(<i>string,wrap_length[,delimiter_string]</i>)</p>
|
|
|
|
<p><h4>Arguments</h4>
|
|
<!-- List args for functions here-->
|
|
<i> string</i> → is string. The string to be wrapped.<br>
|
|
<i> wrap_length</i> → is number. If positive, the number represents the ideal maximum number of characters to wrap; if negative, the number represents the minimum number of characters to wrap.<br>
|
|
<i> delimiter_string</i> → is string. The delimiter string to wrap to a new line (<u>optional</u>).<br></p>
|
|
|
|
<p><h4>Example</h4>
|
|
<!-- Show example of function.-->
|
|
wordwrap('UNIVERSITY OF QGIS',13) → 'UNIVERSITY OF\nQGIS'<br>
|
|
wordwrap('UNIVERSITY OF QGIS',-3) → 'UNIVERSITY\nOF QGIS'</p>
|