CharacterStringParser
final class CharacterStringParser (View source)
Parser for DNS
A character-string is a sequence of up to 255 octets, optionally enclosed in double quotes. PowerDNS uses xfrText for record types whose RDATA is one or more concatenated character-strings: TXT, SPF, RESINFO, WALLET, etc.
Constants
| private MAX_STRING_LENGTH |
|
Methods
static array|null
parse(string $content)
Split content into individual character-strings.
Details
static array|null
parse(string $content)
Split content into individual character-strings.
Returns an array of the unquoted string parts on success, or null if the content is not a valid sequence of quoted character-strings (e.g. missing quotes, unescaped inner quote, individual string longer than 255 bytes).