43 return ConsumeConsonantHeadIfValid() && ConsumeConsonantTailIfValid();
46 return ConsumeVowelIfValid();
59 tprintf(
"Invalid start of grapheme sequence:%c=0x%x\n",
73 bool ValidateJavanese::ConsumeViramaIfValid(IndicPair joiner,
bool post_matra) {
74 int num_codes =
codes_.size();
101 tprintf(
"Virama ZWJ ZWNJ in non-Sinhala: base=0x%x!\n",
127 tprintf(
"Invalid pre-virama joiner with no 2nd consonant!!\n");
145 bool ValidateJavanese::ConsumeConsonantHeadIfValid() {
146 const int num_codes =
codes_.size();
151 int index =
output_.size() - 3;
157 bool have_nukta =
false;
164 index =
output_.size() - 2 - have_nukta;
184 output_.push_back(joiner.second);
187 tprintf(
"Skipping unnecessary joiner: 0x%x 0x%x 0x%x\n",
195 if (!ConsumeViramaIfValid(joiner,
false))
return false;
207 bool ValidateJavanese::ConsumeConsonantTailIfValid() {
242 bool ValidateJavanese::ConsumeVowelIfValid() {
std::vector< IndicPair > codes_
static const char32 kZeroWidthNonJoiner
bool IsSubscriptScript() const
void MultiCodePart(int length)
static const int kIndicCodePageSize
static bool IsVirama(char32 unicode)
DLLSYM void tprintf(const char *format,...)
bool UseMultiCode(int length)
static const char32 kZeroWidthJoiner
Validator::CharClass UnicodeToCharClass(char32 ch) const override
bool ConsumeGraphemeIfValid() override
std::vector< char32 > output_
std::pair< CharClass, char32 > IndicPair