Library: FastInfoset
Package: FastInfoset
Header: Poco/FastInfoset/DocumentRestrictedAlphabet.h
Class 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 Poco::XML::XMLString & 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 Poco::XML::XMLChar & 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 Poco::XML::XMLChar & value(
Poco::UInt32 vocabulary,
Poco::UInt32 idxVal
) const;
Returns the value for the given vocabulary and index.
static const Poco::XML::XMLString DATE_TIME_CHARACTERS;
static const Poco::XML::XMLString NUMERIC_CHARACTERS;