Strings
- cstr_escape — Encode a string using C-style escape sequences
- json.escape — Encode a string using JSON-style escape sequences (UTF-8 encoded)
- regsub — Replace the first occurrence of a regular expression
- regsuball — Replace all occurrences of a regular expression
- std.anystr2ip — Convert a string formatted in various bases to an IP address
- std.atof — Convert a string to a float (base 10)
- std.atoi — Convert a string to an integer (base 10)
- std.basename — Parse the basename component from a path
- std.dirname — Parse the directory name component from a path
- std.ip — Alias of
std.str2ip - std.ip2str — Convert an IP address to a string
- std.itoa — Convert an integer to a string in an arbitrary base
- std.itoa_charset — Convert an integer to a string in an arbitrary character set
- std.prefixof — True if one string is a prefix of another
- std.replace — Replace the first occurrence of a substring
- std.replace_prefix — Replace a substring at the start of a string
- std.replace_suffix — Replace a substring at the end of a string
- std.replaceall — Replace the first occurrence of a substring
- std.str2ip — Convert a string to an IP address
- std.strcasecmp — True if one string compares equal to another using case-insensitive comparison
- std.strlen — The length of a string
- std.strpad — Pad a string to a given length
- std.strrep — Repeat a string a given number of times
- std.strrev — Reverse a string
- std.strstr — Find the first occurrence of one string within another
- std.strtof — Convert a string to a float (arbitrary bases)
- std.strtol — Convert a string to an integer (arbitrary bases)
- std.suffixof — True if one string is a suffix of another
- std.tolower — Convert a string to lowercase
- std.toupper — Convert a string to uppercase
- substr — Extract a substring
- urldecode — Decode a URL-encoded string
- urlencode — Encode a string for use in a URL
- xml_escape — Encode a string using XML-style escape sequences