Index

aCharDomain

MMO\core\helpers · 1 symbol · generated 5 Oct 2026

class

aCharDomain

Tokenizer.php:673

A domain delimited by the SAME character on both ends (e.g. quotes: 'text'), that a preceding escape character can escape (so it doesn't close the domain).

abstract class MMO\core\helpers\aCharDomain extends MMO\core\helpers\TokenDomain
Namespace
MMO\core\helpers
Extends
TokenDomain

Index

escape
close($tokenizer)Closes on the next (unescaped) occurrence of CHAR.
debugName()
open($tokenizer)Opens when the next character is CHAR and it isn't Tokenizer::isEscaped.
setTokens($tokens)
__construct($tokens, $escape)

Properties1

Methods5

close($tokenizer)

Tokenizer.php:703

Closes on the next (unescaped) occurrence of CHAR.

function close(MMO\core\helpers\Tokenizer $tokenizer): ?MMO\core\helpers\Token
$tokenizerTokenizer
returnsnull | Token

__construct($tokens, $escape)

Tokenizer.php:680
function __construct(array $tokens = [], ?string $escape = '\\')
$tokens = []arrayadditional tokens/domains allowed inside (besides the delimiter and escape char, which are added automatically)
$escape = '\\'null | stringthe escape character; null disables escaping entirely
Inherited members (10)
PropertiesDeclared byDescription
maskTokenDomain
tokensTokenDomainarray<id: string>
MethodsDeclared byDescription
addChar($char)TokenDomainRegister a single-character token (id auto-derived from the character's ord() value).
addDomains($domains)TokenDomainRegister one or more nested domains (their open is checked on every Tokenizer::next call while this domain is active).
addToken($id, $token)TokenDomainRegister a single multi-character token.
addTokens($tokens)TokenDomainRegister several tokens/domains at once.
getAllowedTokens()TokenDomain
getMask()TokenDomain
removeToken($token)TokenDomain
updateMask()TokenDomainRecompute getMask from the current token/domain list.