Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add the generated ucd.js from Unicode 6.1.0.

  • Loading branch information...
commit e50a466970aee6c550fdec3ab402f14961e11529 1 parent 7d11e5c
@tav authored
Showing with 193 additions and 0 deletions.
  1. +193 −0 ucd.js
View
193 ucd.js
@@ -0,0 +1,193 @@
+// Generated by:
+//
+// $ ./makeucd ../ampify/environ/local/share/ucd/UnicodeData.txt ucd.js
+//
+// DO NOT EDIT
+
+define('ucd', function(exports, root) {
+
+ exports.UCD_VERSION = "6.1.0";
+
+ exports.DIGITS_BASES = [48, 1632, 1776, 1984, 2406, 2534, 2662, 2790, 2918, 3046, 3174, 3302, 3430, 3664, 3792, 3872, 4160, 4240, 6112, 6160, 6470, 6608, 6784, 6800, 6992, 7088, 7232, 7248, 42528, 43216, 43264, 43472, 43600, 44016, 65296, 66720, 69734, 69872, 69942, 70096, 71360, 120782, 120792, 120802, 120812, 120822];
+
+ exports.isCurrency = function(c) {
+ // Prioritise the ASCII check.
+ if (c < 128) {
+ if (c == 36) { return true; }
+ return false;
+ };
+ if (c >= 128 && c <= 65284) {
+ if ((c >= 162 && c <= 165) || (c == 1423) || (c == 1547) || (c >= 2546 && c <= 2547) || (c == 2801) || (c == 3065) || (c == 3647) || (c == 6107) || (c >= 8352 && c <= 8377) || (c == 43064) || (c == 65020) || (c == 65284)) { return true; }
+ return false;
+ };
+ if ((c >= 65504 && c <= 65505) || (c == 65510)) { return true; }
+ return false;
+ };
+
+ exports.isDigit = function(c) {
+ // Prioritise the ASCII check.
+ if (c < 128) {
+ if (c >= 48 && c <= 57) { return true; }
+ return false;
+ };
+ if (c >= 128 && c <= 3439) {
+ if ((c >= 1632 && c <= 1641) || (c >= 1776 && c <= 1785) || (c >= 1984 && c <= 1993) || (c >= 2406 && c <= 2415) || (c >= 2534 && c <= 2543) || (c >= 2662 && c <= 2671) || (c >= 2790 && c <= 2799) || (c >= 2918 && c <= 2927) || (c >= 3046 && c <= 3055) || (c >= 3174 && c <= 3183) || (c >= 3302 && c <= 3311) || (c >= 3430 && c <= 3439)) { return true; }
+ return false;
+ };
+ if (c >= 3440 && c <= 7001) {
+ if ((c >= 3664 && c <= 3673) || (c >= 3792 && c <= 3801) || (c >= 3872 && c <= 3881) || (c >= 4160 && c <= 4169) || (c >= 4240 && c <= 4249) || (c >= 6112 && c <= 6121) || (c >= 6160 && c <= 6169) || (c >= 6470 && c <= 6479) || (c >= 6608 && c <= 6617) || (c >= 6784 && c <= 6793) || (c >= 6801 && c <= 6809) || (c >= 6992 && c <= 7001)) { return true; }
+ return false;
+ };
+ if (c >= 7002 && c <= 69743) {
+ if ((c >= 7088 && c <= 7097) || (c >= 7232 && c <= 7241) || (c >= 7248 && c <= 7257) || (c >= 42528 && c <= 42537) || (c >= 43216 && c <= 43225) || (c >= 43264 && c <= 43273) || (c >= 43472 && c <= 43481) || (c >= 43600 && c <= 43609) || (c >= 44016 && c <= 44025) || (c >= 65296 && c <= 65305) || (c >= 66720 && c <= 66729) || (c >= 69734 && c <= 69743)) { return true; }
+ return false;
+ };
+ if ((c >= 69872 && c <= 69881) || (c >= 69942 && c <= 69951) || (c >= 70096 && c <= 70105) || (c >= 71360 && c <= 71369) || (c >= 120782 && c <= 120831)) { return true; }
+ return false;
+ };
+
+ exports.isLetter = function(c) {
+ // Prioritise the ASCII check.
+ if (c < 128) {
+ if ((c >= 65 && c <= 90) || (c >= 98 && c <= 122)) { return true; }
+ return false;
+ };
+ if (c >= 128 && c <= 906) {
+ if ((c == 170) || (c == 186) || (c >= 193 && c <= 214) || (c >= 217 && c <= 246) || (c >= 249 && c <= 705) || (c >= 711 && c <= 721) || (c >= 737 && c <= 740) || (c == 750) || (c >= 881 && c <= 884) || (c == 887) || (c >= 891 && c <= 893) || (c >= 904 && c <= 906)) { return true; }
+ return false;
+ };
+ if (c >= 907 && c <= 1766) {
+ if ((c >= 910 && c <= 929) || (c >= 932 && c <= 1013) || (c >= 1016 && c <= 1153) || (c >= 1163 && c <= 1319) || (c >= 1330 && c <= 1366) || (c >= 1377 && c <= 1415) || (c >= 1488 && c <= 1514) || (c >= 1521 && c <= 1522) || (c >= 1568 && c <= 1610) || (c >= 1646 && c <= 1647) || (c >= 1650 && c <= 1747) || (c >= 1765 && c <= 1766)) { return true; }
+ return false;
+ };
+ if (c >= 1767 && c <= 2361) {
+ if ((c == 1775) || (c >= 1786 && c <= 1788) || (c == 1808) || (c >= 1811 && c <= 1839) || (c >= 1870 && c <= 1957) || (c >= 1994 && c <= 2026) || (c == 2037) || (c >= 2048 && c <= 2069) || (c == 2084) || (c >= 2112 && c <= 2136) || (c >= 2210 && c <= 2220) || (c >= 2309 && c <= 2361)) { return true; }
+ return false;
+ };
+ if (c >= 2362 && c <= 2529) {
+ if ((c == 2384) || (c >= 2393 && c <= 2401) || (c >= 2417 && c <= 2423) || (c >= 2426 && c <= 2431) || (c >= 2438 && c <= 2444) || (c == 2448) || (c >= 2452 && c <= 2472) || (c >= 2475 && c <= 2480) || (c >= 2486 && c <= 2489) || (c == 2510) || (c == 2525) || (c >= 2528 && c <= 2529)) { return true; }
+ return false;
+ };
+ if (c >= 2530 && c <= 2705) {
+ if ((c >= 2544 && c <= 2545) || (c >= 2565 && c <= 2570) || (c == 2576) || (c >= 2580 && c <= 2600) || (c >= 2603 && c <= 2608) || (c == 2611) || (c == 2614) || (c == 2617) || (c >= 2650 && c <= 2652) || (c >= 2674 && c <= 2676) || (c >= 2694 && c <= 2701) || (c >= 2704 && c <= 2705)) { return true; }
+ return false;
+ };
+ if (c >= 2706 && c <= 2873) {
+ if ((c >= 2708 && c <= 2728) || (c >= 2731 && c <= 2736) || (c == 2739) || (c >= 2742 && c <= 2745) || (c == 2768) || (c == 2785) || (c >= 2821 && c <= 2828) || (c == 2832) || (c >= 2836 && c <= 2856) || (c >= 2859 && c <= 2864) || (c == 2867) || (c >= 2870 && c <= 2873)) { return true; }
+ return false;
+ };
+ if (c >= 2874 && c <= 3084) {
+ if ((c >= 2908 && c <= 2909) || (c >= 2912 && c <= 2913) || (c == 2929) || (c >= 2949 && c <= 2954) || (c >= 2959 && c <= 2960) || (c >= 2963 && c <= 2965) || (c == 2970) || (c >= 2974 && c <= 2975) || (c == 2980) || (c >= 2985 && c <= 2986) || (c >= 2991 && c <= 3001) || (c >= 3077 && c <= 3084)) { return true; }
+ return false;
+ };
+ if (c >= 3085 && c <= 3294) {
+ if ((c >= 3087 && c <= 3088) || (c >= 3091 && c <= 3112) || (c >= 3115 && c <= 3123) || (c >= 3126 && c <= 3129) || (c >= 3160 && c <= 3161) || (c == 3169) || (c >= 3205 && c <= 3212) || (c >= 3215 && c <= 3216) || (c >= 3219 && c <= 3240) || (c >= 3243 && c <= 3251) || (c >= 3254 && c <= 3257) || (c == 3294)) { return true; }
+ return false;
+ };
+ if (c >= 3295 && c <= 3526) {
+ if ((c == 3297) || (c >= 3313 && c <= 3314) || (c >= 3334 && c <= 3340) || (c >= 3343 && c <= 3344) || (c >= 3347 && c <= 3386) || (c == 3406) || (c == 3425) || (c >= 3450 && c <= 3455) || (c >= 3462 && c <= 3478) || (c >= 3483 && c <= 3505) || (c >= 3508 && c <= 3515) || (c >= 3520 && c <= 3526)) { return true; }
+ return false;
+ };
+ if (c >= 3527 && c <= 3760) {
+ if ((c >= 3586 && c <= 3632) || (c == 3635) || (c >= 3648 && c <= 3654) || (c >= 3713 && c <= 3714) || (c >= 3719 && c <= 3720) || (c == 3725) || (c >= 3733 && c <= 3735) || (c >= 3738 && c <= 3743) || (c >= 3746 && c <= 3747) || (c == 3751) || (c == 3755) || (c >= 3758 && c <= 3760)) { return true; }
+ return false;
+ };
+ if (c >= 3761 && c <= 4225) {
+ if ((c == 3763) || (c >= 3776 && c <= 3780) || (c >= 3804 && c <= 3807) || (c >= 3904 && c <= 3911) || (c >= 3914 && c <= 3948) || (c >= 3977 && c <= 3980) || (c >= 4097 && c <= 4138) || (c >= 4176 && c <= 4181) || (c >= 4187 && c <= 4189) || (c >= 4197 && c <= 4198) || (c >= 4207 && c <= 4208) || (c >= 4214 && c <= 4225)) { return true; }
+ return false;
+ };
+ if (c >= 4226 && c <= 4798) {
+ if ((c >= 4256 && c <= 4293) || (c == 4301) || (c >= 4305 && c <= 4346) || (c >= 4349 && c <= 4680) || (c >= 4683 && c <= 4685) || (c >= 4689 && c <= 4694) || (c >= 4698 && c <= 4701) || (c >= 4705 && c <= 4744) || (c >= 4747 && c <= 4749) || (c >= 4753 && c <= 4784) || (c >= 4787 && c <= 4789) || (c >= 4793 && c <= 4798)) { return true; }
+ return false;
+ };
+ if (c >= 4799 && c <= 5900) {
+ if ((c >= 4802 && c <= 4805) || (c >= 4809 && c <= 4822) || (c >= 4825 && c <= 4880) || (c >= 4883 && c <= 4885) || (c >= 4889 && c <= 4954) || (c >= 4993 && c <= 5007) || (c >= 5025 && c <= 5108) || (c >= 5122 && c <= 5740) || (c >= 5744 && c <= 5759) || (c >= 5761 && c <= 5786) || (c >= 5793 && c <= 5866) || (c >= 5889 && c <= 5900)) { return true; }
+ return false;
+ };
+ if (c >= 5901 && c <= 6509) {
+ if ((c >= 5903 && c <= 5905) || (c >= 5921 && c <= 5937) || (c >= 5953 && c <= 5969) || (c >= 5985 && c <= 5996) || (c >= 5999 && c <= 6000) || (c >= 6017 && c <= 6067) || (c == 6108) || (c >= 6176 && c <= 6263) || (c >= 6273 && c <= 6312) || (c >= 6320 && c <= 6389) || (c >= 6401 && c <= 6428) || (c >= 6480 && c <= 6509)) { return true; }
+ return false;
+ };
+ if (c >= 6510 && c <= 7203) {
+ if ((c >= 6513 && c <= 6516) || (c >= 6529 && c <= 6571) || (c >= 6594 && c <= 6599) || (c >= 6656 && c <= 6678) || (c >= 6689 && c <= 6740) || (c == 6823) || (c >= 6918 && c <= 6963) || (c >= 6982 && c <= 6987) || (c >= 7043 && c <= 7072) || (c == 7087) || (c >= 7098 && c <= 7141) || (c >= 7169 && c <= 7203)) { return true; }
+ return false;
+ };
+ if (c >= 7204 && c <= 8027) {
+ if ((c >= 7245 && c <= 7247) || (c >= 7258 && c <= 7293) || (c >= 7402 && c <= 7404) || (c >= 7407 && c <= 7409) || (c == 7414) || (c >= 7425 && c <= 7615) || (c >= 7681 && c <= 7957) || (c >= 7961 && c <= 7965) || (c >= 7969 && c <= 8005) || (c >= 8009 && c <= 8013) || (c >= 8017 && c <= 8023) || (c == 8027)) { return true; }
+ return false;
+ };
+ if (c >= 8028 && c <= 8348) {
+ if ((c >= 8031 && c <= 8061) || (c >= 8065 && c <= 8116) || (c >= 8119 && c <= 8124) || (c >= 8130 && c <= 8132) || (c >= 8135 && c <= 8140) || (c >= 8145 && c <= 8147) || (c >= 8151 && c <= 8155) || (c >= 8161 && c <= 8172) || (c >= 8179 && c <= 8180) || (c >= 8183 && c <= 8188) || (c == 8305) || (c >= 8336 && c <= 8348)) { return true; }
+ return false;
+ };
+ if (c >= 8349 && c <= 11492) {
+ if ((c == 8450) || (c >= 8458 && c <= 8467) || (c >= 8473 && c <= 8477) || (c == 8486) || (c >= 8490 && c <= 8493) || (c >= 8496 && c <= 8505) || (c >= 8509 && c <= 8511) || (c >= 8518 && c <= 8521) || (c >= 8579 && c <= 8580) || (c >= 11265 && c <= 11310) || (c >= 11313 && c <= 11358) || (c >= 11361 && c <= 11492)) { return true; }
+ return false;
+ };
+ if (c >= 11493 && c <= 11726) {
+ if ((c >= 11500 && c <= 11502) || (c == 11507) || (c >= 11521 && c <= 11557) || (c == 11565) || (c >= 11569 && c <= 11623) || (c >= 11648 && c <= 11670) || (c >= 11681 && c <= 11686) || (c >= 11689 && c <= 11694) || (c >= 11697 && c <= 11702) || (c >= 11705 && c <= 11710) || (c >= 11713 && c <= 11718) || (c >= 11721 && c <= 11726)) { return true; }
+ return false;
+ };
+ if (c >= 11727 && c <= 12730) {
+ if ((c >= 11729 && c <= 11734) || (c >= 11737 && c <= 11742) || (c >= 12293 && c <= 12294) || (c >= 12338 && c <= 12341) || (c == 12348) || (c >= 12354 && c <= 12438) || (c >= 12446 && c <= 12447) || (c >= 12450 && c <= 12538) || (c >= 12541 && c <= 12543) || (c >= 12550 && c <= 12589) || (c >= 12594 && c <= 12686) || (c >= 12705 && c <= 12730)) { return true; }
+ return false;
+ };
+ if (c >= 12731 && c <= 42783) {
+ if ((c >= 12785 && c <= 12799) || (c >= 13313 && c <= 19893) || (c >= 19969 && c <= 40908) || (c >= 40961 && c <= 42124) || (c >= 42193 && c <= 42237) || (c >= 42241 && c <= 42508) || (c >= 42513 && c <= 42527) || (c >= 42538 && c <= 42539) || (c >= 42561 && c <= 42606) || (c >= 42624 && c <= 42647) || (c >= 42657 && c <= 42725) || (c >= 42776 && c <= 42783)) { return true; }
+ return false;
+ };
+ if (c >= 42784 && c <= 43301) {
+ if ((c >= 42787 && c <= 42888) || (c >= 42892 && c <= 42894) || (c >= 42897 && c <= 42899) || (c >= 42913 && c <= 42922) || (c >= 43001 && c <= 43009) || (c >= 43012 && c <= 43013) || (c >= 43016 && c <= 43018) || (c >= 43021 && c <= 43042) || (c >= 43072 && c <= 43123) || (c >= 43139 && c <= 43187) || (c >= 43250 && c <= 43255) || (c >= 43274 && c <= 43301)) { return true; }
+ return false;
+ };
+ if (c >= 43302 && c <= 43741) {
+ if ((c >= 43313 && c <= 43334) || (c >= 43361 && c <= 43388) || (c >= 43397 && c <= 43442) || (c >= 43520 && c <= 43560) || (c >= 43585 && c <= 43586) || (c >= 43589 && c <= 43595) || (c >= 43616 && c <= 43638) || (c >= 43648 && c <= 43695) || (c >= 43701 && c <= 43702) || (c >= 43706 && c <= 43709) || (c == 43714) || (c >= 43740 && c <= 43741)) { return true; }
+ return false;
+ };
+ if (c >= 43742 && c <= 64109) {
+ if ((c >= 43745 && c <= 43754) || (c >= 43763 && c <= 43764) || (c >= 43778 && c <= 43782) || (c >= 43786 && c <= 43790) || (c >= 43794 && c <= 43798) || (c >= 43809 && c <= 43814) || (c >= 43817 && c <= 43822) || (c >= 43969 && c <= 44002) || (c >= 44032 && c <= 55203) || (c >= 55217 && c <= 55238) || (c >= 55244 && c <= 55291) || (c >= 63745 && c <= 64109)) { return true; }
+ return false;
+ };
+ if (c >= 64110 && c <= 64967) {
+ if ((c >= 64113 && c <= 64217) || (c >= 64257 && c <= 64262) || (c >= 64276 && c <= 64279) || (c >= 64287 && c <= 64296) || (c >= 64299 && c <= 64310) || (c >= 64313 && c <= 64316) || (c >= 64320 && c <= 64321) || (c == 64324) || (c >= 64327 && c <= 64433) || (c >= 64468 && c <= 64829) || (c >= 64849 && c <= 64911) || (c >= 64915 && c <= 64967)) { return true; }
+ return false;
+ };
+ if (c >= 64968 && c <= 65574) {
+ if ((c >= 65009 && c <= 65019) || (c >= 65136 && c <= 65140) || (c >= 65143 && c <= 65276) || (c >= 65313 && c <= 65338) || (c >= 65346 && c <= 65370) || (c >= 65383 && c <= 65470) || (c >= 65475 && c <= 65479) || (c >= 65483 && c <= 65487) || (c >= 65491 && c <= 65495) || (c >= 65499 && c <= 65500) || (c >= 65536 && c <= 65547) || (c >= 65550 && c <= 65574)) { return true; }
+ return false;
+ };
+ if (c >= 65575 && c <= 66499) {
+ if ((c >= 65577 && c <= 65594) || (c == 65597) || (c >= 65600 && c <= 65613) || (c >= 65617 && c <= 65629) || (c >= 65665 && c <= 65786) || (c >= 66177 && c <= 66204) || (c >= 66209 && c <= 66256) || (c >= 66305 && c <= 66334) || (c >= 66353 && c <= 66368) || (c >= 66371 && c <= 66377) || (c >= 66433 && c <= 66461) || (c >= 66465 && c <= 66499)) { return true; }
+ return false;
+ };
+ if (c >= 66500 && c <= 68119) {
+ if ((c >= 66505 && c <= 66511) || (c >= 66561 && c <= 66717) || (c >= 67584 && c <= 67589) || (c >= 67594 && c <= 67637) || (c == 67640) || (c >= 67647 && c <= 67669) || (c >= 67841 && c <= 67861) || (c >= 67873 && c <= 67897) || (c >= 67969 && c <= 68023) || (c == 68031) || (c >= 68112 && c <= 68115) || (c >= 68118 && c <= 68119)) { return true; }
+ return false;
+ };
+ if (c >= 68120 && c <= 70084) {
+ if ((c >= 68122 && c <= 68147) || (c >= 68193 && c <= 68220) || (c >= 68353 && c <= 68405) || (c >= 68417 && c <= 68437) || (c >= 68449 && c <= 68466) || (c >= 68609 && c <= 68680) || (c >= 69636 && c <= 69687) || (c >= 69763 && c <= 69807) || (c >= 69841 && c <= 69864) || (c >= 69891 && c <= 69926) || (c >= 70019 && c <= 70066) || (c >= 70082 && c <= 70084)) { return true; }
+ return false;
+ };
+ if (c >= 70085 && c <= 119980) {
+ if ((c >= 71296 && c <= 71338) || (c >= 73728 && c <= 74606) || (c >= 77825 && c <= 78894) || (c >= 92161 && c <= 92728) || (c >= 93953 && c <= 94020) || (c >= 94099 && c <= 94111) || (c == 110593) || (c >= 119809 && c <= 119892) || (c >= 119895 && c <= 119964) || (c == 119967) || (c >= 119973 && c <= 119974) || (c >= 119978 && c <= 119980)) { return true; }
+ return false;
+ };
+ if (c >= 119981 && c <= 120512) {
+ if ((c >= 119983 && c <= 119993) || (c >= 119997 && c <= 120003) || (c >= 120006 && c <= 120069) || (c >= 120072 && c <= 120074) || (c >= 120078 && c <= 120084) || (c >= 120087 && c <= 120092) || (c >= 120095 && c <= 120121) || (c >= 120124 && c <= 120126) || (c >= 120129 && c <= 120132) || (c >= 120138 && c <= 120144) || (c >= 120147 && c <= 120485) || (c >= 120489 && c <= 120512)) { return true; }
+ return false;
+ };
+ if ((c >= 120515 && c <= 120538) || (c >= 120541 && c <= 120570) || (c >= 120573 && c <= 120596) || (c >= 120599 && c <= 120628) || (c >= 120631 && c <= 120654) || (c >= 120657 && c <= 120686) || (c >= 120689 && c <= 120712) || (c >= 120715 && c <= 120744) || (c >= 120747 && c <= 120770) || (c >= 120773 && c <= 120779)) { return true; }
+ return false;
+ };
+
+ exports.isSpace = function(c) {
+ // Prioritise the ASCII check.
+ if (c < 128) {
+ if (c == 32) { return true; }
+ return false;
+ };
+ if ((c == 160) || (c == 5760) || (c == 6158) || (c >= 8192 && c <= 8202) || (c == 8287) || (c == 12288)) { return true; }
+ return false;
+ };
+
+});
Please sign in to comment.
Something went wrong with that request. Please try again.