nv-char-uplow
v1.0.1
Published
nv-char-uplow ======================= - simple util to check if a char/code-point is lower-case OR upper-case OR both-case OR neither-case - coz some special-char .toUpperCase().toLowerCase() NOT same as self
Downloads
2
Readme
nv-char-uplow
- simple util to check if a char/code-point is lower-case OR upper-case OR both-case OR neither-case
- coz some special-char .toUpperCase().toLowerCase() NOT same as self
install
- npm install nv-char-uplow
splitted
usage
const x = require("nv-char-uplow");
example
> x.is_unrecover_toupp_cd('ς'.codePointAt(0))
true
> 'ς'.toUpperCase()
'Σ'
> 'ς'.toUpperCase().toLowerCase()
'σ'
> 'ς'.toUpperCase().toLowerCase().toUpperCase()
'Σ'
> 'ς'.toUpperCase().toLowerCase() !== 'ς'
true
>
METHODS
APIS
{
clsify: [Function: clsify],
is_neither_case_cd: [Function: is_neither_case_cd],
is_low_case_only_cd: [Function: is_low_case_only_cd],
is_upp_case_only_cd: [Function: is_upp_case_only_cd],
is_both_case_cd: [Function: is_both_case_cd],
TO_UPPER_WILL_CHANGE_CHAR_LEN_ENTRIES: [
[ 'ß', 1, 'SS', 2 ], [ 'ʼn', 1, 'ʼN', 2 ], [ 'ǰ', 1, 'J̌', 2 ],
[ 'ΐ', 1, 'Ϊ́', 3 ], [ 'ΰ', 1, 'Ϋ́', 3 ], [ 'և', 1, 'ԵՒ', 2 ],
[ 'ẖ', 1, 'H̱', 2 ], [ 'ẗ', 1, 'T̈', 2 ], [ 'ẘ', 1, 'W̊', 2 ],
[ 'ẙ', 1, 'Y̊', 2 ], [ 'ẚ', 1, 'Aʾ', 2 ], [ 'ὐ', 1, 'Υ̓', 2 ],
[ 'ὒ', 1, 'Υ̓̀', 3 ], [ 'ὔ', 1, 'Υ̓́', 3 ], [ 'ὖ', 1, 'Υ̓͂', 3 ],
[ 'ᾀ', 1, 'ἈΙ', 2 ], [ 'ᾁ', 1, 'ἉΙ', 2 ], [ 'ᾂ', 1, 'ἊΙ', 2 ],
[ 'ᾃ', 1, 'ἋΙ', 2 ], [ 'ᾄ', 1, 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', 2 ], [ 'ﬓ', 1, 'ՄՆ', 2 ], [ 'ﬔ', 1, 'ՄԵ', 2 ],
[ 'ﬕ', 1, 'ՄԻ', 2 ],
... 2 more items
],
TO_LOWER_WILL_CHANGE_CHAR_LEN_ENTRIES: [ [ 'İ', 1, 'i̇', 2 ] ],
is_unrecover_toupp_low_case_cd: [Function: is_unrecover_toupp_low_case_cd],
is_unrecover_tolow_upp_case_cd: [Function: is_unrecover_tolow_upp_case_cd],
is_unrecover_toupp_cd: [Function: is_unrecover_toupp_cd],
is_unrecover_tolow_cd: [Function: is_unrecover_tolow_cd]
}
LICENSE
- ISC