Skip to main content

string

This namespace may be called like a function to return a string serdes, or it may be accessed like a table to use the string content.

Properties

binary

string.binary: string

The alphabet '01'.

octal

string.octal: string

The alphabet '01234567'.

decimal

string.decimal: string

The alphabet '0123456789'.

duodecimal

string.duodecimal: string

The alphabet '0123456789AB'.

hexadecimal

string.hexadecimal: string

The alphabet '0123456789ABCDEF'.

utf8

string.utf8: string

The alphabet of all 256 possible characters.

lower

string.lower: string

The alphabet 'abcdefghijklmnopqrstuvwxyz'.

upper

string.upper: string

The alphabet 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'.

letters

string.letters: string

The alphabet lower .. upper.

punctuation

string.punctuation: string

The alphabet ' .,?!:;\'"-_'.

english

string.english: string

The alphabet letters .. punctuation.

filepath

string.filepath: string

The alphabet letters .. ':/'.

datastore

string.datastore: string

The alphabet of every character that doesn't get expanded when JSON encoding.

Functions

convert

string.convert(
strstring,
inAlphabetstring,
outAlphabetstring
) → string

Converts a string, treated as a number in base inAlphabet, to a number in base toAlphabet.

alphabet

string.alphabet(sourcestring) → string

Returns the smallest sorted alphabet from a source string.

Show raw api
{
    "functions": [
        {
            "name": "convert",
            "desc": "Converts a string, treated as a number in base `inAlphabet`, to a number in base `toAlphabet`.",
            "params": [
                {
                    "name": "str",
                    "desc": "",
                    "lua_type": "string"
                },
                {
                    "name": "inAlphabet",
                    "desc": "",
                    "lua_type": "string"
                },
                {
                    "name": "outAlphabet",
                    "desc": "",
                    "lua_type": "string"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "string"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 117,
                "path": "src/moonwave.luau"
            }
        },
        {
            "name": "alphabet",
            "desc": "Returns the smallest sorted alphabet from a source string.",
            "params": [
                {
                    "name": "source",
                    "desc": "",
                    "lua_type": "string"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "string"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 125,
                "path": "src/moonwave.luau"
            }
        }
    ],
    "properties": [
        {
            "name": "binary",
            "desc": "The alphabet `'01'`.",
            "lua_type": "string",
            "source": {
                "line": 129,
                "path": "src/moonwave.luau"
            }
        },
        {
            "name": "octal",
            "desc": "The alphabet `'01234567'`.",
            "lua_type": "string",
            "source": {
                "line": 133,
                "path": "src/moonwave.luau"
            }
        },
        {
            "name": "decimal",
            "desc": "The alphabet `'0123456789'`.",
            "lua_type": "string",
            "source": {
                "line": 137,
                "path": "src/moonwave.luau"
            }
        },
        {
            "name": "duodecimal",
            "desc": "The alphabet `'0123456789AB'`.",
            "lua_type": "string",
            "source": {
                "line": 141,
                "path": "src/moonwave.luau"
            }
        },
        {
            "name": "hexadecimal",
            "desc": "The alphabet `'0123456789ABCDEF'`.",
            "lua_type": "string",
            "source": {
                "line": 145,
                "path": "src/moonwave.luau"
            }
        },
        {
            "name": "utf8",
            "desc": "The alphabet of all 256 possible characters.",
            "lua_type": "string",
            "source": {
                "line": 149,
                "path": "src/moonwave.luau"
            }
        },
        {
            "name": "lower",
            "desc": "The alphabet `'abcdefghijklmnopqrstuvwxyz'`.",
            "lua_type": "string",
            "source": {
                "line": 153,
                "path": "src/moonwave.luau"
            }
        },
        {
            "name": "upper",
            "desc": "The alphabet `'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`.",
            "lua_type": "string",
            "source": {
                "line": 157,
                "path": "src/moonwave.luau"
            }
        },
        {
            "name": "letters",
            "desc": "The alphabet `lower .. upper`.",
            "lua_type": "string",
            "source": {
                "line": 161,
                "path": "src/moonwave.luau"
            }
        },
        {
            "name": "punctuation",
            "desc": "The alphabet `' .,?!:;\\'\"-_'`.",
            "lua_type": "string",
            "source": {
                "line": 165,
                "path": "src/moonwave.luau"
            }
        },
        {
            "name": "english",
            "desc": "The alphabet `letters .. punctuation`.",
            "lua_type": "string",
            "source": {
                "line": 169,
                "path": "src/moonwave.luau"
            }
        },
        {
            "name": "filepath",
            "desc": "The alphabet `letters .. ':/'`.",
            "lua_type": "string",
            "source": {
                "line": 173,
                "path": "src/moonwave.luau"
            }
        },
        {
            "name": "datastore",
            "desc": "The alphabet of every character that doesn't get expanded when JSON encoding.",
            "lua_type": "string",
            "source": {
                "line": 177,
                "path": "src/moonwave.luau"
            }
        }
    ],
    "types": [],
    "name": "string",
    "desc": "This namespace may be called like a function to return a string serdes, or it may be accessed like a table to use the string content.",
    "source": {
        "line": 107,
        "path": "src/moonwave.luau"
    }
}