STRING
This action performs the specified string operation on the source value, and the result is saved to the location that is specified in the destination pane. Several STRING functions have the parameter when in action.
The STRING action provides string operations. This action is user-extendable. This action calls a predefined Tcl procedure. The predefined Tcl procs are related to the STRING operation.
The Content area is used to present the statement to invoke the Tcl procedure. Double-clicking a Function entry appends the usage into the Content. After this, you edit the content of the statement according to the actual requirement.
Pausing the mouse on a function shows its usage. Double-clicking the function places it into the Content area.
This table shows the available STRING operations:
Operation | Description |
---|---|
xlateStrConcat |
Concatenates the source values as a string. Multiple source values are supported. |
xlateStrIndex charIndex |
Gets the string indicated by the index that is specified by the function parameter from the source value. |
xlateStrLength |
Gets the length of the source value as the string. |
xlateStrMap ?nocase? mapping |
Replaces the substring in the source value based on key-value
pairs in If |
xlateStrPadLeft/Right length ?padchar?
|
Pads the source value from left/right side with the character
specified by If |
xlateStrReplace first last ?newstring?
|
Removes a range of consecutive characters from the source value.
This starts with the character whose index is If If |
xlateStrSplit ?splitchar? |
Splits the source value into several substrings by the separator
that is specified by If |
xlateStrSubstring first last
|
Gets a range of consecutive characters from the source value.
This starts with the character whose index is If You can specify |
xlateStrToLowercase/xlateStrToUppercase
|
Applies lowercase/uppercase to the source value, and saves the result to the location that is specified by the destination pane. |
xlateStrTrim ?chars? |
Gets a value equal to the source value, except that any leading
or trailing characters present in the string given by If |
xlateTrimLeft/xlateStrTrimRight ?chars?
|
Gets a value equal to the source value, except that any
leading/trailing characters present in the string given by
If |