Files
processing4/mobile/web/reference/API/trim.xml
2005-01-27 06:48:42 +00:00

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 &amp; 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>