15 #ifndef RANGEDESCRIPTION_H 16 #define RANGEDESCRIPTION_H 18 #include "pandatoolbase.h" 32 INLINE
void add_singleton(
int code);
33 INLINE
void add_range(
int from_code,
int to_code);
36 void output(ostream &out)
const;
39 bool parse_word(
const string &word);
40 bool parse_code(
const string &word,
int &code);
41 bool parse_bracket(
const string &str);
46 INLINE Range(
int code);
47 INLINE Range(
int from_code,
int to_code);
54 RangeList _range_list;
61 #include "rangeDescription.I" bool is_empty() const
Returns true if there are no codes described in the range.
Walks through all the Unicode characters described by a RangeDescription class.
bool parse_parameter(const string ¶m)
Parses a string of comma- and hyphen-delimited unicode values, in decimal and/or hex, including possible bracket-delimited ASCII characters, as may have been passed on a command line.
This describes a sparse range of Unicode character codes for conversion that may be specified on the ...