1 #ifndef INTEGER_CONSTANT_H
2 #define INTEGER_CONSTANT_H
72 template<
class CharSeq>
88 template<
class CharSeq>
102 template<
class CharSeq>
103 static unsigned long long
127 template<
class CharSeq>
148 template<
class CharSeq>
149 static std::pair<unsigned long long,bool>
167 template<
class CharSeq>
168 static unsigned long long
static integer read_numeral(chewer< CharSeq > &chew)
Read a numeral from a chewer<CharSeq>
static std::pair< unsigned long long, bool > read_based_numeral(unsigned base, chewer< CharSeq > &chew)
Read a numeral of known base from a text pointer, returning a value and overflow indicator.
static int read_char_escaping(chewer< CharSeq > &chew)
Read a possibly escaped ASCII character from a text offset, returning its escaped value...
Class integer encapsulates an integer of some type.
static unsigned long long read_encoded_char(int base, chewer< CharSeq > &chew)
Read a numerically encoded character constant from a text offset, returning its value as an integer...
static unsigned long long decode_utf8(chewer< CharSeq > &chew)
Decode an UTF-8 encoded character from a text offset.
struct integer_constant encapsulates an integer constant
`template struct chewer<CharSeq> is a cursor-like type that is associated with a character-sequence t...
static integer read_char(chewer< CharSeq > &chew)
Read a character constant from a text offset, returning its value as an integer.