Basics
Guides
API Reference
Basics
Guides
API Reference
[21:21] static (extern: com.aussom.stdlib.ABase64) extends: object
The static base64 class provides functions for base64 encoding and decoding.
encode (string Str)
Encodes a string to a standard base64 string. The string is read as UTF-8 bytes. This is the everyday string path.
Str is the string to encode.A base64 encoded string.decode (string B64EncodedString)
Decodes a standard base64 string back to a string, reading the decoded bytes as UTF-8. Use this when the base64 represents text; use decodeBinary for arbitrary bytes.
B64EncodedString is a base64 encoded string.The decoded string.encodeBinary (object BufferObj)
Encodes a binary Buffer object to a standard base64 string.
BufferObj is the binary Buffer object to encode.A base64 encoded string.decodeBinary (string B64EncodedString)
Decodes a standard base64 string to a binary Buffer object.
B64EncodedString is a base64 encoded string.A binary Buffer object with the decoded bytes.encodeSafe (string Str)
Encodes a string to a safe encoded string. The output uses only the characters 0-9 and a-f (hex of base64), so it needs no escaping in URLs, filenames, headers, or other text. The string is read as UTF-8 bytes.
Str is the string to encode.A safe encoded string.decodeSafe (string SafeEncodedString)
Decodes a safe encoded string (see encodeSafe) back to a string, reading the decoded bytes as UTF-8.
SafeEncodedString is a safe encoded string.The decoded string.[97:21] static (extern: com.aussom.stdlib.AUuid) extends: object
The static uuid class provides universal ID creation functionality.
get ()
Standard globally unique id.
A string with the generated UUID.getSecure ()
Generates a globally unique id. Uses SHA-1 to reduce predictability.
A string with the generated UUID.[76:21] static (extern: com.aussom.stdlib.AHex) extends: object
The static hex class provides functions for hex encoding and decoding.
encode (object BufferObj)
Converts binary Buffer object to hex string.
BufferObj is a binary Buffer object to convert.A hex encoded string.decode (string HexEncodedString)
Converts hex string to binary Buffer object.
HexEncodedString is a string to encode.A binary Buffer object with the decoded value.[146:21] static (extern: com.aussom.stdlib.ARegex) extends: object
The static regex class provides various regular expression functionality. Aussom uses Java regular expressions. Every method here reads the string being searched through the engine rather than handing it straight to the regular expression runtime. That is what lets the host stay in control of a match, and it has three effects worth knowing about. A host may set a step budget for regular expressions. The engine counts how many characters of the subject a match reads, and raises a REGEX_BUDGET_EXCEEDED exception once that count passes the budget. The budget is off unless the host turns it on, and it is generous when it is on: it always covers reading the whole subject once, plus whatever slack the host allows for backtracking. A pattern that trips it is one whose cost has run away, usually a nested quantifier or a backreference that makes the runtime try an enormous number of combinations. Such a pattern can otherwise run for minutes on a subject of thirty characters. A host may cancel the program while a match is running. The match is abandoned and an execution cancelled exception is raised, which a script cannot catch. A host may pause the program while a match is running. The match stops where it is and continues from the same place when the program is resumed. The result is the same as if it had never been paused.
match (string RegexStr, string Haystack)
Returns a list of string matches. Raises REGEX_BUDGET_EXCEEDED if the host set a step budget and this pattern reads past it. See the notes on this class.
RegexStr is a string with the regular expression.Haystack is a string to search.A list of strings with the match results.matchFirst (string RegexStr, string Haystack)
Returns a string with the match, or null if no matches found.
RegexStr is a string with the regular expression.Haysack is a string to search.A string with the first match if found or null if not.matchLast (string RegexStr, string Haystack)
Returns a string with the match, or null if no matches found.
RegexStr is a string with the regular expression.Haysack is a string to search.A string with the last match if found or null if not.replace (string RegexStr, string ReplaceStr, string Haystack)
Replaces all occurrences with replacement string. Raises REGEX_BUDGET_EXCEEDED if the host set a step budget and this pattern reads past it. See the notes on this class.
RegexStr is a string with the regular expression.ReplaceStr is a string with the value to replace.Haysack is a string to search.A string that's been replaced.replaceFirst (string RegexStr, string ReplaceStr, string Haystack)
Replaces first occurrence with replacement string. Raises REGEX_BUDGET_EXCEEDED if the host set a step budget and this pattern reads past it. See the notes on this class.
RegexStr is a string with the regular expression.ReplaceStr is a string with the value to replace.Haysack is a string to search.A string that's been replaced.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.