diff --git a/src/main.zig b/src/main.zig index 168124c31cf666bf6bb24290b4428283772560be..f82ed07920161ff5222b547013dd3acbb99a46dc 100644 --- a/src/main.zig +++ b/src/main.zig @@ -4,8 +4,10 @@ const icu = @import("icu"); const t = @import("./types.zig"); // -// +// uchar.h +// U_CAPI UBool U_EXPORT2 +// u_hasBinaryProperty(UChar32 c, UProperty which); export fn u_hasBinaryProperty(cp: u32, prop: t.UProperty) bool { return switch (prop) { .UCHAR_ALPHABETIC => icu.hasDerivedCoreProperty(cp, .Alphabetic), @@ -144,3 +146,185 @@ export fn u_hasBinaryProperty(cp: u32, prop: t.UProperty) bool { // Modifier_Combining_Mark, }; } + +// U_CAPI UBool U_EXPORT2 +// u_stringHasBinaryProperty(const UChar *s, int32_t length, UProperty which); + +// U_CAPI const USet * U_EXPORT2 +// u_getBinaryPropertySet(UProperty property, UErrorCode *pErrorCode); + +// U_CAPI UBool U_EXPORT2 +// u_isUAlphabetic(UChar32 c); + +// U_CAPI UBool U_EXPORT2 +// u_isULowercase(UChar32 c); + +// U_CAPI UBool U_EXPORT2 +// u_isUUppercase(UChar32 c); + +// U_CAPI UBool U_EXPORT2 +// u_isUWhiteSpace(UChar32 c); + +// U_CAPI int32_t U_EXPORT2 +// u_getIntPropertyValue(UChar32 c, UProperty which); + +// U_CAPI int32_t U_EXPORT2 +// u_getIntPropertyMinValue(UProperty which); + +// U_CAPI int32_t U_EXPORT2 +// u_getIntPropertyMaxValue(UProperty which); + +// U_CAPI const UCPMap * U_EXPORT2 +// u_getIntPropertyMap(UProperty property, UErrorCode *pErrorCode); + +// U_CAPI double U_EXPORT2 +// u_getNumericValue(UChar32 c); + +// U_CAPI UBool U_EXPORT2 +// u_islower(UChar32 c); + +// U_CAPI UBool U_EXPORT2 +// u_isupper(UChar32 c); + +// U_CAPI UBool U_EXPORT2 +// u_istitle(UChar32 c); + +// U_CAPI UBool U_EXPORT2 +// u_isdigit(UChar32 c); + +// U_CAPI UBool U_EXPORT2 +// u_isalpha(UChar32 c); + +// U_CAPI UBool U_EXPORT2 +// u_isalnum(UChar32 c); + +// U_CAPI UBool U_EXPORT2 +// u_isxdigit(UChar32 c); + +// U_CAPI UBool U_EXPORT2 +// u_ispunct(UChar32 c); + +// U_CAPI UBool U_EXPORT2 +// u_isgraph(UChar32 c); + +// U_CAPI UBool U_EXPORT2 +// u_isblank(UChar32 c); +// U_CAPI UBool U_EXPORT2 +// u_isdefined(UChar32 c); + +// U_CAPI UBool U_EXPORT2 +// u_isspace(UChar32 c); + +// U_CAPI UBool U_EXPORT2 +// u_isJavaSpaceChar(UChar32 c); + +// U_CAPI UBool U_EXPORT2 +// u_isWhitespace(UChar32 c); + +// U_CAPI UBool U_EXPORT2 +// u_iscntrl(UChar32 c); + +// U_CAPI UBool U_EXPORT2 +// u_isISOControl(UChar32 c); + +// U_CAPI UBool U_EXPORT2 +// u_isprint(UChar32 c); + +// U_CAPI UBool U_EXPORT2 +// u_isbase(UChar32 c); + +// U_CAPI UCharDirection U_EXPORT2 +// u_charDirection(UChar32 c); + +// U_CAPI UBool U_EXPORT2 +// u_isMirrored(UChar32 c); + +// U_CAPI UChar32 U_EXPORT2 +// u_charMirror(UChar32 c); + +// U_CAPI UChar32 U_EXPORT2 +// u_getBidiPairedBracket(UChar32 c); + +// U_CAPI int8_t U_EXPORT2 +// u_charType(UChar32 c); + +// U_CAPI void U_EXPORT2 +// u_enumCharTypes(UCharEnumTypeRange *enumRange, const void *context); + +// U_CAPI uint8_t U_EXPORT2 +// u_getCombiningClass(UChar32 c); + +// U_CAPI int32_t U_EXPORT2 +// u_charDigitValue(UChar32 c); + +// U_CAPI UBlockCode U_EXPORT2 +// ublock_getCode(UChar32 c); + +// U_CAPI int32_t U_EXPORT2 +// u_charName(UChar32 code, UCharNameChoice nameChoice, char *buffer, int32_t bufferLength, UErrorCode *pErrorCode); + +// U_CAPI UChar32 U_EXPORT2 +// u_charFromName(UCharNameChoice nameChoice, const char *name, UErrorCode *pErrorCode); + +// U_CAPI void U_EXPORT2 +// u_enumCharNames(UChar32 start, UChar32 limit, UEnumCharNamesFn *fn, void *context, UCharNameChoice nameChoice, UErrorCode *pErrorCode); + +// U_CAPI const char* U_EXPORT2 +// u_getPropertyName(UProperty property, UPropertyNameChoice nameChoice); + +// U_CAPI UProperty U_EXPORT2 +// u_getPropertyEnum(const char* alias); + +// U_CAPI const char* U_EXPORT2 +// u_getPropertyValueName(UProperty property, int32_t value, UPropertyNameChoice nameChoice); + +// U_CAPI int32_t U_EXPORT2 +// u_getPropertyValueEnum(UProperty property, const char* alias); + +// U_CAPI UBool U_EXPORT2 +// u_isIDStart(UChar32 c); + +// U_CAPI UBool U_EXPORT2 +// u_isIDPart(UChar32 c); + +// U_CAPI bool U_EXPORT2 +// u_hasIDType(UChar32 c, UIdentifierType type); + +// U_CAPI int32_t U_EXPORT2 +// u_getIDTypes(UChar32 c, UIdentifierType *types, int32_t capacity, UErrorCode *pErrorCode); + +// U_CAPI UBool U_EXPORT2 +// u_isIDIgnorable(UChar32 c); + +// U_CAPI UBool U_EXPORT2 +// u_isJavaIDStart(UChar32 c); + +// U_CAPI UBool U_EXPORT2 +// u_isJavaIDPart(UChar32 c); + +// U_CAPI UChar32 U_EXPORT2 +// u_tolower(UChar32 c); + +// U_CAPI UChar32 U_EXPORT2 +// u_toupper(UChar32 c); + +// U_CAPI UChar32 U_EXPORT2 +// u_totitle(UChar32 c); + +// U_CAPI UChar32 U_EXPORT2 +// u_foldCase(UChar32 c, uint32_t options); + +// U_CAPI int32_t U_EXPORT2 +// u_digit(UChar32 ch, int8_t radix); + +// U_CAPI UChar32 U_EXPORT2 +// u_forDigit(int32_t digit, int8_t radix); + +// U_CAPI void U_EXPORT2 +// u_charAge(UChar32 c, UVersionInfo versionArray); + +// U_CAPI void U_EXPORT2 +// u_getUnicodeVersion(UVersionInfo versionArray); + +// U_CAPI int32_t U_EXPORT2 +// u_getFC_NFKC_Closure(UChar32 c, UChar *dest, int32_t destCapacity, UErrorCode *pErrorCode);