Trie Parser
Almost all of Pronghorn’s string manipulation utilizes a bitwise trie. It is called the TrieParser
and is used in route matching, JSON parsing, HTTP header parsing, and much more.
Utilize the TrieParser for fast parsing and matching in your Pronghorn projects.
Example
Supported Types
Name
Description
Example
Optional Signed Integer
Optional signed int, if absent returns zero
%o
Signed Integer
Signed Integer (may be hex if starts with 0x)
%i
Unsigned Integer
Unsigned Integer (may be hex if starts with 0x)
%u
Signed Hex
Signed Integer (may skip prefix 0x, assumed to be hex)
%I
Unsigned Hex
Unsigned Integer (may skip prefix 0x, assumed to be hex)
%U
Decimal
If value is found after dot, capture it. Otherwise, a 0 is captured.
%i%.
Rational
If value is found after dot, capture it. Otherwise, a 0 is captured. Always after i, dot, or u.
%i%/
Bytes/String
Captures bytes and Strings
%b
Last updated