-
Notifications
You must be signed in to change notification settings - Fork 2
/
lib.yml
175 lines (174 loc) · 4.5 KB
/
lib.yml
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
--- # libgen config file, see https://github.com/olbat/libgen
name: LibICU
ldflags: "-licuio -licui18n -licuuc -licudata"
packages: "icu-uc icu-i18n icu-io"
destdir: src/lib_icu/
rename:
rules:
"*":
# Remove the suffix added to functions in some distributions of the lib
# (see https://github.com/olbat/icu.cr/issues/1)
- pattern: (_\d+)+$
replacement: ""
# Remove the u_ prefix in all generic purposes functions
- pattern: ^u_
replacement: ""
Arg:
# Remove type name prefix in enum definitions
# (UrgnTerritory of the URegionType enum becomes Territory)
- pattern: ^U[a-z0-9]+
replacement: ""
# Note: this list has been extracted extracted from unicode/docmain.h
definitions:
lib_icu:
description: |-
Basic Types and Constants
Unicode Character, Properties and Names
includes:
- unicode/utypes.h
- unicode/uchar.h
- unicode/uformattable.h
- unicode/putil.h
prefixes:
- u_
- ufmt_
ustring:
description: Strings and Character Iteration
includes:
- unicode/ustring.h
- unicode/uiter.h
prefixes:
- u_str
- u_mem
- u_iter
utext:
description: Abstract Unicode Text API
includes: [ unicode/utext.h ]
prefixes: [ utext_ ]
uset:
description: Sets of Unicode Code Points and Strings
includes: [ unicode/uset.h ]
prefixes: [ uset_ ]
ucnv:
description: Codepage Conversion
includes:
- unicode/ucnv.h
- unicode/ucnvsel.h
prefixes:
- ucnv_
- ucnvsel_
uloc:
description: Locales
includes:
- unicode/uloc.h
- unicode/ulocdata.h
prefixes:
- uloc_
- ulocdata_
ures:
description: Resource Bundles
includes: [ unicode/ures.h ]
prefixes: [ ures_ ]
unorm2:
description: Normalization
includes: [ unicode/unorm2.h ]
prefixes: [ unorm2_ ]
ucal:
description: Calendars
includes: [ unicode/ucal.h ]
prefixes: [ ucal_ ]
udat:
description: Date and Time Formatting
includes:
- unicode/udat.h
- unicode/udatpg.h
- unicode/udateintervalformat.h
prefixes:
- udat_
- udatpg_
- udtitvfmt_
unum:
description: Number Formatting/Spellout
includes: [ unicode/unum.h ]
prefixes: [ unum_ ]
utrans:
description: Text Transformation (Transliteration)
includes: [ unicode/utrans.h ]
prefixes: [ utrans_ ]
ubidi:
description: Bidirectional Algorithm
includes: [ unicode/ubidi.h ]
prefixes: [ ubidi_ ]
ucol:
description: Collation
includes: [ unicode/ucol.h ]
prefixes: [ ucol_ ]
usearch:
description: String Searching
includes: [ unicode/usearch.h ]
prefixes: [ usearch_ ]
ubrk:
description: Text Boundary Analysis (Break Iteration)
includes: [ unicode/ubrk.h ]
prefixes: [ ubrk_ ]
uregex:
description: Regular Expressions
includes: [ unicode/uregex.h ]
prefixes: [ uregex_ ]
usprep:
description: StringPrep
includes: [ unicode/usprep.h ]
prefixes: [ usprep_ ]
uidna:
description: International Domain Names in Applications
includes: [ unicode/uidna.h ]
prefixes: [ uidna_ ]
uspoof:
description: Identifier Spoofing & Confusability
includes: [ unicode/uspoof.h ]
prefixes: [ uspoof_ ]
utmscale:
description: Universal Time Scale
includes: [ unicode/utmscale.h ]
prefixes: [ utmscale_ ]
ucsdet:
description: Charset detection
includes: [ unicode/ucsdet.h ]
prefixes: [ ucsdet_ ]
ucurr:
description: Encapsulates information about a currency
includes: [ unicode/ucurr.h ]
prefixes: [ ucurr_ ]
udata:
description: Data loading interface
includes: [ unicode/udata.h ]
prefixes: [ udata_ ]
upluralrules:
description: Plural rules
includes: [ unicode/upluralrules.h ]
prefixes: [ uplrules_ ]
uregion:
description: Territory containment and mapping
includes: [ unicode/uregion.h ]
prefixes: [ uregion_ ]
uenum:
description: String Enumeration
includes: [ unicode/uenum.h ]
prefixes: [ uenum_ ]
## Disabled because some functions uses the va_list type from stdargs.h
## (see https://github.com/crystal-lang/crystal_lib/issues/41)
##
## TODO: find a way to handle va_list parameters properly
#
# ustdio:
# description: ICU I/O
# includes: [ unicode/ustdio.h ]
# prefixes: [ u_ ]
# umsg:
# description: Message Formatting
# includes: [ unicode/umsg.h ]
# prefixes: [ umsg_ ]
# utrace:
# description: ICU tracing/logging
# includes: [ unicode/utrace.h ]
# prefixes: [ utrace_ ]