Library: FastInfoset
Package: FastInfoset
Header: Poco/FastInfoset/DocumentRestrictedAlphabet.h
DocumentRestrictedAlphabet stores the prefined simple vocabularies for numeric or date time de-/encoding.
Member Functions: add, alphabet, alphabets, index, operator -, value
typedef std::vector < RestrictedAlphabet > Alphabets;
Creates the DocumentRestrictedAlphabet.
~DocumentRestrictedAlphabet();
Destroys the DocumentRestrictedAlphabet.
Poco::UInt32 add(
const std::string & str
);
Adds the string as a new vocabulary, returns the ids of the vocabulary, the maximum is limited to 256 vocabularies.
RestrictedAlphabet & alphabet(
Poco::UInt32 vocabulary
);
Returns the alphabet for the given id.
const Alphabets & alphabets() const;
Returns all defined alphabets.
Poco::UInt32 index(
Poco::UInt32 vocabulary,
const char & value
) const;
Returns the index for the given vocabulary and value.
DocumentRestrictedAlphabet operator - (
const DocumentRestrictedAlphabet & other
);
Subtracts from this object other. the other vocabulary must be smaller than this alphabet
const char & value(
Poco::UInt32 vocabulary,
Poco::UInt32 idxVal
) const;
Returns the value for the given vocabulary and index.
static const std::string DATE_TIME_CHARACTERS;
static const std::string NUMERIC_CHARACTERS;