src/training/unicharset/validate_indic.cpp
bool ValidateIndic::ConsumeVowelIfValid() {
  if (UseMultiCode(1)) {
    return true;
  }
  while (codes_[codes_used_].first == CharClass::kVowelModifier) {
    if (UseMultiCode(1)) {
      return true;
    }
    // Only Malayalam allows repeated modifiers?
    if (script_ != ViramaScript::kMalayalam) {
      break;
    }
  }
  while (codes_[codes_used_].first == CharClass::kVedicMark) {
    if (UseMultiCode(1)) {
      return true;
    }
  }
  // What we have consumed so far is a valid vowel cluster.
  return true;
}
// Helper consumes/copies a vowel and optional modifiers.
Helper consumes/copies a vowel and optional modifiers.
Helper consumes / copies a vowel and optional modifiers .
bool ValidateIndic::ConsumeVowelIfValid() {
  if (UseMultiCode(1)) {
    return true;
  }
  while (codes_[codes_used_].first == CharClass::kVowelModifier) {
    if (UseMultiCode(1)) {
      return true;
    }
    if (script_ != ViramaScript::kMalayalam) {
      break;
    }
  }
  while (codes_[codes_used_].first == CharClass::kVedicMark) {
    if (UseMultiCode(1)) {
      return true;
    }
  }
  return true;
}
bool ValidateIndic :: ConsumeVowelIfValid ( ) { if ( UseMultiCode ( 1 ) ) { return true ; } while ( codes_ [ codes_used_ ] . first == CharClass :: kVowelModifier ) { if ( UseMultiCode ( 1 ) ) { return true ; } if ( script_ != ViramaScript :: kMalayalam ) { break ; } } while ( codes_ [ codes_used_ ] . first == CharClass :: kVedicMark ) { if ( UseMultiCode ( 1 ) ) { return true ; } } return true ; }
Helper consumes/copies a vowel and optional modifiers.
Helper consumes / copies a vowel and optional modifiers .
// Only Malayalam allows repeated modifiers? // What we have consumed so far is a valid vowel cluster.