| ... | ... | @@ -4,8 +4,10 @@ const icu = @import("icu"); |
| 4 | 4 | const t = @import("./types.zig"); |
| 5 | 5 | |
| 6 | 6 | // |
| 7 | | // |
| 7 | // uchar.h |
| 8 | 8 | |
| 9 | // U_CAPI UBool U_EXPORT2 |
| 10 | // u_hasBinaryProperty(UChar32 c, UProperty which); |
| 9 | 11 | export fn u_hasBinaryProperty(cp: u32, prop: t.UProperty) bool { |
| 10 | 12 | return switch (prop) { |
| 11 | 13 | .UCHAR_ALPHABETIC => icu.hasDerivedCoreProperty(cp, .Alphabetic), |
| ... | ... | @@ -144,3 +146,185 @@ export fn u_hasBinaryProperty(cp: u32, prop: t.UProperty) bool { |
| 144 | 146 | // Modifier_Combining_Mark, |
| 145 | 147 | }; |
| 146 | 148 | } |
| 149 | |
| 150 | // U_CAPI UBool U_EXPORT2 |
| 151 | // u_stringHasBinaryProperty(const UChar *s, int32_t length, UProperty which); |
| 152 | |
| 153 | // U_CAPI const USet * U_EXPORT2 |
| 154 | // u_getBinaryPropertySet(UProperty property, UErrorCode *pErrorCode); |
| 155 | |
| 156 | // U_CAPI UBool U_EXPORT2 |
| 157 | // u_isUAlphabetic(UChar32 c); |
| 158 | |
| 159 | // U_CAPI UBool U_EXPORT2 |
| 160 | // u_isULowercase(UChar32 c); |
| 161 | |
| 162 | // U_CAPI UBool U_EXPORT2 |
| 163 | // u_isUUppercase(UChar32 c); |
| 164 | |
| 165 | // U_CAPI UBool U_EXPORT2 |
| 166 | // u_isUWhiteSpace(UChar32 c); |
| 167 | |
| 168 | // U_CAPI int32_t U_EXPORT2 |
| 169 | // u_getIntPropertyValue(UChar32 c, UProperty which); |
| 170 | |
| 171 | // U_CAPI int32_t U_EXPORT2 |
| 172 | // u_getIntPropertyMinValue(UProperty which); |
| 173 | |
| 174 | // U_CAPI int32_t U_EXPORT2 |
| 175 | // u_getIntPropertyMaxValue(UProperty which); |
| 176 | |
| 177 | // U_CAPI const UCPMap * U_EXPORT2 |
| 178 | // u_getIntPropertyMap(UProperty property, UErrorCode *pErrorCode); |
| 179 | |
| 180 | // U_CAPI double U_EXPORT2 |
| 181 | // u_getNumericValue(UChar32 c); |
| 182 | |
| 183 | // U_CAPI UBool U_EXPORT2 |
| 184 | // u_islower(UChar32 c); |
| 185 | |
| 186 | // U_CAPI UBool U_EXPORT2 |
| 187 | // u_isupper(UChar32 c); |
| 188 | |
| 189 | // U_CAPI UBool U_EXPORT2 |
| 190 | // u_istitle(UChar32 c); |
| 191 | |
| 192 | // U_CAPI UBool U_EXPORT2 |
| 193 | // u_isdigit(UChar32 c); |
| 194 | |
| 195 | // U_CAPI UBool U_EXPORT2 |
| 196 | // u_isalpha(UChar32 c); |
| 197 | |
| 198 | // U_CAPI UBool U_EXPORT2 |
| 199 | // u_isalnum(UChar32 c); |
| 200 | |
| 201 | // U_CAPI UBool U_EXPORT2 |
| 202 | // u_isxdigit(UChar32 c); |
| 203 | |
| 204 | // U_CAPI UBool U_EXPORT2 |
| 205 | // u_ispunct(UChar32 c); |
| 206 | |
| 207 | // U_CAPI UBool U_EXPORT2 |
| 208 | // u_isgraph(UChar32 c); |
| 209 | |
| 210 | // U_CAPI UBool U_EXPORT2 |
| 211 | // u_isblank(UChar32 c); |
| 212 | // U_CAPI UBool U_EXPORT2 |
| 213 | // u_isdefined(UChar32 c); |
| 214 | |
| 215 | // U_CAPI UBool U_EXPORT2 |
| 216 | // u_isspace(UChar32 c); |
| 217 | |
| 218 | // U_CAPI UBool U_EXPORT2 |
| 219 | // u_isJavaSpaceChar(UChar32 c); |
| 220 | |
| 221 | // U_CAPI UBool U_EXPORT2 |
| 222 | // u_isWhitespace(UChar32 c); |
| 223 | |
| 224 | // U_CAPI UBool U_EXPORT2 |
| 225 | // u_iscntrl(UChar32 c); |
| 226 | |
| 227 | // U_CAPI UBool U_EXPORT2 |
| 228 | // u_isISOControl(UChar32 c); |
| 229 | |
| 230 | // U_CAPI UBool U_EXPORT2 |
| 231 | // u_isprint(UChar32 c); |
| 232 | |
| 233 | // U_CAPI UBool U_EXPORT2 |
| 234 | // u_isbase(UChar32 c); |
| 235 | |
| 236 | // U_CAPI UCharDirection U_EXPORT2 |
| 237 | // u_charDirection(UChar32 c); |
| 238 | |
| 239 | // U_CAPI UBool U_EXPORT2 |
| 240 | // u_isMirrored(UChar32 c); |
| 241 | |
| 242 | // U_CAPI UChar32 U_EXPORT2 |
| 243 | // u_charMirror(UChar32 c); |
| 244 | |
| 245 | // U_CAPI UChar32 U_EXPORT2 |
| 246 | // u_getBidiPairedBracket(UChar32 c); |
| 247 | |
| 248 | // U_CAPI int8_t U_EXPORT2 |
| 249 | // u_charType(UChar32 c); |
| 250 | |
| 251 | // U_CAPI void U_EXPORT2 |
| 252 | // u_enumCharTypes(UCharEnumTypeRange *enumRange, const void *context); |
| 253 | |
| 254 | // U_CAPI uint8_t U_EXPORT2 |
| 255 | // u_getCombiningClass(UChar32 c); |
| 256 | |
| 257 | // U_CAPI int32_t U_EXPORT2 |
| 258 | // u_charDigitValue(UChar32 c); |
| 259 | |
| 260 | // U_CAPI UBlockCode U_EXPORT2 |
| 261 | // ublock_getCode(UChar32 c); |
| 262 | |
| 263 | // U_CAPI int32_t U_EXPORT2 |
| 264 | // u_charName(UChar32 code, UCharNameChoice nameChoice, char *buffer, int32_t bufferLength, UErrorCode *pErrorCode); |
| 265 | |
| 266 | // U_CAPI UChar32 U_EXPORT2 |
| 267 | // u_charFromName(UCharNameChoice nameChoice, const char *name, UErrorCode *pErrorCode); |
| 268 | |
| 269 | // U_CAPI void U_EXPORT2 |
| 270 | // u_enumCharNames(UChar32 start, UChar32 limit, UEnumCharNamesFn *fn, void *context, UCharNameChoice nameChoice, UErrorCode *pErrorCode); |
| 271 | |
| 272 | // U_CAPI const char* U_EXPORT2 |
| 273 | // u_getPropertyName(UProperty property, UPropertyNameChoice nameChoice); |
| 274 | |
| 275 | // U_CAPI UProperty U_EXPORT2 |
| 276 | // u_getPropertyEnum(const char* alias); |
| 277 | |
| 278 | // U_CAPI const char* U_EXPORT2 |
| 279 | // u_getPropertyValueName(UProperty property, int32_t value, UPropertyNameChoice nameChoice); |
| 280 | |
| 281 | // U_CAPI int32_t U_EXPORT2 |
| 282 | // u_getPropertyValueEnum(UProperty property, const char* alias); |
| 283 | |
| 284 | // U_CAPI UBool U_EXPORT2 |
| 285 | // u_isIDStart(UChar32 c); |
| 286 | |
| 287 | // U_CAPI UBool U_EXPORT2 |
| 288 | // u_isIDPart(UChar32 c); |
| 289 | |
| 290 | // U_CAPI bool U_EXPORT2 |
| 291 | // u_hasIDType(UChar32 c, UIdentifierType type); |
| 292 | |
| 293 | // U_CAPI int32_t U_EXPORT2 |
| 294 | // u_getIDTypes(UChar32 c, UIdentifierType *types, int32_t capacity, UErrorCode *pErrorCode); |
| 295 | |
| 296 | // U_CAPI UBool U_EXPORT2 |
| 297 | // u_isIDIgnorable(UChar32 c); |
| 298 | |
| 299 | // U_CAPI UBool U_EXPORT2 |
| 300 | // u_isJavaIDStart(UChar32 c); |
| 301 | |
| 302 | // U_CAPI UBool U_EXPORT2 |
| 303 | // u_isJavaIDPart(UChar32 c); |
| 304 | |
| 305 | // U_CAPI UChar32 U_EXPORT2 |
| 306 | // u_tolower(UChar32 c); |
| 307 | |
| 308 | // U_CAPI UChar32 U_EXPORT2 |
| 309 | // u_toupper(UChar32 c); |
| 310 | |
| 311 | // U_CAPI UChar32 U_EXPORT2 |
| 312 | // u_totitle(UChar32 c); |
| 313 | |
| 314 | // U_CAPI UChar32 U_EXPORT2 |
| 315 | // u_foldCase(UChar32 c, uint32_t options); |
| 316 | |
| 317 | // U_CAPI int32_t U_EXPORT2 |
| 318 | // u_digit(UChar32 ch, int8_t radix); |
| 319 | |
| 320 | // U_CAPI UChar32 U_EXPORT2 |
| 321 | // u_forDigit(int32_t digit, int8_t radix); |
| 322 | |
| 323 | // U_CAPI void U_EXPORT2 |
| 324 | // u_charAge(UChar32 c, UVersionInfo versionArray); |
| 325 | |
| 326 | // U_CAPI void U_EXPORT2 |
| 327 | // u_getUnicodeVersion(UVersionInfo versionArray); |
| 328 | |
| 329 | // U_CAPI int32_t U_EXPORT2 |
| 330 | // u_getFC_NFKC_Closure(UChar32 c, UChar *dest, int32_t destCapacity, UErrorCode *pErrorCode); |