util.Strings methods

Methods for the util.Strings class.

Table 1. Class methods
Name Description
base64Decode(
  base64 STRING,
  filename STRING
 )
Decodes a Base64 encoded string and writes the bytes to a file.
base64Encode(
  filename STRING
 )
  RETURNS STRING
Converts the content of a file to a Base64 encoded string.
base64DecodeToHexString(
  base64 STRING
 )
  RETURNS STRING
Decodes a base64 encoded string and returns the corresponding hexadecimal string.
base64DecodeToString(
  base64 STRING
 )
  RETURNS STRING
Decodes a base64 encoded string and returns the corresponding string.
base64EncodeFromHexString(
  s STRING
 )
  RETURNS STRING
Converts the hexadecimal string passed as parameter to a Base64 encoded string.
base64EncodeFromString(
  s STRING
 )
  RETURNS STRING
Converts the string passed as parameter to a Base64 encoded string.
collate(
    s1 STRING,
    s2 STRING
 ) RETURNS INTEGER
Compares two strings using locale collation rules.
collateNumeric(
    s1 STRING,
    s2 STRING
 ) RETURNS INTEGER
Compares two strings using locale collation rules and sequences of numerical digits.
urlDecode(
  s STRING
 )
  RETURNS STRING
Converts the URL-encoded string to a string in the current application locale.
urlEncode(
  source STRING
 )
  RETURNS STRING
Converts a string from the current codeset to a URL-encoded string.