Info |
---|
|
This routine is available starting with SIL Engine™2.0.2 for Jira 5.x or SIL Engine™ 1.1.9 for Jira 1.1.9. Table plus |
---|
applyColStyleToCell | true |
---|
heading | 0 |
---|
columnTypes | s,s,s,s |
---|
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.
Parameters
Table plus |
---|
applyColStyleToCell | true |
---|
columnTypes | s,s,s,s |
---|
heading | 0 |
---|
multiple | false |
---|
enableSorting | false |
---|
|
Parameter name | Type | Required | Description |
---|
str | |
...
Return
...
Type
stringString
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 | 10025 |
---|
showSpace | false |
---|
cql | label = "string_routines"routine" and space = currentSpace ( ) |
---|
labels | stringarray_routines |
---|
|