Table plus |
---|
applyColStyleToCell | true |
---|
columnTypes | s,s,s,s |
---|
heading | 0 |
---|
multiple | false |
---|
columnAttributes | style="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold, |
---|
enableSorting | false |
---|
|
Syntax | trim(str) | Package |
| Alias |
| Pkg Usage |
|
|
Description
Excerpt |
---|
|
Returns a trimmed copy of the string passed as parameter with the leading and trailing whitespaces removed. |
Returns a trimmed copy of the string passed as parameter with the leading and trailing whitespaces removed.
...
Table plus |
---|
applyColStyleToCell | true |
---|
columnTypes | s,s,s,s |
---|
heading | 0 |
---|
multiple | false |
---|
enableSorting | false |
---|
|
Parameter name | Type | Required | Description |
---|
str | String | Yes | String to trim. |
|
Return Type
String
Example
Code Block |
---|
|
string original = " foobar ";
string trimmed = trim(original);
print(">>" + original + "<<"); // will print ">> foobar <<"
print(">>" + trimmed + "<<"); // will print ">>foobar<<" |
...
Note |
---|
This also works if the string passed in as parameter only has leading or trailing whitespaces. If the string has no leading or trailing whitespaces, a copy of the original string will be returned. |
See also
Filter by label (Content by label) |
---|
showLabels | false |
---|
max | 25 |
---|
showSpace | false |
---|
cql | label = "string_routine" and space = currentSpace ( ) |
---|
labels | array_routines |
---|
|