]> git.saurik.com Git - apple/icu.git/blob - icuSources/i18n/icuin40shim.cpp
ICU-57131.0.1.tar.gz
[apple/icu.git] / icuSources / i18n / icuin40shim.cpp
1 /*
2 *****************************************************************************************
3 * Copyright (C) 2010 Apple Inc. All Rights Reserved.
4 *****************************************************************************************
5 */
6
7 #include "unicode/utypes.h"
8
9 #include <unicode/ucol.h>
10 #include <unicode/utrans.h>
11
12 /*
13 * imp: i18n/ucol_res.cpp
14 * hdr: i18n/unicode/ucol.h
15 * @stable ICU 2.0
16 */
17 U_CAPI UCollator* U_EXPORT2
18 ucol_open_4_0(const char *loc, UErrorCode *status)
19 {
20 return ucol_open(loc, status);
21 }
22
23 /*
24 * imp: i18n/ucol.cpp
25 * hdr: i18n/unicode/ucol.h
26 * @stable ICU 2.0
27 */
28 U_CAPI void U_EXPORT2
29 ucol_close_4_0(UCollator *coll)
30 {
31 ucol_close(coll);
32 }
33
34 /*
35 * imp: i18n/ucol.cpp
36 * hdr: i18n/unicode/ucol.h
37 * @stable ICU 2.1
38 */
39 U_CAPI int32_t U_EXPORT2
40 ucol_getBound_4_0(const uint8_t *source,
41 int32_t sourceLength,
42 UColBoundMode boundType,
43 uint32_t noOfLevels,
44 uint8_t *result,
45 int32_t resultLength,
46 UErrorCode *status)
47 {
48 return ucol_getBound(source, sourceLength, boundType, noOfLevels, result, resultLength, status);
49 }
50
51 /*
52 * imp: i18n/ucol.cpp
53 * hdr: i18n/unicode/ucol.h
54 * @stable ICU 2.0
55 */
56 U_CAPI int32_t U_EXPORT2
57 ucol_getSortKey_4_0(const UCollator *coll,
58 const UChar *source,
59 int32_t sourceLength,
60 uint8_t *result,
61 int32_t resultLength)
62 {
63 return ucol_getSortKey(coll, source, sourceLength, result, resultLength);
64 }
65
66 /*
67 * imp: i18n/ucol.cpp
68 * hdr: i18n/unicode/ucol.h
69 * @stable ICU 2.0
70 */
71 U_CAPI void U_EXPORT2
72 ucol_setAttribute_4_0(UCollator *coll, UColAttribute attr, UColAttributeValue value, UErrorCode *status)
73 {
74 ucol_setAttribute(coll, attr, value, status);
75 }
76
77 /*
78 * imp: i18n/utrans.cpp
79 * hdr: i18n/unicode/utrans.h
80 * @stable ICU 2.8
81 */
82 U_CAPI UTransliterator* U_EXPORT2
83 utrans_openU_4_0(const UChar *id,
84 int32_t idLength,
85 UTransDirection dir,
86 const UChar *rules,
87 int32_t rulesLength,
88 UParseError *parseError,
89 UErrorCode *status)
90 {
91 return utrans_openU(id, idLength, dir, rules, rulesLength, parseError, status);
92 }
93
94 /*
95 * imp: i18n/utrans.cpp
96 * hdr: i18n/unicode/utrans.h
97 * @stable ICU 2.0
98 */
99 U_CAPI void U_EXPORT2
100 utrans_close_4_0(UTransliterator* trans)
101 {
102 utrans_close(trans);
103 }
104
105 /*
106 * imp: i18n/utrans.cpp
107 * hdr: i18n/unicode/utrans.h
108 * @stable ICU 2.0
109 */
110 U_CAPI void U_EXPORT2
111 utrans_transUChars_4_0(const UTransliterator* trans,
112 UChar* text,
113 int32_t* textLength,
114 int32_t textCapacity,
115 int32_t start,
116 int32_t* limit,
117 UErrorCode* status)
118 {
119 return utrans_transUChars(trans, text, textLength, textCapacity, start, limit, status);
120 }
121