Namespace ilib.CType
Defined in: ilib-dyn-full.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Provides a set of static routines that return information about characters.
|
Method Attributes | Method Name and Description |
---|---|
<static> |
ilib.CType.isAlnum(ch)
Return whether or not the first character is alphabetic or numeric.
|
<static> |
ilib.CType.isAlpha(ch)
Return whether or not the first character is alphabetic.
|
<static> |
ilib.CType.isAscii(ch)
Return whether or not the first character is in the ASCII range.
|
<static> |
ilib.CType.isBlank(ch)
Return whether or not the first character is a blank character.
|
<static> |
ilib.CType.isCntrl(ch)
Return whether or not the first character is a control character.
|
<static> |
ilib.CType.isDigit(ch)
Return whether or not the first character is a digit character in the
Latin script.
|
<static> |
ilib.CType.isGraph(ch)
Return whether or not the first character is any printable character
other than space.
|
<static> |
ilib.CType.isIdeo(ch)
Return whether or not the first character is an ideographic character.
|
<static> |
ilib.CType.isLower(ch)
Return whether or not the first character is lower-case.
|
<static> |
ilib.CType.isPrint(ch)
Return whether or not the first character is any printable character,
including space.
|
<static> |
ilib.CType.isPunct(ch)
Return whether or not the first character is punctuation.
|
<static> |
ilib.CType.isScript(ch, script)
Return whether or not the first character in the given string is
in the given script.
|
<static> |
ilib.CType.isSpace(ch)
Return whether or not the first character is a whitespace character.
|
<static> |
ilib.CType.isUpper(ch)
Return whether or not the first character is upper-case.
|
<static> |
ilib.CType.isXdigit(ch)
Return whether or not the first character is a hexadecimal digit written
in the Latin script.
|
<static> |
ilib.CType.withinRange(ch, rangeName)
Return whether or not the first character is within the named range
of Unicode characters.
|
Depends directive: !depends ctype.isalnum.js
- Parameters:
- {string|ilib.String|number} ch
- character or code point to examine
- Returns:
- {boolean} true if the first character is alphabetic or numeric
Depends directive: !depends ctype.isalnum.js
- Parameters:
- {string|ilib.String|number} ch
- character or code point to examine
- Returns:
- {boolean} true if the first character is alphabetic.
Depends directive: !depends ctype.isascii.js
- Parameters:
- {string|ilib.String|number} ch
- character or code point to examine
- Returns:
- {boolean} true if the first character is in the ASCII range.
Depends directive: !depends ctype.isblank.js ie. a space or a tab.
- Parameters:
- {string|ilib.String|number} ch
- character or code point to examine
- Returns:
- {boolean} true if the first character is a blank character.
Depends directive: !depends ctype.iscntrl.js
- Parameters:
- {string|ilib.String|number} ch
- character or code point to examine
- Returns:
- {boolean} true if the first character is a control character.
Depends directive: !depends ctype.isdigit.js
- Parameters:
- {string|ilib.String|number} ch
- character or code point to examine
- Returns:
- {boolean} true if the first character is a digit character in the Latin script.
Depends directive: !depends ctype.isgraph.js
- Parameters:
- {string|ilib.String|number} ch
- character or code point to examine
- Returns:
- {boolean} true if the first character is any printable character other than space.
Depends directive: !depends ctype.isideo.js
- Parameters:
- {string|ilib.String|number} ch
- character or code point to examine
- Returns:
- {boolean} true if the first character is an ideographic character.
Depends directive: !depends ctype.islower.js
- Parameters:
- {string|ilib.String|number} ch
- character or code point to examine
- Returns:
- {boolean} true if the first character is lower-case.
Depends directive: !depends ctype.isprint.js
- Parameters:
- {string|ilib.String|number} ch
- character or code point to examine
- Returns:
- {boolean} true if the first character is printable.
Depends directive: !depends ctype.isprint.js
- Parameters:
- {string|ilib.String|number} ch
- character or code point to examine
- Returns:
- {boolean} true if the first character is punctuation.
Depends directive: !depends ctype.isscript.js
- Parameters:
- {string|ilib.String|number} ch
- character or code point to examine
- {string} script
- the 4-letter ISO 15924 to query against
- Returns:
- {boolean} true if the first character is in the given script, and false otherwise
Depends directive: !depends ctype.isspace.js
- Parameters:
- {string|ilib.String|number} ch
- character or code point to examine
- Returns:
- {boolean} true if the first character is a whitespace character.
Depends directive: !depends ctype.isupper.js
- Parameters:
- {string|ilib.String|number} ch
- character or code point to examine
- Returns:
- {boolean} true if the first character is upper-case.
Depends directive: !depends ctype.isxdigit.js
- Parameters:
- {string|ilib.String|number} ch
- character or code point to examine
- Returns:
- {boolean} true if the first character is a hexadecimal digit written in the Latin script.
- ascii - basic ASCII
- latin - Latin, Latin Extended Additional, Latin Extended-C, Latin Extended-D
- armenian
- greek - Greek, Greek Extended
- cyrillic - Cyrillic, Cyrillic Extended-A, Cyrillic Extended-B
- georgian - Georgian, Georgian Supplement
- glagolitic
- gothic
- ogham
- oldpersian
- runic
- ipa - IPA, Phonetic Extensions, Phonetic Extensions Supplement
- phonetic
- modifiertone - Modifier Tone Letters
- spacing
- diacritics
- halfmarks - Combining Half Marks
- small - Small Form Variants
- bamum - Bamum, Bamum Supplement
- ethiopic - Ethiopic, Ethiopic Extended, Ethiopic Extended-A
- nko
- osmanya
- tifinagh
- val
- arabic - Arabic, Arabic Supplement, Arabic Presentation Forms-A, Arabic Presentation Forms-B
- carlan
- hebrew
- mandaic
- samaritan
- syriac
- mongolian
- phagspa
- tibetan
- bengali
- devanagari - Devanagari, Devanagari Extended
- gujarati
- gurmukhi
- kannada
- lepcha
- limbu
- malayalam
- meetaimayek
- olchiki
- oriya
- saurashtra
- sinhala
- sylotinagri - Syloti Nagri
- tamil
- telugu
- thaana
- vedic
- batak
- balinese
- buginese
- cham
- javanese
- kayahli
- khmer
- lao
- myanmar - Myanmar, Myanmar Extended-A
- newtailue
- rejang
- sundanese
- taile
- taitham
- taiviet
- thai
- buhld
- hanunoo
- tagalog
- tagbanwa
- bopomofo - Bopomofo, Bopomofo Extended
- cjk - the CJK unified ideographs (Han), CJK Unified Ideographs Extension A, CJK Unified Ideographs Extension B, CJK Unified Ideographs Extension C, CJK Unified Ideographs Extension D, Ideographic Description Characters (=isIdeo())
- cjkcompatibility - CJK Compatibility, CJK Compatibility Ideographs, CJK Compatibility Forms, CJK Compatibility Ideographs Supplement
- cjkradicals - the CJK radicals, KangXi radicals
- hangul - Hangul Jamo, Hangul Syllables, Hangul Jamo Extended-A, Hangul Jamo Extended-B, Hangul Compatibility Jamo
- cjkpunct - CJK symbols and punctuation
- cjkstrokes - CJK strokes
- hiragana
- katakana - Katakana, Katakana Phonetic Extensions, Kana Supplement
- kanbun
- lisu
- yi - Yi Syllables, Yi Radicals
- cherokee
- canadian - Unified Canadian Aboriginal Syllabics, Unified Canadian Aboriginal Syllabics Extended
- presentation - Alphabetic presentation forms
- vertical - Vertical Forms
- width - Halfwidth and Fullwidth Forms
- punctuation - General punctuation, Supplemental Punctuation
- box - Box Drawing
- block - Block Elements
- letterlike - Letterlike symbols
- mathematical - Mathematical alphanumeric symbols, Miscellaneous Mathematical Symbols-A, Miscellaneous Mathematical Symbols-B
- enclosedalpha - Enclosed alphanumerics, Enclosed Alphanumeric Supplement
- enclosedcjk - Enclosed CJK letters and months, Enclosed Ideographic Supplement
- cjkcompatibility - CJK compatibility
- apl - APL symbols
- controlpictures - Control pictures
- misc - Miscellaneous technical
- ocr - Optical character recognition (OCR)
- combining - Combining Diacritical Marks, Combining Diacritical Marks for Symbols, Combining Diacritical Marks Supplement
- digits - ASCII digits (=isDigit())
- indicnumber - Common Indic Number Forms
- numbers - Number dorms
- supersub - Super- and subscripts
- arrows - Arrows, Miscellaneous Symbols and Arrows, Supplemental Arrows-A, Supplemental Arrows-B
- operators - Mathematical operators, supplemental mathematical operators
- geometric - Geometric shapes
- ancient - Ancient symbols
- braille - Braille patterns
- currency - Currency symbols
- dingbats
- gamesymbols
- yijing - Yijing Hexagram Symbols
- specials
- variations - Variation Selectors, Variation Selectors Supplement
- privateuse - Private Use Area, Supplementary Private Use Area-A, Supplementary Private Use Area-B
- supplementarya - Supplementary private use area-A
- supplementaryb - Supplementary private use area-B
- highsurrogates - High Surrogates, High Private Use Surrogates
- lowsurrogates
- reserved
- noncharacters
Depends directive: !depends ctype.js
- Parameters:
- {string|ilib.String|number} ch
- character or code point to examine
- {string} rangeName
- the name of the range to check
- Returns:
- {boolean} true if the first character is within the named range