static inline enum CONNECTED_GLYPH_TYPE _get_connected_glyph_type(int unicode) { if (_is_number(unicode)) { return CGT_NUMBER; } else if (_is_letter(unicode)) { return CGT_LETTER; } else { return CGT_NULL; } }
bool _is_valid_name(const std::string &name) const { for (size_t i = 0; i < name.size(); i++) { if ((!_is_digit(name[i]) || i == 0) && !_is_letter(name[i]) && name[i] != '_') { return false; } } return true; }