]> git.saurik.com Git - apple/icu.git/blame - icuSources/i18n/icuin40shim.cpp
ICU-511.32.tar.gz
[apple/icu.git] / icuSources / i18n / icuin40shim.cpp
CommitLineData
729e4ab9
A
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 */
17U_CAPI UCollator* U_EXPORT2
18ucol_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 */
28U_CAPI void U_EXPORT2
29ucol_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 */
39U_CAPI int32_t U_EXPORT2
40ucol_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 */
56U_CAPI int32_t U_EXPORT2
57ucol_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 */
71U_CAPI void U_EXPORT2
72ucol_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 */
82U_CAPI UTransliterator* U_EXPORT2
83utrans_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 */
99U_CAPI void U_EXPORT2
100utrans_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 */
110U_CAPI void U_EXPORT2
111utrans_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