isMvsPrecedingChar static method

bool isMvsPrecedingChar(
  1. int codeUnit
)

An MVS (Mongolian Vowel Separator) only appears before an A or E and after certain characters (usually consonants but could come after O as in CHINO_A (wolf)). This method tests the preceding codeUnit to see whether an MVS could follow it. Return whether an MVS could follow the given codeUnit.

Implementation

static bool isMvsPrecedingChar(int codeUnit) {
  return (codeUnit == Unicode.NA ||
      codeUnit == Unicode.QA ||
      codeUnit == Unicode.GA ||
      codeUnit == Unicode.MA ||
      codeUnit == Unicode.LA ||
      codeUnit == Unicode.JA ||
      codeUnit == Unicode.YA ||
      codeUnit == Unicode.RA ||
      codeUnit == Unicode.WA ||
      codeUnit == Unicode.O ||
      codeUnit == Unicode.U ||
      codeUnit == Unicode.OE ||
      codeUnit == Unicode.UE);
}