mirror of
https://github.com/processing/processing4.git
synced 2026-02-12 18:10:43 +01:00
48 lines
906 B
XML
48 lines
906 B
XML
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
<root>
|
|
<name>trim()</name>
|
|
|
|
<category>Data</category>
|
|
|
|
<subcategory>String Functions</subcategory>
|
|
|
|
<usage>Web & Application</usage>
|
|
|
|
<example>
|
|
<image></image>
|
|
<code>
|
|
String s = " Somerville MA ";
|
|
println(s); // Prints " Somerville MA "
|
|
String s2 = trim(s);
|
|
println(s2); // Prints "Somerville MA"
|
|
</code>
|
|
</example>
|
|
|
|
<description>
|
|
Removes whitespace characters from the beginning and end of a String. In addition to standard whitespace characters such as space, carriage return, and tab, this function also removes the Unicode "nbsp" character.
|
|
</description>
|
|
|
|
<syntax>
|
|
trim(<c>str</c>)
|
|
</syntax>
|
|
|
|
<parameter>
|
|
<label>str</label>
|
|
<description>any String</description>
|
|
</parameter>
|
|
|
|
<returns>String</returns>
|
|
|
|
<related>
|
|
</related>
|
|
|
|
<availability>1.0</availability>
|
|
|
|
<type>Function</type>
|
|
|
|
<partof>Core</partof>
|
|
|
|
<level>Extended</level>
|
|
|
|
</root>
|