private void SetProp(int cp, int cpEnd, int flag) { int idx = NUtil.PropIdx(cp); if (idx == 0) { throw new Exception(String.Format("Codepoint {0:X04} should be included in the indexer.", cp)); } if (cpEnd < 0) { prop [idx] |= flag; } else { int idxEnd = NUtil.PropIdx(cpEnd); for (int i = idx; i <= idxEnd; i++) { prop [i] |= flag; } } }
// public const int ExpandOnNfd = 256; // public const int ExpandOnNfc = 512; // public const int ExpandOnNfkd = 1024; // public const int ExpandOnNfkc = 2048; static uint PropValue (int cp) { return props [NUtil.PropIdx (cp)]; }