Skip to navigation

Experimental. For evaluation. Interfaces, configuration, and behavior may change incompatibly.

Provides string conversion, encoding, escaping and regular-expression helpers.

Prerequisites

  • None.

Setup

  • Loads automatically; no configuration needed.

This module provides utilities for string manipulation.

Members

base64_decode

stringutils.base64_decode(param)

Base64-decode a string.

Parameters
paramstringThe string to decode.
Returns
resultstringThe decoded string.

base64_encode

stringutils.base64_encode(param)

Base64-encode a string.

Parameters
paramstringThe string to encode.
Returns
resultstringThe encoded string.

regex_match

stringutils.regex_match(pattern, input)

Check if a string matches a regex pattern.

Parameters
patternstringThe regex pattern to match.
inputstringThe string to match.
Returns
resultboolTrue if the string matches the pattern, false otherwise.

to_lower

stringutils.to_lower(param, lang?)

Convert a string to lower case.

Parameters
paramstringThe string to convert.
lang?optionalstringThe language to use for the conversion.
Returns
resultstringThe converted string.

to_title

stringutils.to_title(param, lang?)

Convert a string to title case.

Parameters
paramstringThe string to convert.
lang?optionalstringThe language to use for the conversion.
Returns
resultstringThe converted string.

url_encode

stringutils.url_encode(param)

URL-encode a string.

Parameters
paramstringThe string to encode.
Returns
resultstringThe encoded string.