1 length
Returns the length of a string.
<length>
<string /> !
</length>
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Estring | string | Parameter or expression to determine its length. |
Returns | |
---|---|
Type | Description |
Integer | Number that represents the length of the string. |
2 shrink
Remove blank spaces from a string. It can also be used to remove other fill characters using the words LEADING, TRAILING or BOTH.
<shrink>
<expresion /> *
</shrink>
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Eexpresion | string | This can be a string, an expression ... |
Returns | |
---|---|
Type | Description |
String | Initial String but no blanks. |
Example
Returns a string with the expression "test".
Copy
<shrink>'test '</shrink>
3 trim
Remove blank spaces from a string. It can also be used to remove other fill characters using the words LEADING, TRAILING or BOTH.
<trim>
<expresion /> *
</trim>
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Eexpresion | string | This can be a string, an expression ... |
Returns | |
---|---|
Type | Description |
String | Initial value without their respective spaces. |
Example
Retorna un string con la expresión "test".
Copy
<trim>'test '</trim>
4 substr
Returns a sub-string of a column or expression of string type.
<substr>
<expresion /> *
</substr>
Arguments | |||||
---|---|---|---|---|---|
Name | Type | Required | Unique | Nullable | Description |
Eexpresion | string | Three values separated by comma: in the first one the origin chain is indicated, in the second the initial position and in the third the length of the sub-chain to return. |
Returns | |
---|---|
Type | Description |
String | Returns a sub-string of the original string. |
Example
Returns a sub-string of length 4 from the column starting at position 1.
Copy
<substr>docser,1,4</substr>
5 whitespace
Returns a blank string.
<whitespace />