make/data/characterdata/CharacterData01.java.template

Print this page




 443             case 0X1EC9C: retval = 80000; break;    // INDIC SIYAQ NUMBER EIGHTY THOUSAND
 444             case 0X1EC9D: retval = 90000; break;    // INDIC SIYAQ NUMBER NINETY THOUSAND
 445             case 0X1EC9E: retval = 100000; break;    // INDIC SIYAQ NUMBER LAKH
 446             case 0X1EC9F: retval = 200000; break;    // INDIC SIYAQ NUMBER LAKHAN
 447             case 0X1ECA0: retval = 100000; break;    // INDIC SIYAQ LAKH MARK
 448             case 0X1ECA1: retval = 10000000; break;  // INDIC SIYAQ NUMBER KAROR
 449             case 0X1ECA2: retval = 20000000; break;  // INDIC SIYAQ NUMBER KARORAN
 450             case 0X1ECB3: retval = 10000; break;    // INDIC SIYAQ NUMBER ALTERNATE TEN THOUSAND
 451             case 0X1ECB4: retval = 100000; break;   // INDIC SIYAQ NUMBER ALTERNATE LAKH MARK
 452             default: retval = -2; break;
 453             }
 454             
 455             break;
 456         case ($$valueJavaSupradecimal):           // Java supradecimal
 457             retval = (ch + ((val & $$maskDigitOffset) >> $$shiftDigitOffset) & $$maskDigit) + 10;
 458             break;
 459         }
 460         return retval;
 461     }
 462 












 463     boolean isWhitespace(int ch) {
 464         int props = getProperties(ch);
 465         return ((props & $$maskIdentifierInfo) == $$valueJavaWhitespace);
 466     }
 467 
 468     byte getDirectionality(int ch) {
 469         int val = getProperties(ch);
 470         byte directionality = (byte)((val & $$maskBidi) >> $$shiftBidi);
 471         if (directionality == 0xF ) {
 472             directionality = Character.DIRECTIONALITY_UNDEFINED;
 473         }
 474         return directionality;
 475     }
 476 
 477     boolean isMirrored(int ch) {
 478         int props = getProperties(ch);
 479         return ((props & $$maskMirrored) != 0);
 480     }
 481 
 482     static final CharacterData instance = new CharacterData01();


 443             case 0X1EC9C: retval = 80000; break;    // INDIC SIYAQ NUMBER EIGHTY THOUSAND
 444             case 0X1EC9D: retval = 90000; break;    // INDIC SIYAQ NUMBER NINETY THOUSAND
 445             case 0X1EC9E: retval = 100000; break;    // INDIC SIYAQ NUMBER LAKH
 446             case 0X1EC9F: retval = 200000; break;    // INDIC SIYAQ NUMBER LAKHAN
 447             case 0X1ECA0: retval = 100000; break;    // INDIC SIYAQ LAKH MARK
 448             case 0X1ECA1: retval = 10000000; break;  // INDIC SIYAQ NUMBER KAROR
 449             case 0X1ECA2: retval = 20000000; break;  // INDIC SIYAQ NUMBER KARORAN
 450             case 0X1ECB3: retval = 10000; break;    // INDIC SIYAQ NUMBER ALTERNATE TEN THOUSAND
 451             case 0X1ECB4: retval = 100000; break;   // INDIC SIYAQ NUMBER ALTERNATE LAKH MARK
 452             default: retval = -2; break;
 453             }
 454             
 455             break;
 456         case ($$valueJavaSupradecimal):           // Java supradecimal
 457             retval = (ch + ((val & $$maskDigitOffset) >> $$shiftDigitOffset) & $$maskDigit) + 10;
 458             break;
 459         }
 460         return retval;
 461     }
 462 
 463     boolean isDigit(int ch) {
 464       return getType(ch) == Character.DECIMAL_DIGIT_NUMBER;
 465     }
 466 
 467     boolean isLowerCase(int ch) {
 468       return getType(ch) == Character.LOWERCASE_LETTER;
 469     }
 470 
 471     boolean isUpperCase(int ch) {
 472       return getType(ch) == Character.UPPERCASE_LETTER;
 473     }
 474 
 475     boolean isWhitespace(int ch) {
 476         int props = getProperties(ch);
 477         return ((props & $$maskIdentifierInfo) == $$valueJavaWhitespace);
 478     }
 479 
 480     byte getDirectionality(int ch) {
 481         int val = getProperties(ch);
 482         byte directionality = (byte)((val & $$maskBidi) >> $$shiftBidi);
 483         if (directionality == 0xF ) {
 484             directionality = Character.DIRECTIONALITY_UNDEFINED;
 485         }
 486         return directionality;
 487     }
 488 
 489     boolean isMirrored(int ch) {
 490         int props = getProperties(ch);
 491         return ((props & $$maskMirrored) != 0);
 492     }
 493 
 494     static final CharacterData instance = new CharacterData01();