Index

SQuoteDomain

MMO\core\helpers · 1 symbol · generated 30 Sep 2026

class

SQuoteDomain

Tokenizer.php:714

Simple quotes

class MMO\core\helpers\SQuoteDomain extends MMO\core\helpers\aCharDomain
Namespace
MMO\core\helpers
Extends
aCharDomain
new SQuoteDomain(); // recognizes 'text', with \' as an escaped (non-closing) quote

Constants1

CHAR

const CHAR = '\''
Inherited members (16)
PropertiesDeclared byDescription
escapeaCharDomain
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.
close($tokenizer)aCharDomainCloses on the next (unescaped) occurrence of CHAR.
debugName()aCharDomain
getAllowedTokens()TokenDomain
getMask()TokenDomain
open($tokenizer)aCharDomainOpens when the next character is CHAR and it isn't Tokenizer::isEscaped.
removeToken($token)TokenDomain
setTokens($tokens)aCharDomain
updateMask()TokenDomainRecompute getMask from the current token/domain list.
__construct($tokens, $escape)aCharDomain