rtrim
Written as rtrim(argnum flags):options in a transform expression.
| Minimum arguments | 1 |
| Maximum arguments | no limit |
| Default arguments | 1 |
| Argument modes | SINGLE_PRIMITIVE, SINGLE_PRIMITIVE_ARRAY, MULTIPLE_PRIMITIVES |
Documentation
Section titled “Documentation”A TrimTransform variant that only trims chars from trailing of string. Other than this bit, it works the same way as TrimTransform.
Note: this variant uses ‘rtrim’ as TYPE attrib.
| Flag | Letter |
|---|---|
| spread_input | s |
| noncaptive_input | I |
| arg_num_flexible | f |
Examples
Section titled “Examples”RTrim default chars from a single string argument
Section titled “RTrim default chars from a single string argument”Input args: [" world\n"]Transforms: "rtrim:"Output: " world"RTrim custom chars from a single string argument
Section titled “RTrim custom chars from a single string argument”Input args: [" world\n"]Transforms: "rtrim: "Output: " world\n"