1 // © 2016 and later: Unicode, Inc. and others. 2 // License & terms of use: http://www.unicode.org/copyright.html 4 ********************************************************************** 5 * Copyright (C) 1997-2016, International Business Machines 6 * Corporation and others. All Rights Reserved. 7 ********************************************************************** 11 * Modification History: 13 * Date Name Description 14 * 07/06/2001 Ram Creation. 15 ****************************************************************************** 56 * Note: UScriptCode constants and their ISO script code comments 57 * are parsed by preparseucd.py. 58 * It matches lines like 59 * USCRIPT_<Unicode Script value name> = <integer>, / * <ISO script code> * / 67 USCRIPT_INHERITED = 1,
/* Zinh *//* "Code for inherited script", for non-spacing combining marks; also Qaai */ 150 /* New scripts in Unicode 3.2 */ 160 /* New scripts in Unicode 4 */ 181 /* New scripts in Unicode 4.1 */ 197 /* New script codes from Unicode and ISO 15924 */ 287 USCRIPT_UNKNOWN = 103,
/* Zzzz *//* Unknown="Code for uncoded script", for unassigned code points */ 356 #ifndef U_HIDE_DEPRECATED_API 359 #endif/* U_HIDE_DEPRECATED_API */ 532 #ifndef U_HIDE_DEPRECATED_API 540 #endif// U_HIDE_DEPRECATED_API 575 U_CAPIconstchar* U_EXPORT2
587 U_CAPIconstchar* U_EXPORT2
687 #if U_SHOW_CPLUSPLUS_API UnicodeString is a string class that stores Unicode characters directly and provides similar function...
int32_t UChar32
Define UChar32 as a type for single Unicode code points.
int8_t UBool
The ICU boolean type, a signed-byte integer.
#define U_CAPI
This is used to declare a function as a public ICU C API.
char16_t UChar
The base type for UTF-16 code units and pointers.
U_CAPI int32_t uscript_getSampleString(UScriptCode script, UChar *dest, int32_t capacity, UErrorCode *pErrorCode)
Writes the script sample character string.
U_CAPI int32_t uscript_getCode(const char *nameOrAbbrOrLocale, UScriptCode *fillIn, int32_t capacity, UErrorCode *err)
Gets the script codes associated with the given locale or ISO 15924 abbreviation or name.
U_CAPI int32_t uscript_getScriptExtensions(UChar32 c, UScriptCode *scripts, int32_t capacity, UErrorCode *errorCode)
Writes code point c's Script_Extensions as a list of UScriptCode values to the output scripts array a...
U_COMMON_API icu::UnicodeString uscript_getSampleUnicodeString(UScriptCode script)
Returns the script sample character string.
UScriptCode
Constants for ISO 15924 script codes.
@ USCRIPT_INSCRIPTIONAL_PAHLAVI
@ USCRIPT_IMPERIAL_ARAMAIC
@ USCRIPT_SIGN_WRITING
Sutton SignWriting.
@ USCRIPT_CODE_LIMIT
One more than the highest normal UScriptCode value.
@ USCRIPT_CANADIAN_ABORIGINAL
Canadian_Aboriginal script.
@ USCRIPT_OLD_NORTH_ARABIAN
@ USCRIPT_TRADITIONAL_HAN
@ USCRIPT_MENDE
Mende Kikakui.
@ USCRIPT_INSCRIPTIONAL_PARTHIAN
@ USCRIPT_MEROITIC_HIEROGLYPHS
@ USCRIPT_UCAS
Canadian_Aboriginal script (alias).
@ USCRIPT_PHONETIC_POLLARD
@ USCRIPT_KHITAN_SMALL_SCRIPT
@ USCRIPT_NYIAKENG_PUACHUE_HMONG
@ USCRIPT_HANIFI_ROHINGYA
@ USCRIPT_OLD_CHURCH_SLAVONIC_CYRILLIC
@ USCRIPT_ANATOLIAN_HIEROGLYPHS
@ USCRIPT_MATHEMATICAL_NOTATION
@ USCRIPT_MAYAN_HIEROGLYPHS
@ USCRIPT_TRADITIONAL_HAN_WITH_LATIN
@ USCRIPT_ZANABAZAR_SQUARE
@ USCRIPT_ARABIC_NASTALIQ
@ USCRIPT_HIERATIC_EGYPTIAN
@ USCRIPT_UNWRITTEN_LANGUAGES
@ USCRIPT_DEMOTIC_EGYPTIAN
@ USCRIPT_OLD_SOUTH_ARABIAN
@ USCRIPT_PSALTER_PAHLAVI
@ USCRIPT_EGYPTIAN_HIEROGLYPHS
@ USCRIPT_MEROITIC_CURSIVE
@ USCRIPT_KATAKANA_OR_HIRAGANA
New script code in Unicode 4.0.1.
@ USCRIPT_DUPLOYAN_SHORTAND
@ USCRIPT_ESTRANGELO_SYRIAC
@ USCRIPT_HAN_WITH_BOPOMOFO
@ USCRIPT_CAUCASIAN_ALBANIAN
U_CAPI UBool uscript_hasScript(UChar32 c, UScriptCode sc)
Do the Script_Extensions of code point c contain script sc? If c does not have explicit Script_Extens...
UScriptUsage
Script usage constants.
@ USCRIPT_USAGE_EXCLUDED
Candidate for Exclusion from Identifiers.
@ USCRIPT_USAGE_RECOMMENDED
Recommended script.
@ USCRIPT_USAGE_LIMITED_USE
Limited Use script.
@ USCRIPT_USAGE_UNKNOWN
Unknown script usage.
@ USCRIPT_USAGE_ASPIRATIONAL
Aspirational Use script.
@ USCRIPT_USAGE_NOT_ENCODED
Not encoded in Unicode.
U_CAPI UBool uscript_breaksBetweenLetters(UScriptCode script)
Returns true if the script allows line breaks between letters (excluding hyphenation).
U_CAPI UBool uscript_isCased(UScriptCode script)
Returns true if in modern (or most recent) usage of the script case distinctions are customary.
U_CAPI UScriptUsage uscript_getUsage(UScriptCode script)
Returns the script usage according to UAX #31 Unicode Identifier and Pattern Syntax.
U_CAPI const char * uscript_getName(UScriptCode scriptCode)
Returns the long Unicode script name, if there is one.
U_CAPI const char * uscript_getShortName(UScriptCode scriptCode)
Returns the 4-letter ISO 15924 script code, which is the same as the short Unicode script name if Uni...
U_CAPI UBool uscript_isRightToLeft(UScriptCode script)
Returns true if the script is written right-to-left.
U_CAPI UScriptCode uscript_getScript(UChar32 codepoint, UErrorCode *err)
Gets the script code associated with the given codepoint.
Basic definitions for ICU, for both C and C++ APIs.
UErrorCode
Standard ICU4C error code type, a substitute for exceptions.
#define U_COMMON_API
Set to export library symbols from inside the common library, and to import them from outside.