Service StringUtils

from string-utils import StringUtils

Port NameLocationProtocolInterfaces
iplocalStringUtilsInterface

List of Available Interfaces

StringUtilsInterface

Operation NameInput TypeOutput TypeFaultsDescription
containsContainsRequestbool-
Returns true if the string contains .substring
endsWithEndsWithRequestbool-
checks if a string ends with a given suffix
findMatchRequestMatchResult-
fmtFormatRequeststring-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%"
getRandomUUIDvoidstring-
it returns a random UUID
indexOfIndexOfRequestIndexOfResponse-
joinJoinRequeststring-
leftPadPadRequeststring-
lengthstringint-
matchMatchRequestMatchResult-
replaceAllReplaceRequeststring-
replaceFirstReplaceRequeststring-
rightPadPadRequeststring-
sortStringItemListStringItemList-
splitSplitRequestSplitResult-
splitByLengthSplitByLengthRequestSplitResult-
startsWithStartsWithRequestbool-
checks if the passed string starts with a given prefix
substringSubStringRequeststring-
toLowerCasestringstring-
toUpperCasestringstring-
trimstringstring-
urlDecodeUrlDecodeRequeststring-
urlEncodeUrlEncodeRequeststring-
valueToPrettyStringundefinedstring-

Types

ContainsRequest:
Type Declaration
string {
  substring[1,1]: string // 
}
EndsWithRequest:
Type Declaration
string {
  suffix[1,1]: string // 
}
FormatRequest:
Type Declaration
string
|void {
  data[1,1]: void // 
  format[1,1]: string // 
  locale[1,1]: string // 
}

IndexOfRequest:
Type Declaration
string {
  word[1,1]: string // 
}
IndexOfResponse:
Type Declaration
int
JoinRequest:
Type Declaration
void {
  piece[0,1]: string // 
  delimiter[1,1]: string // 
}
MatchRequest:
Type Declaration
string {
  regex[1,1]: string // 
}
MatchResult:
Type Declaration
int {
  group[0,1]: string // 
}
PadRequest:
Type Declaration
string {
  length[1,1]: int // 
  char[1,1]: string // 
}
ReplaceRequest:
Type Declaration
string {
  regex[1,1]: string // 
  replacement[1,1]: string // 
}
SplitByLengthRequest:
Type Declaration
string {
  length[1,1]: int // 
}
SplitRequest:
Type Declaration
string {
  regex[1,1]: string // 
  limit[0,1]: int // 
}
SplitResult:
Type Declaration
void {
  result[0,1]: string // 
}
StartsWithRequest:
Type Declaration
string {
  prefix[1,1]: string // 
}
StringItemList:
Type Declaration
void {
  item[0,1]: string // 
}
SubStringRequest:
Type Declaration
string {
  end[0,1]: int // 
  begin[1,1]: int // 
}
UrlDecodeRequest:
Type Declaration
UrlEncodeRequest
UrlEncodeRequest:
Type Declaration
string {
  charset[0,1]: string // 
}