summaryrefslogtreecommitdiff
path: root/libicu/ndk_headers/unicode/uchar.h
diff options
context:
space:
mode:
Diffstat (limited to 'libicu/ndk_headers/unicode/uchar.h')
-rw-r--r--libicu/ndk_headers/unicode/uchar.h98
1 files changed, 96 insertions, 2 deletions
diff --git a/libicu/ndk_headers/unicode/uchar.h b/libicu/ndk_headers/unicode/uchar.h
index aa63e4ada..000d95ce7 100644
--- a/libicu/ndk_headers/unicode/uchar.h
+++ b/libicu/ndk_headers/unicode/uchar.h
@@ -25,6 +25,7 @@
#ifndef UCHAR_H
#define UCHAR_H
+#include <stdbool.h>
#include "unicode/utypes.h"
#include "unicode/stringoptions.h"
#include "unicode/ucpmap.h"
@@ -670,12 +671,21 @@ typedef enum UProperty {
* \xrefitem stable "Stable" "Stable List" ICU 63
*/
UCHAR_VERTICAL_ORIENTATION=0x1018,
+#ifndef U_HIDE_DRAFT_API
+ /**
+ * Enumerated property Identifier_Status.
+ * Used for UTS #39 General Security Profile for Identifiers
+ * (https://www.unicode.org/reports/tr39/#General_Security_Profile).
+ * \xrefitem draft "Draft" "Draft List" This API may be changed in the future versions and was introduced in ICU 75
+ */
+ UCHAR_IDENTIFIER_STATUS=0x1019,
+#endif // U_HIDE_DRAFT_API
#ifndef U_HIDE_DEPRECATED_API
/**
* One more than the last constant for enumerated/integer Unicode properties.
* \xrefitem deprecated "Deprecated" "Deprecated List" ICU 58 The numeric value may change over time, see ICU ticket #12420.
*/
- UCHAR_INT_LIMIT=0x1019,
+ UCHAR_INT_LIMIT=0x101A,
#endif // U_HIDE_DEPRECATED_API
/** Bitmask property General_Category_Mask.
@@ -776,12 +786,28 @@ typedef enum UProperty {
UCHAR_SCRIPT_EXTENSIONS=0x7000,
/** First constant for Unicode properties with unusual value types. \xrefitem stable "Stable" "Stable List" ICU 4.6 */
UCHAR_OTHER_PROPERTY_START=UCHAR_SCRIPT_EXTENSIONS,
+#ifndef U_HIDE_DRAFT_API
+ /**
+ * Miscellaneous property Identifier_Type.
+ * Used for UTS #39 General Security Profile for Identifiers
+ * (https://www.unicode.org/reports/tr39/#General_Security_Profile).
+ *
+ * Corresponds to u_hasIDType() and u_getIDTypes().
+ *
+ * Each code point maps to a <i>set</i> of UIdentifierType values.
+ *
+ * @see u_hasIDType
+ * @see u_getIDTypes
+ * \xrefitem draft "Draft" "Draft List" This API may be changed in the future versions and was introduced in ICU 75
+ */
+ UCHAR_IDENTIFIER_TYPE=0x7001,
+#endif // U_HIDE_DRAFT_API
#ifndef U_HIDE_DEPRECATED_API
/**
* One more than the last constant for Unicode properties with unusual value types.
* \xrefitem deprecated "Deprecated" "Deprecated List" ICU 58 The numeric value may change over time, see ICU ticket #12420.
*/
- UCHAR_OTHER_PROPERTY_LIMIT=0x7001,
+ UCHAR_OTHER_PROPERTY_LIMIT=0x7002,
#endif // U_HIDE_DEPRECATED_API
/** Represents a nonexistent or invalid property or property value. \xrefitem stable "Stable" "Stable List" ICU 2.4 */
@@ -2703,6 +2729,68 @@ typedef enum UVerticalOrientation {
U_VO_UPRIGHT,
} UVerticalOrientation;
+#ifndef U_HIDE_DRAFT_API
+/**
+ * Identifier Status constants.
+ * See https://www.unicode.org/reports/tr39/#Identifier_Status_and_Type.
+ *
+ * @see UCHAR_IDENTIFIER_STATUS
+ * \xrefitem draft "Draft" "Draft List" This API may be changed in the future versions and was introduced in ICU 75
+ */
+typedef enum UIdentifierStatus {
+ /*
+ * Note: UIdentifierStatus constants are parsed by preparseucd.py.
+ * It matches lines like
+ * U_ID_STATUS_<Unicode Identifier_Status value name>
+ */
+
+ /** \xrefitem draft "Draft" "Draft List" This API may be changed in the future versions and was introduced in ICU 75 */
+ U_ID_STATUS_RESTRICTED,
+ /** \xrefitem draft "Draft" "Draft List" This API may be changed in the future versions and was introduced in ICU 75 */
+ U_ID_STATUS_ALLOWED,
+} UIdentifierStatus;
+
+/**
+ * Identifier Type constants.
+ * See https://www.unicode.org/reports/tr39/#Identifier_Status_and_Type.
+ *
+ * @see UCHAR_IDENTIFIER_TYPE
+ * \xrefitem draft "Draft" "Draft List" This API may be changed in the future versions and was introduced in ICU 75
+ */
+typedef enum UIdentifierType {
+ /*
+ * Note: UIdentifierType constants are parsed by preparseucd.py.
+ * It matches lines like
+ * U_ID_TYPE_<Unicode Identifier_Type value name>
+ */
+
+ /** \xrefitem draft "Draft" "Draft List" This API may be changed in the future versions and was introduced in ICU 75 */
+ U_ID_TYPE_NOT_CHARACTER,
+ /** \xrefitem draft "Draft" "Draft List" This API may be changed in the future versions and was introduced in ICU 75 */
+ U_ID_TYPE_DEPRECATED,
+ /** \xrefitem draft "Draft" "Draft List" This API may be changed in the future versions and was introduced in ICU 75 */
+ U_ID_TYPE_DEFAULT_IGNORABLE,
+ /** \xrefitem draft "Draft" "Draft List" This API may be changed in the future versions and was introduced in ICU 75 */
+ U_ID_TYPE_NOT_NFKC,
+ /** \xrefitem draft "Draft" "Draft List" This API may be changed in the future versions and was introduced in ICU 75 */
+ U_ID_TYPE_NOT_XID,
+ /** \xrefitem draft "Draft" "Draft List" This API may be changed in the future versions and was introduced in ICU 75 */
+ U_ID_TYPE_EXCLUSION,
+ /** \xrefitem draft "Draft" "Draft List" This API may be changed in the future versions and was introduced in ICU 75 */
+ U_ID_TYPE_OBSOLETE,
+ /** \xrefitem draft "Draft" "Draft List" This API may be changed in the future versions and was introduced in ICU 75 */
+ U_ID_TYPE_TECHNICAL,
+ /** \xrefitem draft "Draft" "Draft List" This API may be changed in the future versions and was introduced in ICU 75 */
+ U_ID_TYPE_UNCOMMON_USE,
+ /** \xrefitem draft "Draft" "Draft List" This API may be changed in the future versions and was introduced in ICU 75 */
+ U_ID_TYPE_LIMITED_USE,
+ /** \xrefitem draft "Draft" "Draft List" This API may be changed in the future versions and was introduced in ICU 75 */
+ U_ID_TYPE_INCLUSION,
+ /** \xrefitem draft "Draft" "Draft List" This API may be changed in the future versions and was introduced in ICU 75 */
+ U_ID_TYPE_RECOMMENDED,
+} UIdentifierType;
+#endif // U_HIDE_DRAFT_API
+
/**
* Check a binary Unicode property for a code point.
*
@@ -3907,6 +3995,12 @@ u_isIDPart(UChar32 c) __INTRODUCED_IN(31);
+#ifndef U_HIDE_DRAFT_API
+
+
+
+#endif // U_HIDE_DRAFT_API
+
/**
* Determines if the specified character should be regarded
* as an ignorable character in an identifier,