Package com.ibm.icu.impl

Examples of com.ibm.icu.impl.Trie2$Trie2Iterator


  // always produce a result consisting of a set containing that script.
  void wholeScriptCheck(final CharSequence text, final ScriptSet result) {
    int inputIdx = 0;
    int c;

    Trie2 table = (0 != (fChecks & ANY_CASE)) ? fSpoofData.fAnyCaseTrie : fSpoofData.fLowerCaseTrie;
    result.setAll();
    while (inputIdx < text.length()) {
      c = Character.codePointAt(text, inputIdx);
      inputIdx = Character.offsetByCodePoints(text, inputIdx, 1);
      int index = table.get(c);
      if (index == 0) {
        // No confusables in another script for this char.
        // TODO: we should change the data to have sets with just the single script
        // bit for the script of this char. Gets rid of this special case.
        // Until then, grab the script from the char and intersect it with the set.
View Full Code Here

TOP

Related Classes of com.ibm.icu.impl.Trie2$Trie2Iterator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.