unicode-uppercase 0.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,7 @@
1
+ Copyright 2025-Present Aviv Keller
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
+
5
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
+
7
+ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,57 @@
1
+ # unicode-uppercase
2
+
3
+ Full Unicode uppercase mapping, generated from the latest Unicode Character
4
+ Database. It implements the default case conversion of the Unicode Standard
5
+ (Section 3.13), including multi-character mappings, context-sensitive rules
6
+ and the language-specific rules of Lithuanian, Turkish and Azeri from
7
+ SpecialCasing.txt.
8
+
9
+ `String.prototype.toUpperCase()` does the same with the JavaScript engine's
10
+ Unicode version; this package always uses the latest Unicode release, gives
11
+ the same results in every engine, and looks up single code points.
12
+
13
+ ## Installation
14
+
15
+ ```sh
16
+ npm install unicode-uppercase
17
+ ```
18
+
19
+ ## Usage
20
+
21
+ ```js
22
+ import { toUppercase, isUppercase, lookupUppercase } from "unicode-uppercase";
23
+
24
+ toUppercase("straße"); // "STRASSE"
25
+ toUppercase("fix"); // "FIX"
26
+ toUppercase("istanbul", { locale: "tr" }); // "İSTANBUL"
27
+
28
+ isUppercase("STRASSE"); // true
29
+ ```
30
+
31
+ The default export is `toUppercase`, with every export as a property:
32
+ `import toUppercase from "unicode-uppercase"`.
33
+
34
+ ## API
35
+
36
+ ### `toUppercase(string, options?)`
37
+
38
+ Returns the uppercase form of a string. Set `options.locale` (a string or
39
+ `Intl.Locale`) to apply language-specific rules; other locales use the
40
+ default rules.
41
+
42
+ ### `isUppercase(string, options?)`
43
+
44
+ Returns whether `toUppercase()` leaves the string unchanged.
45
+
46
+ ### `lookupUppercase(codePoint)`
47
+
48
+ Returns the code points of the full, unconditional uppercase mapping of a code
49
+ point, or `undefined` if it maps to itself.
50
+
51
+ ### `VERSION`
52
+
53
+ The Unicode version of the data, such as `"18.0.0"`.
54
+
55
+ ## License
56
+
57
+ MIT. Includes data from the Unicode Character Database, © Unicode, Inc., under the [Unicode License v3](https://www.unicode.org/license.txt).
package/index.d.mts ADDED
@@ -0,0 +1,32 @@
1
+ export declare const VERSION: string;
2
+ /**
3
+ * Converts a string to uppercase using the full Unicode case mappings
4
+ * @param {string} input
5
+ * @param {{ locale?: string | Intl.Locale }} [options]
6
+ * @returns {string}
7
+ */
8
+ export declare function toUppercase(input: string, options?: {
9
+ locale?: string | Intl.Locale;
10
+ }): string;
11
+ /**
12
+ * Checks whether a string is unchanged by toUppercase()
13
+ * @param {string} input
14
+ * @param {{ locale?: string | Intl.Locale }} [options]
15
+ * @returns {boolean}
16
+ */
17
+ export declare function isUppercase(input: string, options?: {
18
+ locale?: string | Intl.Locale;
19
+ }): boolean;
20
+ /**
21
+ * Returns the full, unconditional uppercase mapping of a code point
22
+ * @param {number} codePoint
23
+ * @returns {number[] | undefined} undefined if it maps to itself
24
+ */
25
+ export declare function lookupUppercase(codePoint: number): number[] | undefined;
26
+ declare const _default: typeof toUppercase & {
27
+ toUppercase: typeof toUppercase;
28
+ isUppercase: typeof isUppercase;
29
+ lookupUppercase: typeof lookupUppercase;
30
+ VERSION: string;
31
+ };
32
+ export { _default as default };
package/index.mjs ADDED
@@ -0,0 +1,2 @@
1
+ /*! unicode-uppercase | MIT License | Includes data © Unicode, Inc., Unicode License v3 (https://www.unicode.org/license.txt) */
2
+ function e(e){if(typeof e!=`string`)throw TypeError(`Input must be a string`)}function t(e){if(typeof e!=`number`)throw TypeError(`Code point must be a number`);if(!Number.isInteger(e)||e<0||e>1114111)throw RangeError(`Invalid code point: ${e}`)}function n(e){let t=e.charCodeAt(0)-48,n=[],r=0;for(let i=1;i<e.length;){let a=0,o=1,s;do s=e.charCodeAt(i++)-48,a+=(s&31)*o,o*=32;while(s&32);t&2&&(a=a%2?-(a+1)/2:a/2),t&1&&(a=r+=a),n.push(a)}return n}function r(e,t){let r;return{get(i){if(r===void 0){let i=t.split(` `);r=new Map(n(e).map((e,t)=>[e,i[t]]))}return r.get(i)}}}function i(e,t){return!(o(e,t)&1)}function a(e){let t=[];for(let n=0;n<e.length;){let r=e.codePointAt(n);t.push(r),n+=r>65535?2:1}return t}function o(e,t){let n=0,r=e.length;for(;n<r;){let i=n+r>>>1;e[i]<=t?n=i+1:r=i}return n-1}function s({mappings:e,rules:t,properties:n}){let r=(e,t,r,a)=>{for(let o=t+r;o>=0&&o<e.length;o+=r){if(a(e[o]))return!0;if(!i(n.Combining_Other,e[o]))return!1}return!1},o={Final_Sigma(e,t){let r=r=>{for(let a=t+r;a>=0&&a<e.length;a+=r){if(i(n.Cased,e[a]))return!0;if(!i(n.Case_Ignorable,e[a]))return!1}return!1};return r(-1)&&!r(1)},After_Soft_Dotted:(e,t)=>r(e,t,-1,e=>i(n.Soft_Dotted,e)),More_Above:(e,t)=>r(e,t,1,e=>i(n.Combining_Above,e)),Before_Dot:(e,t)=>r(e,t,1,e=>e===775),After_I:(e,t)=>r(e,t,-1,e=>e===73)},s=/* @__PURE__ */ new Map;for(let e of t){let t=e.contexts.map(e=>e.startsWith(`Not_`)?(t,n)=>!o[e.slice(4)](t,n):o[e]),n=s.get(e.codePoint)??[];s.set(e.codePoint,[...n,{...e,tests:t}])}let c=new Set(t.map(e=>e.language));function l(e){if(e===void 0)return;let t=typeof e==`string`?e.split(/[-_]/,1)[0].toLowerCase():e.language;if(typeof t!=`string`)throw TypeError(`Locale must be a string or an Intl.Locale`);return c.has(t)?t:void 0}function u(t,n,r,i){let a=s.get(t[n]);if(a!==void 0){for(let e of a)if((e.language===null||e.language===i)&&e.tests.every(e=>e(t,n)))return e.mappings[r]}return e[r].get(t[n])}function d(e,t,n){let r=a(e),i=``;for(let e=0;e<r.length;e++)i+=u(r,e,t,n)??String.fromCodePoint(r[e]);return i}return{resolveLanguage:l,mapAt:u,convert:d,lookup:(t,n)=>e[n].get(t),isCased:e=>i(n.Cased,e)}}const c={mappings:{upper:/* @__PURE__ */ r(`1Q31111111111111111111111111k1Z111111111111111111111111211111112222222222222222222222222222322222221222222222222222222222223221132346341133223534234261212122222222122222222212124222222222222222222242222222293125222211111212214121112111132132513214111116;1W5\\124411CL1111111111111111111111111111111111214112222222222221111233e11111111111111111111111111111111111111111111111122222222222222222:2222222222222222222222222232222221222222222222222222222222222222222222222222222222b111111111111111111111111111111111111111Yj2111111111111111111111111111111111111111111311iG11111ST2111111112_74Ac32222222222222222222222222222222222222222222222222222222222222222222222222211111162222222222222222222222222222222222222222222222211111111911111;111111191111111911111;1111111911111119111111111111131111111111111111111111111111111111111111111111111111215241121541113191111111;11215b:R11111111111111115\\J1111111111111111111111111Wj11111111111111111111111111111111111111111111111124122273;2222222222222222222222222222222222222222222222222925=111111111111111111111111111111111111126dXN2222222222222222222222D2222222222222X42222224222222222222222222222222222222;23222255213222222222<22222225232222222KeJ17M1111111111111111111111111111111111111111111111111111111111111111111111111111111QjC111111=1111ZQ11111111111111111111111111^V1111111111111111111111111111111111111111Y411111111111111111111111111111111111l41111111111211111111111111211111121Th111111111111111111111111111111111111111111111111111n3111111111111111111111ki21111111111111111111111111111111Q\\E1111111111111111111111111111111l1111111111111111111111111^SL8234G2224222222F]\\2111111111111111111111111111111111`,`A B C D E F G H I J K L M N O P Q R S T U V W X Y Z Μ SS À Á Â Ã Ä Å Æ Ç È É Ê Ë Ì Í Î Ï Ð Ñ Ò Ó Ô Õ Ö Ø Ù Ú Û Ü Ý Þ Ÿ Ā Ă Ą Ć Ĉ Ċ Č Ď Đ Ē Ĕ Ė Ę Ě Ĝ Ğ Ġ Ģ Ĥ Ħ Ĩ Ī Ĭ Į I IJ Ĵ Ķ Ĺ Ļ Ľ Ŀ Ł Ń Ņ Ň ʼN Ŋ Ō Ŏ Ő Œ Ŕ Ŗ Ř Ś Ŝ Ş Š Ţ Ť Ŧ Ũ Ū Ŭ Ů Ű Ų Ŵ Ŷ Ź Ż Ž S Ƀ Ƃ Ƅ Ƈ Ƌ Ƒ Ƕ Ƙ Ƚ Ƛ Ƞ Ơ Ƣ Ƥ Ƨ Ƭ Ư Ƴ Ƶ Ƹ Ƽ Ƿ DŽ DŽ LJ LJ NJ NJ Ǎ Ǐ Ǒ Ǔ Ǖ Ǘ Ǚ Ǜ Ǝ Ǟ Ǡ Ǣ Ǥ Ǧ Ǩ Ǫ Ǭ Ǯ J̌ DZ DZ Ǵ Ǹ Ǻ Ǽ Ǿ Ȁ Ȃ Ȅ Ȇ Ȉ Ȋ Ȍ Ȏ Ȑ Ȓ Ȕ Ȗ Ș Ț Ȝ Ȟ Ȣ Ȥ Ȧ Ȩ Ȫ Ȭ Ȯ Ȱ Ȳ Ȼ Ȿ Ɀ Ɂ Ɇ Ɉ Ɋ Ɍ Ɏ Ɐ Ɑ Ɒ Ɓ Ɔ Ɖ Ɗ Ə Ɛ Ɜ Ɠ Ɡ Ɣ Ɤ Ɥ Ɦ Ɨ Ɩ Ɪ Ɫ Ɬ Ɯ Ɱ Ɲ Ɵ ꟝ ꟢ Ɽ Ʀ Ʂ Ʃ Ʇ Ʈ Ʉ Ʊ Ʋ Ʌ Ʒ Ʝ Ʞ Ι Ͱ Ͳ Ͷ Ͻ Ͼ Ͽ Ϊ́ Ά Έ Ή Ί Ϋ́ Α Β Γ Δ Ε Ζ Η Θ Ι Κ Λ Μ Ν Ξ Ο Π Ρ Σ Σ Τ Υ Φ Χ Ψ Ω Ϊ Ϋ Ό Ύ Ώ Β Θ Φ Π Ϗ Ϙ Ϛ Ϝ Ϟ Ϡ Ϣ Ϥ Ϧ Ϩ Ϫ Ϭ Ϯ Κ Ρ Ϲ Ϳ Ε Ϸ Ϻ А Б В Г Д Е Ж З И Й К Л М Н О П Р С Т У Ф Х Ц Ч Ш Щ Ъ Ы Ь Э Ю Я Ѐ Ё Ђ Ѓ Є Ѕ І Ї Ј Љ Њ Ћ Ќ Ѝ Ў Џ Ѡ Ѣ Ѥ Ѧ Ѩ Ѫ Ѭ Ѯ Ѱ Ѳ Ѵ Ѷ Ѹ Ѻ Ѽ Ѿ Ҁ Ҋ Ҍ Ҏ Ґ Ғ Ҕ Җ Ҙ Қ Ҝ Ҟ Ҡ Ң Ҥ Ҧ Ҩ Ҫ Ҭ Ү Ұ Ҳ Ҵ Ҷ Ҹ Һ Ҽ Ҿ Ӂ Ӄ Ӆ Ӈ Ӊ Ӌ Ӎ Ӏ Ӑ Ӓ Ӕ Ӗ Ә Ӛ Ӝ Ӟ Ӡ Ӣ Ӥ Ӧ Ө Ӫ Ӭ Ӯ Ӱ Ӳ Ӵ Ӷ Ӹ Ӻ Ӽ Ӿ Ԁ Ԃ Ԅ Ԇ Ԉ Ԋ Ԍ Ԏ Ԑ Ԓ Ԕ Ԗ Ԙ Ԛ Ԝ Ԟ Ԡ Ԣ Ԥ Ԧ Ԩ Ԫ Ԭ Ԯ Ա Բ Գ Դ Ե Զ Է Ը Թ Ժ Ի Լ Խ Ծ Կ Հ Ձ Ղ Ճ Մ Յ Ն Շ Ո Չ Պ Ջ Ռ Ս Վ Տ Ր Ց Ւ Փ Ք Օ Ֆ ԵՒ Ა Ბ Გ Დ Ე Ვ Ზ Თ Ი Კ Ლ Მ Ნ Ო Პ Ჟ Რ Ს Ტ Უ Ფ Ქ Ღ Ყ Შ Ჩ Ც Ძ Წ Ჭ Ხ Ჯ Ჰ Ჱ Ჲ Ჳ Ჴ Ჵ Ჶ Ჷ Ჸ Ჹ Ჺ Ჽ Ჾ Ჿ Ᏸ Ᏹ Ᏺ Ᏻ Ᏼ Ᏽ В Д О С Т Т Ъ Ѣ Ꙋ Ᲊ Ᵹ Ᵽ Ᶎ Ḁ Ḃ Ḅ Ḇ Ḉ Ḋ Ḍ Ḏ Ḑ Ḓ Ḕ Ḗ Ḙ Ḛ Ḝ Ḟ Ḡ Ḣ Ḥ Ḧ Ḩ Ḫ Ḭ Ḯ Ḱ Ḳ Ḵ Ḷ Ḹ Ḻ Ḽ Ḿ Ṁ Ṃ Ṅ Ṇ Ṉ Ṋ Ṍ Ṏ Ṑ Ṓ Ṕ Ṗ Ṙ Ṛ Ṝ Ṟ Ṡ Ṣ Ṥ Ṧ Ṩ Ṫ Ṭ Ṯ Ṱ Ṳ Ṵ Ṷ Ṹ Ṻ Ṽ Ṿ Ẁ Ẃ Ẅ Ẇ Ẉ Ẋ Ẍ Ẏ Ẑ Ẓ Ẕ H̱ T̈ W̊ Y̊ Aʾ Ṡ Ạ Ả Ấ Ầ Ẩ Ẫ Ậ Ắ Ằ Ẳ Ẵ Ặ Ẹ Ẻ Ẽ Ế Ề Ể Ễ Ệ Ỉ Ị Ọ Ỏ Ố Ồ Ổ Ỗ Ộ Ớ Ờ Ở Ỡ Ợ Ụ Ủ Ứ Ừ Ử Ữ Ự Ỳ Ỵ Ỷ Ỹ Ỻ Ỽ Ỿ Ἀ Ἁ Ἂ Ἃ Ἄ Ἅ Ἆ Ἇ Ἐ Ἑ Ἒ Ἓ Ἔ Ἕ Ἠ Ἡ Ἢ Ἣ Ἤ Ἥ Ἦ Ἧ Ἰ Ἱ Ἲ Ἳ Ἴ Ἵ Ἶ Ἷ Ὀ Ὁ Ὂ Ὃ Ὄ Ὅ Υ̓ Ὑ Υ̓̀ Ὓ Υ̓́ Ὕ Υ̓͂ Ὗ Ὠ Ὡ Ὢ Ὣ Ὤ Ὥ Ὦ Ὧ Ὰ Ά Ὲ Έ Ὴ Ή Ὶ Ί Ὸ Ό Ὺ Ύ Ὼ Ώ ἈΙ ἉΙ ἊΙ ἋΙ ἌΙ ἍΙ ἎΙ ἏΙ ἈΙ ἉΙ ἊΙ ἋΙ ἌΙ ἍΙ ἎΙ ἏΙ ἨΙ ἩΙ ἪΙ ἫΙ ἬΙ ἭΙ ἮΙ ἯΙ ἨΙ ἩΙ ἪΙ ἫΙ ἬΙ ἭΙ ἮΙ ἯΙ ὨΙ ὩΙ ὪΙ ὫΙ ὬΙ ὭΙ ὮΙ ὯΙ ὨΙ ὩΙ ὪΙ ὫΙ ὬΙ ὭΙ ὮΙ ὯΙ Ᾰ Ᾱ ᾺΙ ΑΙ ΆΙ Α͂ Α͂Ι ΑΙ Ι ῊΙ ΗΙ ΉΙ Η͂ Η͂Ι ΗΙ Ῐ Ῑ Ϊ̀ Ϊ́ Ι͂ Ϊ͂ Ῠ Ῡ Ϋ̀ Ϋ́ Ρ̓ Ῥ Υ͂ Ϋ͂ ῺΙ ΩΙ ΏΙ Ω͂ Ω͂Ι ΩΙ Ⅎ Ⅰ Ⅱ Ⅲ Ⅳ Ⅴ Ⅵ Ⅶ Ⅷ Ⅸ Ⅹ Ⅺ Ⅻ Ⅼ Ⅽ Ⅾ Ⅿ Ↄ Ⓐ Ⓑ Ⓒ Ⓓ Ⓔ Ⓕ Ⓖ Ⓗ Ⓘ Ⓙ Ⓚ Ⓛ Ⓜ Ⓝ Ⓞ Ⓟ Ⓠ Ⓡ Ⓢ Ⓣ Ⓤ Ⓥ Ⓦ Ⓧ Ⓨ Ⓩ Ⰰ Ⰱ Ⰲ Ⰳ Ⰴ Ⰵ Ⰶ Ⰷ Ⰸ Ⰹ Ⰺ Ⰻ Ⰼ Ⰽ Ⰾ Ⰿ Ⱀ Ⱁ Ⱂ Ⱃ Ⱄ Ⱅ Ⱆ Ⱇ Ⱈ Ⱉ Ⱊ Ⱋ Ⱌ Ⱍ Ⱎ Ⱏ Ⱐ Ⱑ Ⱒ Ⱓ Ⱔ Ⱕ Ⱖ Ⱗ Ⱘ Ⱙ Ⱚ Ⱛ Ⱜ Ⱝ Ⱞ Ⱟ Ⱡ Ⱥ Ⱦ Ⱨ Ⱪ Ⱬ Ⱳ Ⱶ Ⲁ Ⲃ Ⲅ Ⲇ Ⲉ Ⲋ Ⲍ Ⲏ Ⲑ Ⲓ Ⲕ Ⲗ Ⲙ Ⲛ Ⲝ Ⲟ Ⲡ Ⲣ Ⲥ Ⲧ Ⲩ Ⲫ Ⲭ Ⲯ Ⲱ Ⲳ Ⲵ Ⲷ Ⲹ Ⲻ Ⲽ Ⲿ Ⳁ Ⳃ Ⳅ Ⳇ Ⳉ Ⳋ Ⳍ Ⳏ Ⳑ Ⳓ Ⳕ Ⳗ Ⳙ Ⳛ Ⳝ Ⳟ Ⳡ Ⳣ Ⳬ Ⳮ Ⳳ Ⴀ Ⴁ Ⴂ Ⴃ Ⴄ Ⴅ Ⴆ Ⴇ Ⴈ Ⴉ Ⴊ Ⴋ Ⴌ Ⴍ Ⴎ Ⴏ Ⴐ Ⴑ Ⴒ Ⴓ Ⴔ Ⴕ Ⴖ Ⴗ Ⴘ Ⴙ Ⴚ Ⴛ Ⴜ Ⴝ Ⴞ Ⴟ Ⴠ Ⴡ Ⴢ Ⴣ Ⴤ Ⴥ Ⴧ Ⴭ Ꙁ Ꙃ Ꙅ Ꙇ Ꙉ Ꙋ Ꙍ Ꙏ Ꙑ Ꙓ Ꙕ Ꙗ Ꙙ Ꙛ Ꙝ Ꙟ Ꙡ Ꙣ Ꙥ Ꙧ Ꙩ Ꙫ Ꙭ Ꚁ Ꚃ Ꚅ Ꚇ Ꚉ Ꚋ Ꚍ Ꚏ Ꚑ Ꚓ Ꚕ Ꚗ Ꚙ Ꚛ Ꜣ Ꜥ Ꜧ Ꜩ Ꜫ Ꜭ Ꜯ Ꜳ Ꜵ Ꜷ Ꜹ Ꜻ Ꜽ Ꜿ Ꝁ Ꝃ Ꝅ Ꝇ Ꝉ Ꝋ Ꝍ Ꝏ Ꝑ Ꝓ Ꝕ Ꝗ Ꝙ Ꝛ Ꝝ Ꝟ Ꝡ Ꝣ Ꝥ Ꝧ Ꝩ Ꝫ Ꝭ Ꝯ Ꝺ Ꝼ Ꝿ Ꞁ Ꞃ Ꞅ Ꞇ Ꞌ Ꞑ Ꞓ Ꞔ Ꞗ Ꞙ Ꞛ Ꞝ Ꞟ Ꞡ Ꞣ Ꞥ Ꞧ Ꞩ Ꞵ Ꞷ Ꞹ Ꞻ Ꞽ Ꞿ Ꟁ Ꟃ Ꟈ Ꟊ Ꟍ ꟎ Ꟑ ꟒ ꟔ Ꟗ Ꟙ Ꟛ Ꟶ ꭬ ꭭ Ꭓ Ꭰ Ꭱ Ꭲ Ꭳ Ꭴ Ꭵ Ꭶ Ꭷ Ꭸ Ꭹ Ꭺ Ꭻ Ꭼ Ꭽ Ꭾ Ꭿ Ꮀ Ꮁ Ꮂ Ꮃ Ꮄ Ꮅ Ꮆ Ꮇ Ꮈ Ꮉ Ꮊ Ꮋ Ꮌ Ꮍ Ꮎ Ꮏ Ꮐ Ꮑ Ꮒ Ꮓ Ꮔ Ꮕ Ꮖ Ꮗ Ꮘ Ꮙ Ꮚ Ꮛ Ꮜ Ꮝ Ꮞ Ꮟ Ꮠ Ꮡ Ꮢ Ꮣ Ꮤ Ꮥ Ꮦ Ꮧ Ꮨ Ꮩ Ꮪ Ꮫ Ꮬ Ꮭ Ꮮ Ꮯ Ꮰ Ꮱ Ꮲ Ꮳ Ꮴ Ꮵ Ꮶ Ꮷ Ꮸ Ꮹ Ꮺ Ꮻ Ꮼ Ꮽ Ꮾ Ꮿ FF FI FL FFI FFL ST ST ՄՆ ՄԵ ՄԻ ՎՆ ՄԽ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 𐐀 𐐁 𐐂 𐐃 𐐄 𐐅 𐐆 𐐇 𐐈 𐐉 𐐊 𐐋 𐐌 𐐍 𐐎 𐐏 𐐐 𐐑 𐐒 𐐓 𐐔 𐐕 𐐖 𐐗 𐐘 𐐙 𐐚 𐐛 𐐜 𐐝 𐐞 𐐟 𐐠 𐐡 𐐢 𐐣 𐐤 𐐥 𐐦 𐐧 𐒰 𐒱 𐒲 𐒳 𐒴 𐒵 𐒶 𐒷 𐒸 𐒹 𐒺 𐒻 𐒼 𐒽 𐒾 𐒿 𐓀 𐓁 𐓂 𐓃 𐓄 𐓅 𐓆 𐓇 𐓈 𐓉 𐓊 𐓋 𐓌 𐓍 𐓎 𐓏 𐓐 𐓑 𐓒 𐓓 𐕰 𐕱 𐕲 𐕳 𐕴 𐕵 𐕶 𐕷 𐕸 𐕹 𐕺 𐕼 𐕽 𐕾 𐕿 𐖀 𐖁 𐖂 𐖃 𐖄 𐖅 𐖆 𐖇 𐖈 𐖉 𐖊 𐖌 𐖍 𐖎 𐖏 𐖐 𐖑 𐖒 𐖔 𐖕 𐲀 𐲁 𐲂 𐲃 𐲄 𐲅 𐲆 𐲇 𐲈 𐲉 𐲊 𐲋 𐲌 𐲍 𐲎 𐲏 𐲐 𐲑 𐲒 𐲓 𐲔 𐲕 𐲖 𐲗 𐲘 𐲙 𐲚 𐲛 𐲜 𐲝 𐲞 𐲟 𐲠 𐲡 𐲢 𐲣 𐲤 𐲥 𐲦 𐲧 𐲨 𐲩 𐲪 𐲫 𐲬 𐲭 𐲮 𐲯 𐲰 𐲱 𐲲 𐵐 𐵑 𐵒 𐵓 𐵔 𐵕 𐵖 𐵗 𐵘 𐵙 𐵚 𐵛 𐵜 𐵝 𐵞 𐵟 𐵠 𐵡 𐵢 𐵣 𐵤 𐵥 𑢠 𑢡 𑢢 𑢣 𑢤 𑢥 𑢦 𑢧 𑢨 𑢩 𑢪 𑢫 𑢬 𑢭 𑢮 𑢯 𑢰 𑢱 𑢲 𑢳 𑢴 𑢵 𑢶 𑢷 𑢸 𑢹 𑢺 𑢻 𑢼 𑢽 𑢾 𑢿 𖹀 𖹁 𖹂 𖹃 𖹄 𖹅 𖹆 𖹇 𖹈 𖹉 𖹊 𖹋 𖹌 𖹍 𖹎 𖹏 𖹐 𖹑 𖹒 𖹓 𖹔 𖹕 𖹖 𖹗 𖹘 𖹙 𖹚 𖹛 𖹜 𖹝 𖹞 𖹟 𖺠 𖺡 𖺢 𖺣 𖺤 𖺥 𖺦 𖺧 𖺨 𖺩 𖺪 𖺫 𖺬 𖺭 𖺮 𖺯 𖺰 𖺱 𖺲 𖺳 𖺴 𖺵 𖺶 𖺷 𖺸 𝽀 𝽈 𝽊 𝽍 𝽑 𝽨 𝽪 𝽬 𝽮 𝽲 𝽴 𝽶 𝽸 𝽺 𝽼 𝽾 SS 𞤀 𞤁 𞤂 𞤃 𞤄 𞤅 𞤆 𞤇 𞤈 𞤉 𞤊 𞤋 𞤌 𞤍 𞤎 𞤏 𞤐 𞤑 𞤒 𞤓 𞤔 𞤕 𞤖 𞤗 𞤘 𞤙 𞤚 𞤛 𞤜 𞤝 𞤞 𞤟 𞤠 𞤡`)},rules:[{codePoint:775,language:`lt`,contexts:[`After_Soft_Dotted`],mappings:{upper:``}},{codePoint:105,language:`tr`,contexts:[],mappings:{upper:`İ`}},{codePoint:105,language:`az`,contexts:[],mappings:{upper:`İ`}}],properties:{Combining_Other:/* @__PURE__ */ n("1eHX1811332441317^A141326621221>11122113^23`18225121@1b316121S11O12123121131111111Y51:1k23m13c15?12121363122Q21@141Y31@1^31@1^31@1^31@1o31^31@172U31@1]32@1l31]33=4\\33=4\\22K11111g1211542131Q21`3112b21Vd12N1m41f61_4111l61W21N1e1621122251B1814122T21?1W11m12j11;2S21l46242741d617124U151211bF243:21116_T31ZE6Y32[kM1U11g41V33U11o21<1c71Q21f71`iC1XH7_N1R71\\i11[1241V51UO2R1311113213V223114b1111P61Y11>1i12h32n11\\2191Z32b52`22@1P43a3131k32k72n31f32c31]82R8241l41c21B1a21U=1R8112a21Y=2\\_@1P^25kW12\\UC1XT52l15368872T638221P12Zc43P81PG7c31"),Soft_Dotted:/* @__PURE__ */ n(`1Y32T61i81N1d11D1P:1R3111YX61c11=131T41m41U=1f62bi21UmY32b12b12b12b12b12b12b12b12b12b12b12b12VT21d23W31b32J1`)}},l=`18.0.0`,u=/* @__PURE__ */ s(c),d=/\P{ASCII}/u;function f(t,n={}){e(t);let r=u.resolveLanguage(n.locale);return r===void 0&&!d.test(t)?t.toUpperCase():u.convert(t,`upper`,r)}function p(e,t){return f(e,t)===e}function m(e){t(e);let n=u.lookup(e,`upper`);return n===void 0?void 0:a(n)}var h=/* @__PURE__ */ Object.assign(f,{toUppercase:f,isUppercase:p,lookupUppercase:m,VERSION:l});export{l as VERSION,h as default,p as isUppercase,m as lookupUppercase,f as toUppercase};
package/package.json CHANGED
@@ -1 +1,39 @@
1
- {"name":"unicode-uppercase","version":"0.0.0"}
1
+ {
2
+ "name": "unicode-uppercase",
3
+ "version": "1.1.0",
4
+ "description": "Full Unicode uppercase mapping, with Lithuanian, Turkish and Azeri rules, based on the official Unicode Character Database",
5
+ "keywords": [
6
+ "unicode",
7
+ "ucd",
8
+ "uppercase",
9
+ "case-mapping",
10
+ "string",
11
+ "i18n",
12
+ "locale"
13
+ ],
14
+ "license": "MIT",
15
+ "author": "Aviv Keller <me@aviv.sh>",
16
+ "type": "module",
17
+ "main": "./index.mjs",
18
+ "types": "./index.d.mts",
19
+ "exports": {
20
+ ".": {
21
+ "types": "./index.d.mts",
22
+ "default": "./index.mjs"
23
+ }
24
+ },
25
+ "files": [
26
+ "index.mjs",
27
+ "index.d.mts"
28
+ ],
29
+ "sideEffects": false,
30
+ "repository": {
31
+ "type": "git",
32
+ "url": "git+https://github.com/avivkeller/unicode-packages.git",
33
+ "directory": "packages/ucd/uppercase"
34
+ },
35
+ "bugs": {
36
+ "url": "https://github.com/avivkeller/unicode-packages/issues"
37
+ },
38
+ "homepage": "https://github.com/avivkeller/unicode-packages/tree/main/packages/ucd/uppercase#readme"
39
+ }