forked from google/rust_icu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lib_73.rs
6966 lines (6965 loc) · 189 KB
/
lib_73.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/* automatically generated by rust-bindgen 0.66.1 */
pub type wchar_t = ::std::os::raw::c_int;
pub type UBool = i8;
pub type UChar = u16;
pub type UChar32 = i32;
pub type UVersionInfo = [u8; 4usize];
extern "C" {
pub fn u_versionFromString_73(
versionArray: *mut u8,
versionString: *const ::std::os::raw::c_char,
);
}
extern "C" {
pub fn u_versionFromUString_73(versionArray: *mut u8, versionString: *const UChar);
}
extern "C" {
pub fn u_versionToString_73(versionArray: *mut u8, versionString: *mut ::std::os::raw::c_char);
}
extern "C" {
pub fn u_getVersion_73(versionArray: *mut u8);
}
pub type UDate = f64;
impl UErrorCode {
pub const U_ERROR_WARNING_START: UErrorCode = UErrorCode::U_USING_FALLBACK_WARNING;
}
impl UErrorCode {
pub const U_PARSE_ERROR_START: UErrorCode = UErrorCode::U_BAD_VARIABLE_DEFINITION;
}
impl UErrorCode {
pub const U_FMT_PARSE_ERROR_START: UErrorCode = UErrorCode::U_UNEXPECTED_TOKEN;
}
impl UErrorCode {
pub const U_MULTIPLE_DECIMAL_SEPERATORS: UErrorCode = UErrorCode::U_MULTIPLE_DECIMAL_SEPARATORS;
}
impl UErrorCode {
pub const U_BRK_ERROR_START: UErrorCode = UErrorCode::U_BRK_INTERNAL_ERROR;
}
impl UErrorCode {
pub const U_REGEX_ERROR_START: UErrorCode = UErrorCode::U_REGEX_INTERNAL_ERROR;
}
impl UErrorCode {
pub const U_IDNA_ERROR_START: UErrorCode = UErrorCode::U_IDNA_PROHIBITED_ERROR;
}
impl UErrorCode {
pub const U_STRINGPREP_PROHIBITED_ERROR: UErrorCode = UErrorCode::U_IDNA_PROHIBITED_ERROR;
}
impl UErrorCode {
pub const U_STRINGPREP_UNASSIGNED_ERROR: UErrorCode = UErrorCode::U_IDNA_UNASSIGNED_ERROR;
}
impl UErrorCode {
pub const U_STRINGPREP_CHECK_BIDI_ERROR: UErrorCode = UErrorCode::U_IDNA_CHECK_BIDI_ERROR;
}
impl UErrorCode {
pub const U_PLUGIN_TOO_HIGH: UErrorCode = UErrorCode::U_PLUGIN_ERROR_START;
}
impl UErrorCode {
pub const U_ERROR_LIMIT: UErrorCode = UErrorCode::U_PLUGIN_ERROR_LIMIT;
}
#[repr(i32)]
#[derive(Debug, Copy, Clone, Hash, PartialOrd, PartialEq, Eq)]
pub enum UErrorCode {
U_USING_FALLBACK_WARNING = -128,
U_USING_DEFAULT_WARNING = -127,
U_SAFECLONE_ALLOCATED_WARNING = -126,
U_STATE_OLD_WARNING = -125,
U_STRING_NOT_TERMINATED_WARNING = -124,
U_SORT_KEY_TOO_SHORT_WARNING = -123,
U_AMBIGUOUS_ALIAS_WARNING = -122,
U_DIFFERENT_UCA_VERSION = -121,
U_PLUGIN_CHANGED_LEVEL_WARNING = -120,
U_ERROR_WARNING_LIMIT = -119,
U_ZERO_ERROR = 0,
U_ILLEGAL_ARGUMENT_ERROR = 1,
U_MISSING_RESOURCE_ERROR = 2,
U_INVALID_FORMAT_ERROR = 3,
U_FILE_ACCESS_ERROR = 4,
U_INTERNAL_PROGRAM_ERROR = 5,
U_MESSAGE_PARSE_ERROR = 6,
U_MEMORY_ALLOCATION_ERROR = 7,
U_INDEX_OUTOFBOUNDS_ERROR = 8,
U_PARSE_ERROR = 9,
U_INVALID_CHAR_FOUND = 10,
U_TRUNCATED_CHAR_FOUND = 11,
U_ILLEGAL_CHAR_FOUND = 12,
U_INVALID_TABLE_FORMAT = 13,
U_INVALID_TABLE_FILE = 14,
U_BUFFER_OVERFLOW_ERROR = 15,
U_UNSUPPORTED_ERROR = 16,
U_RESOURCE_TYPE_MISMATCH = 17,
U_ILLEGAL_ESCAPE_SEQUENCE = 18,
U_UNSUPPORTED_ESCAPE_SEQUENCE = 19,
U_NO_SPACE_AVAILABLE = 20,
U_CE_NOT_FOUND_ERROR = 21,
U_PRIMARY_TOO_LONG_ERROR = 22,
U_STATE_TOO_OLD_ERROR = 23,
U_TOO_MANY_ALIASES_ERROR = 24,
U_ENUM_OUT_OF_SYNC_ERROR = 25,
U_INVARIANT_CONVERSION_ERROR = 26,
U_INVALID_STATE_ERROR = 27,
U_COLLATOR_VERSION_MISMATCH = 28,
U_USELESS_COLLATOR_ERROR = 29,
U_NO_WRITE_PERMISSION = 30,
U_INPUT_TOO_LONG_ERROR = 31,
U_STANDARD_ERROR_LIMIT = 32,
U_BAD_VARIABLE_DEFINITION = 65536,
U_MALFORMED_RULE = 65537,
U_MALFORMED_SET = 65538,
U_MALFORMED_SYMBOL_REFERENCE = 65539,
U_MALFORMED_UNICODE_ESCAPE = 65540,
U_MALFORMED_VARIABLE_DEFINITION = 65541,
U_MALFORMED_VARIABLE_REFERENCE = 65542,
U_MISMATCHED_SEGMENT_DELIMITERS = 65543,
U_MISPLACED_ANCHOR_START = 65544,
U_MISPLACED_CURSOR_OFFSET = 65545,
U_MISPLACED_QUANTIFIER = 65546,
U_MISSING_OPERATOR = 65547,
U_MISSING_SEGMENT_CLOSE = 65548,
U_MULTIPLE_ANTE_CONTEXTS = 65549,
U_MULTIPLE_CURSORS = 65550,
U_MULTIPLE_POST_CONTEXTS = 65551,
U_TRAILING_BACKSLASH = 65552,
U_UNDEFINED_SEGMENT_REFERENCE = 65553,
U_UNDEFINED_VARIABLE = 65554,
U_UNQUOTED_SPECIAL = 65555,
U_UNTERMINATED_QUOTE = 65556,
U_RULE_MASK_ERROR = 65557,
U_MISPLACED_COMPOUND_FILTER = 65558,
U_MULTIPLE_COMPOUND_FILTERS = 65559,
U_INVALID_RBT_SYNTAX = 65560,
U_INVALID_PROPERTY_PATTERN = 65561,
U_MALFORMED_PRAGMA = 65562,
U_UNCLOSED_SEGMENT = 65563,
U_ILLEGAL_CHAR_IN_SEGMENT = 65564,
U_VARIABLE_RANGE_EXHAUSTED = 65565,
U_VARIABLE_RANGE_OVERLAP = 65566,
U_ILLEGAL_CHARACTER = 65567,
U_INTERNAL_TRANSLITERATOR_ERROR = 65568,
U_INVALID_ID = 65569,
U_INVALID_FUNCTION = 65570,
U_PARSE_ERROR_LIMIT = 65571,
U_UNEXPECTED_TOKEN = 65792,
U_MULTIPLE_DECIMAL_SEPARATORS = 65793,
U_MULTIPLE_EXPONENTIAL_SYMBOLS = 65794,
U_MALFORMED_EXPONENTIAL_PATTERN = 65795,
U_MULTIPLE_PERCENT_SYMBOLS = 65796,
U_MULTIPLE_PERMILL_SYMBOLS = 65797,
U_MULTIPLE_PAD_SPECIFIERS = 65798,
U_PATTERN_SYNTAX_ERROR = 65799,
U_ILLEGAL_PAD_POSITION = 65800,
U_UNMATCHED_BRACES = 65801,
U_UNSUPPORTED_PROPERTY = 65802,
U_UNSUPPORTED_ATTRIBUTE = 65803,
U_ARGUMENT_TYPE_MISMATCH = 65804,
U_DUPLICATE_KEYWORD = 65805,
U_UNDEFINED_KEYWORD = 65806,
U_DEFAULT_KEYWORD_MISSING = 65807,
U_DECIMAL_NUMBER_SYNTAX_ERROR = 65808,
U_FORMAT_INEXACT_ERROR = 65809,
U_NUMBER_ARG_OUTOFBOUNDS_ERROR = 65810,
U_NUMBER_SKELETON_SYNTAX_ERROR = 65811,
U_FMT_PARSE_ERROR_LIMIT = 65812,
U_BRK_INTERNAL_ERROR = 66048,
U_BRK_HEX_DIGITS_EXPECTED = 66049,
U_BRK_SEMICOLON_EXPECTED = 66050,
U_BRK_RULE_SYNTAX = 66051,
U_BRK_UNCLOSED_SET = 66052,
U_BRK_ASSIGN_ERROR = 66053,
U_BRK_VARIABLE_REDFINITION = 66054,
U_BRK_MISMATCHED_PAREN = 66055,
U_BRK_NEW_LINE_IN_QUOTED_STRING = 66056,
U_BRK_UNDEFINED_VARIABLE = 66057,
U_BRK_INIT_ERROR = 66058,
U_BRK_RULE_EMPTY_SET = 66059,
U_BRK_UNRECOGNIZED_OPTION = 66060,
U_BRK_MALFORMED_RULE_TAG = 66061,
U_BRK_ERROR_LIMIT = 66062,
U_REGEX_INTERNAL_ERROR = 66304,
U_REGEX_RULE_SYNTAX = 66305,
U_REGEX_INVALID_STATE = 66306,
U_REGEX_BAD_ESCAPE_SEQUENCE = 66307,
U_REGEX_PROPERTY_SYNTAX = 66308,
U_REGEX_UNIMPLEMENTED = 66309,
U_REGEX_MISMATCHED_PAREN = 66310,
U_REGEX_NUMBER_TOO_BIG = 66311,
U_REGEX_BAD_INTERVAL = 66312,
U_REGEX_MAX_LT_MIN = 66313,
U_REGEX_INVALID_BACK_REF = 66314,
U_REGEX_INVALID_FLAG = 66315,
U_REGEX_LOOK_BEHIND_LIMIT = 66316,
U_REGEX_SET_CONTAINS_STRING = 66317,
U_REGEX_OCTAL_TOO_BIG = 66318,
U_REGEX_MISSING_CLOSE_BRACKET = 66319,
U_REGEX_INVALID_RANGE = 66320,
U_REGEX_STACK_OVERFLOW = 66321,
U_REGEX_TIME_OUT = 66322,
U_REGEX_STOPPED_BY_CALLER = 66323,
U_REGEX_PATTERN_TOO_BIG = 66324,
U_REGEX_INVALID_CAPTURE_GROUP_NAME = 66325,
U_REGEX_ERROR_LIMIT = 66326,
U_IDNA_PROHIBITED_ERROR = 66560,
U_IDNA_UNASSIGNED_ERROR = 66561,
U_IDNA_CHECK_BIDI_ERROR = 66562,
U_IDNA_STD3_ASCII_RULES_ERROR = 66563,
U_IDNA_ACE_PREFIX_ERROR = 66564,
U_IDNA_VERIFICATION_ERROR = 66565,
U_IDNA_LABEL_TOO_LONG_ERROR = 66566,
U_IDNA_ZERO_LENGTH_LABEL_ERROR = 66567,
U_IDNA_DOMAIN_NAME_TOO_LONG_ERROR = 66568,
U_IDNA_ERROR_LIMIT = 66569,
U_PLUGIN_ERROR_START = 66816,
U_PLUGIN_DIDNT_SET_LEVEL = 66817,
U_PLUGIN_ERROR_LIMIT = 66818,
}
extern "C" {
pub fn u_errorName_73(code: UErrorCode) -> *const ::std::os::raw::c_char;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct UEnumeration {
_unused: [u8; 0],
}
extern "C" {
pub fn uenum_close_73(en: *mut UEnumeration);
}
extern "C" {
pub fn uenum_count_73(en: *mut UEnumeration, status: *mut UErrorCode) -> i32;
}
extern "C" {
pub fn uenum_unext_73(
en: *mut UEnumeration,
resultLength: *mut i32,
status: *mut UErrorCode,
) -> *const UChar;
}
extern "C" {
pub fn uenum_next_73(
en: *mut UEnumeration,
resultLength: *mut i32,
status: *mut UErrorCode,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn uenum_reset_73(en: *mut UEnumeration, status: *mut UErrorCode);
}
extern "C" {
pub fn uenum_openUCharStringsEnumeration_73(
strings: *const *const UChar,
count: i32,
ec: *mut UErrorCode,
) -> *mut UEnumeration;
}
extern "C" {
pub fn uenum_openCharStringsEnumeration_73(
strings: *const *const ::std::os::raw::c_char,
count: i32,
ec: *mut UErrorCode,
) -> *mut UEnumeration;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialOrd, PartialEq, Eq)]
pub enum ULocDataLocaleType {
ULOC_ACTUAL_LOCALE = 0,
ULOC_VALID_LOCALE = 1,
ULOC_REQUESTED_LOCALE = 2,
ULOC_DATA_LOCALE_TYPE_LIMIT = 3,
}
extern "C" {
pub fn uloc_getDefault_73() -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn uloc_setDefault_73(localeID: *const ::std::os::raw::c_char, status: *mut UErrorCode);
}
extern "C" {
pub fn uloc_getLanguage_73(
localeID: *const ::std::os::raw::c_char,
language: *mut ::std::os::raw::c_char,
languageCapacity: i32,
err: *mut UErrorCode,
) -> i32;
}
extern "C" {
pub fn uloc_getScript_73(
localeID: *const ::std::os::raw::c_char,
script: *mut ::std::os::raw::c_char,
scriptCapacity: i32,
err: *mut UErrorCode,
) -> i32;
}
extern "C" {
pub fn uloc_getCountry_73(
localeID: *const ::std::os::raw::c_char,
country: *mut ::std::os::raw::c_char,
countryCapacity: i32,
err: *mut UErrorCode,
) -> i32;
}
extern "C" {
pub fn uloc_getVariant_73(
localeID: *const ::std::os::raw::c_char,
variant: *mut ::std::os::raw::c_char,
variantCapacity: i32,
err: *mut UErrorCode,
) -> i32;
}
extern "C" {
pub fn uloc_getName_73(
localeID: *const ::std::os::raw::c_char,
name: *mut ::std::os::raw::c_char,
nameCapacity: i32,
err: *mut UErrorCode,
) -> i32;
}
extern "C" {
pub fn uloc_canonicalize_73(
localeID: *const ::std::os::raw::c_char,
name: *mut ::std::os::raw::c_char,
nameCapacity: i32,
err: *mut UErrorCode,
) -> i32;
}
extern "C" {
pub fn uloc_getISO3Language_73(
localeID: *const ::std::os::raw::c_char,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn uloc_getISO3Country_73(
localeID: *const ::std::os::raw::c_char,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn uloc_getLCID_73(localeID: *const ::std::os::raw::c_char) -> u32;
}
extern "C" {
pub fn uloc_getDisplayLanguage_73(
locale: *const ::std::os::raw::c_char,
displayLocale: *const ::std::os::raw::c_char,
language: *mut UChar,
languageCapacity: i32,
status: *mut UErrorCode,
) -> i32;
}
extern "C" {
pub fn uloc_getDisplayScript_73(
locale: *const ::std::os::raw::c_char,
displayLocale: *const ::std::os::raw::c_char,
script: *mut UChar,
scriptCapacity: i32,
status: *mut UErrorCode,
) -> i32;
}
extern "C" {
pub fn uloc_getDisplayCountry_73(
locale: *const ::std::os::raw::c_char,
displayLocale: *const ::std::os::raw::c_char,
country: *mut UChar,
countryCapacity: i32,
status: *mut UErrorCode,
) -> i32;
}
extern "C" {
pub fn uloc_getDisplayVariant_73(
locale: *const ::std::os::raw::c_char,
displayLocale: *const ::std::os::raw::c_char,
variant: *mut UChar,
variantCapacity: i32,
status: *mut UErrorCode,
) -> i32;
}
extern "C" {
pub fn uloc_getDisplayKeyword_73(
keyword: *const ::std::os::raw::c_char,
displayLocale: *const ::std::os::raw::c_char,
dest: *mut UChar,
destCapacity: i32,
status: *mut UErrorCode,
) -> i32;
}
extern "C" {
pub fn uloc_getDisplayKeywordValue_73(
locale: *const ::std::os::raw::c_char,
keyword: *const ::std::os::raw::c_char,
displayLocale: *const ::std::os::raw::c_char,
dest: *mut UChar,
destCapacity: i32,
status: *mut UErrorCode,
) -> i32;
}
extern "C" {
pub fn uloc_getDisplayName_73(
localeID: *const ::std::os::raw::c_char,
inLocaleID: *const ::std::os::raw::c_char,
result: *mut UChar,
maxResultSize: i32,
err: *mut UErrorCode,
) -> i32;
}
extern "C" {
pub fn uloc_getAvailable_73(n: i32) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn uloc_countAvailable_73() -> i32;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialOrd, PartialEq, Eq)]
pub enum ULocAvailableType {
ULOC_AVAILABLE_DEFAULT = 0,
ULOC_AVAILABLE_ONLY_LEGACY_ALIASES = 1,
ULOC_AVAILABLE_WITH_LEGACY_ALIASES = 2,
ULOC_AVAILABLE_COUNT = 3,
}
extern "C" {
pub fn uloc_openAvailableByType_73(
type_: ULocAvailableType,
status: *mut UErrorCode,
) -> *mut UEnumeration;
}
extern "C" {
pub fn uloc_getISOLanguages_73() -> *const *const ::std::os::raw::c_char;
}
extern "C" {
pub fn uloc_getISOCountries_73() -> *const *const ::std::os::raw::c_char;
}
extern "C" {
pub fn uloc_getParent_73(
localeID: *const ::std::os::raw::c_char,
parent: *mut ::std::os::raw::c_char,
parentCapacity: i32,
err: *mut UErrorCode,
) -> i32;
}
extern "C" {
pub fn uloc_getBaseName_73(
localeID: *const ::std::os::raw::c_char,
name: *mut ::std::os::raw::c_char,
nameCapacity: i32,
err: *mut UErrorCode,
) -> i32;
}
extern "C" {
pub fn uloc_openKeywords_73(
localeID: *const ::std::os::raw::c_char,
status: *mut UErrorCode,
) -> *mut UEnumeration;
}
extern "C" {
pub fn uloc_getKeywordValue_73(
localeID: *const ::std::os::raw::c_char,
keywordName: *const ::std::os::raw::c_char,
buffer: *mut ::std::os::raw::c_char,
bufferCapacity: i32,
status: *mut UErrorCode,
) -> i32;
}
extern "C" {
pub fn uloc_setKeywordValue_73(
keywordName: *const ::std::os::raw::c_char,
keywordValue: *const ::std::os::raw::c_char,
buffer: *mut ::std::os::raw::c_char,
bufferCapacity: i32,
status: *mut UErrorCode,
) -> i32;
}
extern "C" {
pub fn uloc_isRightToLeft_73(locale: *const ::std::os::raw::c_char) -> UBool;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialOrd, PartialEq, Eq)]
pub enum ULayoutType {
ULOC_LAYOUT_LTR = 0,
ULOC_LAYOUT_RTL = 1,
ULOC_LAYOUT_TTB = 2,
ULOC_LAYOUT_BTT = 3,
ULOC_LAYOUT_UNKNOWN = 4,
}
extern "C" {
pub fn uloc_getCharacterOrientation_73(
localeId: *const ::std::os::raw::c_char,
status: *mut UErrorCode,
) -> ULayoutType;
}
extern "C" {
pub fn uloc_getLineOrientation_73(
localeId: *const ::std::os::raw::c_char,
status: *mut UErrorCode,
) -> ULayoutType;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialOrd, PartialEq, Eq)]
pub enum UAcceptResult {
ULOC_ACCEPT_FAILED = 0,
ULOC_ACCEPT_VALID = 1,
ULOC_ACCEPT_FALLBACK = 2,
}
extern "C" {
pub fn uloc_acceptLanguageFromHTTP_73(
result: *mut ::std::os::raw::c_char,
resultAvailable: i32,
outResult: *mut UAcceptResult,
httpAcceptLanguage: *const ::std::os::raw::c_char,
availableLocales: *mut UEnumeration,
status: *mut UErrorCode,
) -> i32;
}
extern "C" {
pub fn uloc_acceptLanguage_73(
result: *mut ::std::os::raw::c_char,
resultAvailable: i32,
outResult: *mut UAcceptResult,
acceptList: *mut *const ::std::os::raw::c_char,
acceptListCount: i32,
availableLocales: *mut UEnumeration,
status: *mut UErrorCode,
) -> i32;
}
extern "C" {
pub fn uloc_getLocaleForLCID_73(
hostID: u32,
locale: *mut ::std::os::raw::c_char,
localeCapacity: i32,
status: *mut UErrorCode,
) -> i32;
}
extern "C" {
pub fn uloc_addLikelySubtags_73(
localeID: *const ::std::os::raw::c_char,
maximizedLocaleID: *mut ::std::os::raw::c_char,
maximizedLocaleIDCapacity: i32,
err: *mut UErrorCode,
) -> i32;
}
extern "C" {
pub fn uloc_minimizeSubtags_73(
localeID: *const ::std::os::raw::c_char,
minimizedLocaleID: *mut ::std::os::raw::c_char,
minimizedLocaleIDCapacity: i32,
err: *mut UErrorCode,
) -> i32;
}
extern "C" {
pub fn uloc_forLanguageTag_73(
langtag: *const ::std::os::raw::c_char,
localeID: *mut ::std::os::raw::c_char,
localeIDCapacity: i32,
parsedLength: *mut i32,
err: *mut UErrorCode,
) -> i32;
}
extern "C" {
pub fn uloc_toLanguageTag_73(
localeID: *const ::std::os::raw::c_char,
langtag: *mut ::std::os::raw::c_char,
langtagCapacity: i32,
strict: UBool,
err: *mut UErrorCode,
) -> i32;
}
extern "C" {
pub fn uloc_toUnicodeLocaleKey_73(
keyword: *const ::std::os::raw::c_char,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn uloc_toUnicodeLocaleType_73(
keyword: *const ::std::os::raw::c_char,
value: *const ::std::os::raw::c_char,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn uloc_toLegacyKey_73(
keyword: *const ::std::os::raw::c_char,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn uloc_toLegacyType_73(
keyword: *const ::std::os::raw::c_char,
value: *const ::std::os::raw::c_char,
) -> *const ::std::os::raw::c_char;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct UCPMap {
_unused: [u8; 0],
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialOrd, PartialEq, Eq)]
pub enum UCPMapRangeOption {
UCPMAP_RANGE_NORMAL = 0,
UCPMAP_RANGE_FIXED_LEAD_SURROGATES = 1,
UCPMAP_RANGE_FIXED_ALL_SURROGATES = 2,
}
extern "C" {
pub fn ucpmap_get_73(map: *const UCPMap, c: UChar32) -> u32;
}
pub type UCPMapValueFilter = ::std::option::Option<
unsafe extern "C" fn(context: *const ::std::os::raw::c_void, value: u32) -> u32,
>;
extern "C" {
pub fn ucpmap_getRange_73(
map: *const UCPMap,
start: UChar32,
option: UCPMapRangeOption,
surrogateValue: u32,
filter: UCPMapValueFilter,
context: *const ::std::os::raw::c_void,
pValue: *mut u32,
) -> UChar32;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct USet {
_unused: [u8; 0],
}
impl UProperty {
pub const UCHAR_BINARY_START: UProperty = UProperty::UCHAR_ALPHABETIC;
}
impl UProperty {
pub const UCHAR_INT_START: UProperty = UProperty::UCHAR_BIDI_CLASS;
}
impl UProperty {
pub const UCHAR_MASK_START: UProperty = UProperty::UCHAR_GENERAL_CATEGORY_MASK;
}
impl UProperty {
pub const UCHAR_DOUBLE_START: UProperty = UProperty::UCHAR_NUMERIC_VALUE;
}
impl UProperty {
pub const UCHAR_STRING_START: UProperty = UProperty::UCHAR_AGE;
}
impl UProperty {
pub const UCHAR_OTHER_PROPERTY_START: UProperty = UProperty::UCHAR_SCRIPT_EXTENSIONS;
}
#[repr(i32)]
#[derive(Debug, Copy, Clone, Hash, PartialOrd, PartialEq, Eq)]
pub enum UProperty {
UCHAR_ALPHABETIC = 0,
UCHAR_ASCII_HEX_DIGIT = 1,
UCHAR_BIDI_CONTROL = 2,
UCHAR_BIDI_MIRRORED = 3,
UCHAR_DASH = 4,
UCHAR_DEFAULT_IGNORABLE_CODE_POINT = 5,
UCHAR_DEPRECATED = 6,
UCHAR_DIACRITIC = 7,
UCHAR_EXTENDER = 8,
UCHAR_FULL_COMPOSITION_EXCLUSION = 9,
UCHAR_GRAPHEME_BASE = 10,
UCHAR_GRAPHEME_EXTEND = 11,
UCHAR_GRAPHEME_LINK = 12,
UCHAR_HEX_DIGIT = 13,
UCHAR_HYPHEN = 14,
UCHAR_ID_CONTINUE = 15,
UCHAR_ID_START = 16,
UCHAR_IDEOGRAPHIC = 17,
UCHAR_IDS_BINARY_OPERATOR = 18,
UCHAR_IDS_TRINARY_OPERATOR = 19,
UCHAR_JOIN_CONTROL = 20,
UCHAR_LOGICAL_ORDER_EXCEPTION = 21,
UCHAR_LOWERCASE = 22,
UCHAR_MATH = 23,
UCHAR_NONCHARACTER_CODE_POINT = 24,
UCHAR_QUOTATION_MARK = 25,
UCHAR_RADICAL = 26,
UCHAR_SOFT_DOTTED = 27,
UCHAR_TERMINAL_PUNCTUATION = 28,
UCHAR_UNIFIED_IDEOGRAPH = 29,
UCHAR_UPPERCASE = 30,
UCHAR_WHITE_SPACE = 31,
UCHAR_XID_CONTINUE = 32,
UCHAR_XID_START = 33,
UCHAR_CASE_SENSITIVE = 34,
UCHAR_S_TERM = 35,
UCHAR_VARIATION_SELECTOR = 36,
UCHAR_NFD_INERT = 37,
UCHAR_NFKD_INERT = 38,
UCHAR_NFC_INERT = 39,
UCHAR_NFKC_INERT = 40,
UCHAR_SEGMENT_STARTER = 41,
UCHAR_PATTERN_SYNTAX = 42,
UCHAR_PATTERN_WHITE_SPACE = 43,
UCHAR_POSIX_ALNUM = 44,
UCHAR_POSIX_BLANK = 45,
UCHAR_POSIX_GRAPH = 46,
UCHAR_POSIX_PRINT = 47,
UCHAR_POSIX_XDIGIT = 48,
UCHAR_CASED = 49,
UCHAR_CASE_IGNORABLE = 50,
UCHAR_CHANGES_WHEN_LOWERCASED = 51,
UCHAR_CHANGES_WHEN_UPPERCASED = 52,
UCHAR_CHANGES_WHEN_TITLECASED = 53,
UCHAR_CHANGES_WHEN_CASEFOLDED = 54,
UCHAR_CHANGES_WHEN_CASEMAPPED = 55,
UCHAR_CHANGES_WHEN_NFKC_CASEFOLDED = 56,
UCHAR_EMOJI = 57,
UCHAR_EMOJI_PRESENTATION = 58,
UCHAR_EMOJI_MODIFIER = 59,
UCHAR_EMOJI_MODIFIER_BASE = 60,
UCHAR_EMOJI_COMPONENT = 61,
UCHAR_REGIONAL_INDICATOR = 62,
UCHAR_PREPENDED_CONCATENATION_MARK = 63,
UCHAR_EXTENDED_PICTOGRAPHIC = 64,
UCHAR_BASIC_EMOJI = 65,
UCHAR_EMOJI_KEYCAP_SEQUENCE = 66,
UCHAR_RGI_EMOJI_MODIFIER_SEQUENCE = 67,
UCHAR_RGI_EMOJI_FLAG_SEQUENCE = 68,
UCHAR_RGI_EMOJI_TAG_SEQUENCE = 69,
UCHAR_RGI_EMOJI_ZWJ_SEQUENCE = 70,
UCHAR_RGI_EMOJI = 71,
UCHAR_BINARY_LIMIT = 72,
UCHAR_BIDI_CLASS = 4096,
UCHAR_BLOCK = 4097,
UCHAR_CANONICAL_COMBINING_CLASS = 4098,
UCHAR_DECOMPOSITION_TYPE = 4099,
UCHAR_EAST_ASIAN_WIDTH = 4100,
UCHAR_GENERAL_CATEGORY = 4101,
UCHAR_JOINING_GROUP = 4102,
UCHAR_JOINING_TYPE = 4103,
UCHAR_LINE_BREAK = 4104,
UCHAR_NUMERIC_TYPE = 4105,
UCHAR_SCRIPT = 4106,
UCHAR_HANGUL_SYLLABLE_TYPE = 4107,
UCHAR_NFD_QUICK_CHECK = 4108,
UCHAR_NFKD_QUICK_CHECK = 4109,
UCHAR_NFC_QUICK_CHECK = 4110,
UCHAR_NFKC_QUICK_CHECK = 4111,
UCHAR_LEAD_CANONICAL_COMBINING_CLASS = 4112,
UCHAR_TRAIL_CANONICAL_COMBINING_CLASS = 4113,
UCHAR_GRAPHEME_CLUSTER_BREAK = 4114,
UCHAR_SENTENCE_BREAK = 4115,
UCHAR_WORD_BREAK = 4116,
UCHAR_BIDI_PAIRED_BRACKET_TYPE = 4117,
UCHAR_INDIC_POSITIONAL_CATEGORY = 4118,
UCHAR_INDIC_SYLLABIC_CATEGORY = 4119,
UCHAR_VERTICAL_ORIENTATION = 4120,
UCHAR_INT_LIMIT = 4121,
UCHAR_GENERAL_CATEGORY_MASK = 8192,
UCHAR_MASK_LIMIT = 8193,
UCHAR_NUMERIC_VALUE = 12288,
UCHAR_DOUBLE_LIMIT = 12289,
UCHAR_AGE = 16384,
UCHAR_BIDI_MIRRORING_GLYPH = 16385,
UCHAR_CASE_FOLDING = 16386,
UCHAR_ISO_COMMENT = 16387,
UCHAR_LOWERCASE_MAPPING = 16388,
UCHAR_NAME = 16389,
UCHAR_SIMPLE_CASE_FOLDING = 16390,
UCHAR_SIMPLE_LOWERCASE_MAPPING = 16391,
UCHAR_SIMPLE_TITLECASE_MAPPING = 16392,
UCHAR_SIMPLE_UPPERCASE_MAPPING = 16393,
UCHAR_TITLECASE_MAPPING = 16394,
UCHAR_UNICODE_1_NAME = 16395,
UCHAR_UPPERCASE_MAPPING = 16396,
UCHAR_BIDI_PAIRED_BRACKET = 16397,
UCHAR_STRING_LIMIT = 16398,
UCHAR_SCRIPT_EXTENSIONS = 28672,
UCHAR_OTHER_PROPERTY_LIMIT = 28673,
UCHAR_INVALID_CODE = -1,
}
impl UCharCategory {
pub const U_GENERAL_OTHER_TYPES: UCharCategory = UCharCategory::U_UNASSIGNED;
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialOrd, PartialEq, Eq)]
pub enum UCharCategory {
U_UNASSIGNED = 0,
U_UPPERCASE_LETTER = 1,
U_LOWERCASE_LETTER = 2,
U_TITLECASE_LETTER = 3,
U_MODIFIER_LETTER = 4,
U_OTHER_LETTER = 5,
U_NON_SPACING_MARK = 6,
U_ENCLOSING_MARK = 7,
U_COMBINING_SPACING_MARK = 8,
U_DECIMAL_DIGIT_NUMBER = 9,
U_LETTER_NUMBER = 10,
U_OTHER_NUMBER = 11,
U_SPACE_SEPARATOR = 12,
U_LINE_SEPARATOR = 13,
U_PARAGRAPH_SEPARATOR = 14,
U_CONTROL_CHAR = 15,
U_FORMAT_CHAR = 16,
U_PRIVATE_USE_CHAR = 17,
U_SURROGATE = 18,
U_DASH_PUNCTUATION = 19,
U_START_PUNCTUATION = 20,
U_END_PUNCTUATION = 21,
U_CONNECTOR_PUNCTUATION = 22,
U_OTHER_PUNCTUATION = 23,
U_MATH_SYMBOL = 24,
U_CURRENCY_SYMBOL = 25,
U_MODIFIER_SYMBOL = 26,
U_OTHER_SYMBOL = 27,
U_INITIAL_PUNCTUATION = 28,
U_FINAL_PUNCTUATION = 29,
U_CHAR_CATEGORY_COUNT = 30,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialOrd, PartialEq, Eq)]
pub enum UCharDirection {
U_LEFT_TO_RIGHT = 0,
U_RIGHT_TO_LEFT = 1,
U_EUROPEAN_NUMBER = 2,
U_EUROPEAN_NUMBER_SEPARATOR = 3,
U_EUROPEAN_NUMBER_TERMINATOR = 4,
U_ARABIC_NUMBER = 5,
U_COMMON_NUMBER_SEPARATOR = 6,
U_BLOCK_SEPARATOR = 7,
U_SEGMENT_SEPARATOR = 8,
U_WHITE_SPACE_NEUTRAL = 9,
U_OTHER_NEUTRAL = 10,
U_LEFT_TO_RIGHT_EMBEDDING = 11,
U_LEFT_TO_RIGHT_OVERRIDE = 12,
U_RIGHT_TO_LEFT_ARABIC = 13,
U_RIGHT_TO_LEFT_EMBEDDING = 14,
U_RIGHT_TO_LEFT_OVERRIDE = 15,
U_POP_DIRECTIONAL_FORMAT = 16,
U_DIR_NON_SPACING_MARK = 17,
U_BOUNDARY_NEUTRAL = 18,
U_FIRST_STRONG_ISOLATE = 19,
U_LEFT_TO_RIGHT_ISOLATE = 20,
U_RIGHT_TO_LEFT_ISOLATE = 21,
U_POP_DIRECTIONAL_ISOLATE = 22,
U_CHAR_DIRECTION_COUNT = 23,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialOrd, PartialEq, Eq)]
pub enum UCharNameChoice {
U_UNICODE_CHAR_NAME = 0,
U_UNICODE_10_CHAR_NAME = 1,
U_EXTENDED_CHAR_NAME = 2,
U_CHAR_NAME_ALIAS = 3,
U_CHAR_NAME_CHOICE_COUNT = 4,
}
#[repr(u32)]
#[derive(Debug, Copy, Clone, Hash, PartialOrd, PartialEq, Eq)]
pub enum UPropertyNameChoice {
U_SHORT_PROPERTY_NAME = 0,
U_LONG_PROPERTY_NAME = 1,
U_PROPERTY_NAME_CHOICE_COUNT = 2,
}
extern "C" {
pub fn u_hasBinaryProperty_73(c: UChar32, which: UProperty) -> UBool;
}
extern "C" {
pub fn u_stringHasBinaryProperty_73(s: *const UChar, length: i32, which: UProperty) -> UBool;
}
extern "C" {
pub fn u_getBinaryPropertySet_73(
property: UProperty,
pErrorCode: *mut UErrorCode,
) -> *const USet;
}
extern "C" {
pub fn u_isUAlphabetic_73(c: UChar32) -> UBool;
}
extern "C" {
pub fn u_isULowercase_73(c: UChar32) -> UBool;
}
extern "C" {
pub fn u_isUUppercase_73(c: UChar32) -> UBool;
}
extern "C" {
pub fn u_isUWhiteSpace_73(c: UChar32) -> UBool;
}
extern "C" {
pub fn u_getIntPropertyValue_73(c: UChar32, which: UProperty) -> i32;
}
extern "C" {
pub fn u_getIntPropertyMinValue_73(which: UProperty) -> i32;
}
extern "C" {
pub fn u_getIntPropertyMaxValue_73(which: UProperty) -> i32;
}
extern "C" {
pub fn u_getIntPropertyMap_73(
property: UProperty,
pErrorCode: *mut UErrorCode,
) -> *const UCPMap;
}
extern "C" {
pub fn u_getNumericValue_73(c: UChar32) -> f64;
}
extern "C" {
pub fn u_islower_73(c: UChar32) -> UBool;
}
extern "C" {
pub fn u_isupper_73(c: UChar32) -> UBool;
}
extern "C" {
pub fn u_istitle_73(c: UChar32) -> UBool;
}
extern "C" {
pub fn u_isdigit_73(c: UChar32) -> UBool;
}
extern "C" {
pub fn u_isalpha_73(c: UChar32) -> UBool;
}
extern "C" {
pub fn u_isalnum_73(c: UChar32) -> UBool;
}
extern "C" {
pub fn u_isxdigit_73(c: UChar32) -> UBool;
}
extern "C" {
pub fn u_ispunct_73(c: UChar32) -> UBool;
}
extern "C" {
pub fn u_isgraph_73(c: UChar32) -> UBool;
}
extern "C" {
pub fn u_isblank_73(c: UChar32) -> UBool;
}
extern "C" {
pub fn u_isdefined_73(c: UChar32) -> UBool;
}
extern "C" {
pub fn u_isspace_73(c: UChar32) -> UBool;
}
extern "C" {
pub fn u_isJavaSpaceChar_73(c: UChar32) -> UBool;
}
extern "C" {
pub fn u_isWhitespace_73(c: UChar32) -> UBool;
}
extern "C" {
pub fn u_iscntrl_73(c: UChar32) -> UBool;
}
extern "C" {
pub fn u_isISOControl_73(c: UChar32) -> UBool;
}
extern "C" {
pub fn u_isprint_73(c: UChar32) -> UBool;
}
extern "C" {
pub fn u_isbase_73(c: UChar32) -> UBool;
}
extern "C" {
pub fn u_charDirection_73(c: UChar32) -> UCharDirection;
}
extern "C" {
pub fn u_isMirrored_73(c: UChar32) -> UBool;
}
extern "C" {
pub fn u_charMirror_73(c: UChar32) -> UChar32;
}
extern "C" {
pub fn u_getBidiPairedBracket_73(c: UChar32) -> UChar32;
}
extern "C" {
pub fn u_charType_73(c: UChar32) -> i8;
}
pub type UCharEnumTypeRange = ::std::option::Option<
unsafe extern "C" fn(
context: *const ::std::os::raw::c_void,
start: UChar32,
limit: UChar32,
type_: UCharCategory,
) -> UBool,
>;
extern "C" {
pub fn u_enumCharTypes_73(
enumRange: UCharEnumTypeRange,
context: *const ::std::os::raw::c_void,
);
}
extern "C" {
pub fn u_getCombiningClass_73(c: UChar32) -> u8;
}
extern "C" {
pub fn u_charDigitValue_73(c: UChar32) -> i32;
}
extern "C" {
pub fn u_charName_73(
code: UChar32,
nameChoice: UCharNameChoice,
buffer: *mut ::std::os::raw::c_char,
bufferLength: i32,
pErrorCode: *mut UErrorCode,
) -> i32;
}
extern "C" {
pub fn u_getISOComment_73(
c: UChar32,
dest: *mut ::std::os::raw::c_char,
destCapacity: i32,
pErrorCode: *mut UErrorCode,
) -> i32;
}
extern "C" {
pub fn u_charFromName_73(
nameChoice: UCharNameChoice,
name: *const ::std::os::raw::c_char,
pErrorCode: *mut UErrorCode,
) -> UChar32;
}
pub type UEnumCharNamesFn = ::std::option::Option<
unsafe extern "C" fn(
context: *mut ::std::os::raw::c_void,
code: UChar32,
nameChoice: UCharNameChoice,
name: *const ::std::os::raw::c_char,