Service StringUtils
from string-utils import StringUtils
Port Name | Location | Protocol | Interfaces |
---|---|---|---|
ip | local | StringUtilsInterface |
List of Available Interfaces
StringUtilsInterface
Operation Name | Input Type | Output Type | Faults | Description |
---|---|---|---|---|
contains | ContainsRequest | bool | - | Returns true if the string contains .substring |
endsWith | EndsWithRequest | bool | - | checks if a string ends with a given suffix |
find | MatchRequest | MatchResult | - | |
fmt | FormatRequest | string | - | Formats a string. For example, a request value "Hello {name}" { name = "Homer" } is transformed into "Hello Homer" You can use formatting rules as in Java's MessageFormat, for example, "Up to {pct,number,percent}" { pct = 0.6 } becomes "Up to 60%" |
getRandomUUID | void | string | - | it returns a random UUID |
indexOf | IndexOfRequest | IndexOfResponse | - | |
join | JoinRequest | string | - | |
leftPad | PadRequest | string | - | |
length | string | int | - | |
match | MatchRequest | MatchResult | - | |
replaceAll | ReplaceRequest | string | - | |
replaceFirst | ReplaceRequest | string | - | |
rightPad | PadRequest | string | - | |
sort | StringItemList | StringItemList | - | |
split | SplitRequest | SplitResult | - | |
splitByLength | SplitByLengthRequest | SplitResult | - | |
startsWith | StartsWithRequest | bool | - | checks if the passed string starts with a given prefix |
substring | SubStringRequest | string | - | |
toLowerCase | string | string | - | |
toUpperCase | string | string | - | |
trim | string | string | - | |
urlDecode | UrlDecodeRequest | string | - | |
urlEncode | UrlEncodeRequest | string | - | |
valueToPrettyString | undefined | string | - |
Types
FormatRequest:
Type Declaration
string |void { data[1,1]: void // format[1,1]: string // locale[1,1]: string // }