| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 5013022 commit 1c4bf9e
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,7 +11,7 @@ | |||
| 11 | 11 | #define V8_MAJOR_VERSION 5 | |
| 12 | 12 | #define V8_MINOR_VERSION 4 | |
| 13 | 13 | #define V8_BUILD_NUMBER 500 | |
| 14 | - #define V8_PATCH_LEVEL 47 | ||
| 14 | + #define V8_PATCH_LEVEL 48 | ||
| 15 | 15 | ||
| 16 | 16 | // Use 1 for candidates and 0 otherwise. | |
| 17 | 17 | // (Boolean macro values are not supported by all preprocessors.) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -931,7 +931,7 @@ inline uint16_t ToASCIIUpper(uint16_t ch) { | |||
| 931 | 931 | inline uint16_t ToLatin1Upper(uint16_t ch) { | |
| 932 | 932 | DCHECK(ch != 0xDF && ch != 0xB5 && ch != 0xFF); | |
| 933 | 933 | return ch & | |
| 934 | - ~(((ch >= 'a' && ch <= 'z') || (((ch & 0xE0) == 0xE0) && ch != 0xE7)) | ||
| 934 | + ~(((ch >= 'a' && ch <= 'z') || (((ch & 0xE0) == 0xE0) && ch != 0xF7)) | ||
| 935 | 935 | << 5); | |
| 936 | 936 | } | |
| 937 | 937 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -136,3 +136,29 @@ assertEquals("\u{10CC0}", "\u{10C80}".toLocaleLowerCase()); | |||
| 136 | 136 | assertEquals("\u{10C80}", "\u{10CC0}".toLocaleUpperCase(["tr"])); | |
| 137 | 137 | assertEquals("\u{10C80}", "\u{10CC0}".toLocaleUpperCase(["tr"])); | |
| 138 | 138 | assertEquals("\u{10CC0}", "\u{10C80}".toLocaleLowerCase()); | |
| 139 | + | ||
| 140 | + // check fast path for Latin-1 supplement (U+00A0 ~ U+00FF) | ||
| 141 | + var latin1Suppl = "\u00A0¡¢£¤¥¦§¨©ª«¬\u00AD®°±²³´µ¶·¸¹º»¼½¾¿" + | ||
| 142 | + "ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ"; | ||
| 143 | + var latin1SupplLowercased = "\u00A0¡¢£¤¥¦§¨©ª«¬\u00AD®°±²³´µ¶·¸¹º»¼½¾¿" + | ||
| 144 | + "àáâãäåæçèéêëìíîïðñòóôõö×øùúûüýþßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ"; | ||
| 145 | + var latin1SupplUppercased = "\u00A0¡¢£¤¥¦§¨©ª«¬\u00AD®°±²³´\u039C¶·¸¹º»¼½¾¿" + | ||
| 146 | + "ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞSSÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ÷ØÙÚÛÜÝÞ\u0178"; | ||
| 147 | + | ||
| 148 | + assertEquals(latin1SupplLowercased, latin1Suppl.toLowerCase()); | ||
| 149 | + assertEquals(latin1SupplUppercased, latin1Suppl.toUpperCase()); | ||
| 150 | + assertEquals(latin1SupplLowercased, latin1Suppl.toLocaleLowerCase("de")); | ||
| 151 | + assertEquals(latin1SupplUppercased, latin1Suppl.toLocaleUpperCase("de")); | ||
| 152 | + assertEquals(latin1SupplLowercased, latin1Suppl.toLocaleLowerCase("el")); | ||
| 153 | + assertEquals(latin1SupplUppercased, latin1Suppl.toLocaleUpperCase("el")); | ||
| 154 | + assertEquals(latin1SupplUppercased, latin1Suppl.toLocaleUpperCase("tr")); | ||
| 155 | + assertEquals(latin1SupplLowercased, latin1Suppl.toLocaleLowerCase("tr")); | ||
| 156 | + assertEquals(latin1SupplUppercased, latin1Suppl.toLocaleUpperCase("az")); | ||
| 157 | + assertEquals(latin1SupplLowercased, latin1Suppl.toLocaleLowerCase("az")); | ||
| 158 | + assertEquals(latin1SupplUppercased, latin1Suppl.toLocaleUpperCase("lt")); | ||
| 159 | + // Lithuanian need to have a dot-above for U+00CC(Ì) and U+00CD(Í) when | ||
| 160 | + // lowercasing. | ||
| 161 | + assertEquals("\u00A0¡¢£¤¥¦§¨©ª«¬\u00AD®°±²³´µ¶·¸¹º»¼½¾¿" + | ||
| 162 | + "àáâãäåæçèéêëi\u0307\u0300i\u0307\u0301îïðñòóôõö×øùúûüýþß" + | ||
| 163 | + "àáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ", | ||
| 164 | + latin1Suppl.toLocaleLowerCase("lt")); | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments