mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
17 lines
818 B
Plaintext
17 lines
818 B
Plaintext
<h3>wordwrap() function</h3>
|
|
Returns a string wrapped to a minimum number of characters.
|
|
|
|
<p><h4>Syntax</h4>
|
|
replace(<i>string,delimiter_string,wrap_characters</i>)</p>
|
|
|
|
<p><h4>Arguments</h4>
|
|
<!-- List args for functions here-->
|
|
<i> string</i> → is string. The string to be wrapped.<br>
|
|
<i> delimiter_string</i> → is string. The delimiter character(s) to break to a new line.<br>
|
|
<i> wrap_characters</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></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>
|