-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathusprep.cr
26 lines (26 loc) · 1.34 KB
/
usprep.cr
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
@[Link(ldflags: "`command -v pkg-config > /dev/null && pkg-config --libs icu-uc icu-i18n icu-io 2> /dev/null|| printf %s '-licuio -licui18n -licuuc -licudata'`")]
lib LibICU
{% begin %}
enum UStringPrepProfileType
Rfc3491Nameprep = 0
Rfc3530Nfs4CsPrep = 1
Rfc3530Nfs4CsPrepCi = 2
Rfc3530Nfs4CisPrep = 3
Rfc3530Nfs4MixedPrepPrefix = 4
Rfc3530Nfs4MixedPrepSuffix = 5
Rfc3722Iscsi = 6
Rfc3920Nodeprep = 7
Rfc3920Resourceprep = 8
Rfc4011Mib = 9
Rfc4013Saslprep = 10
Rfc4505Trace = 11
Rfc4518Ldap = 12
Rfc4518LdapCi = 13
end
fun usprep_close = usprep_close{{SYMS_SUFFIX.id}}(profile : UStringPrepProfile)
fun usprep_open = usprep_open{{SYMS_SUFFIX.id}}(path : LibC::Char*, file_name : LibC::Char*, status : UErrorCode*) : UStringPrepProfile
fun usprep_open_by_type = usprep_openByType{{SYMS_SUFFIX.id}}(type : UStringPrepProfileType, status : UErrorCode*) : UStringPrepProfile
fun usprep_prepare = usprep_prepare{{SYMS_SUFFIX.id}}(prep : UStringPrepProfile, src : UChar*, src_length : Int32T, dest : UChar*, dest_capacity : Int32T, options : Int32T, parse_error : UParseError*, status : UErrorCode*) : Int32T
type UStringPrepProfile = Void*
{% end %}
end