• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // © 2017 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
3 /*
4 *******************************************************************************
5 *
6 *   Copyright (C) 2009-2012, International Business Machines
7 *   Corporation and others.  All Rights Reserved.
8 *
9 *******************************************************************************
10 */
11 
12 #ifndef _OICU
13 #define _OICU
14 
15 #include "unicode/uclean.h"
16 /**
17    uclean.h
18 */
19 U_CAPI void U_EXPORT2
20 OICU_u_init(UErrorCode *status);
21 
22 #include "unicode/ucol.h"
23 /**
24  ucol.h
25 */
26 U_CAPI UCollator* U_EXPORT2
27 OICU_ucol_open(const char *loc, UErrorCode& status);
28 
29 U_CAPI int32_t U_EXPORT2
30 OICU_ucol_getShortDefinitionString(const UCollator *coll,
31                               const char *locale,
32                               char *buffer,
33                               int32_t capacity,
34                               UErrorCode *status);
35 
36 
37 U_CAPI void U_EXPORT2
38 OICU_ucol_close(UCollator*);
39 
40 U_CAPI UCollationResult OICU_ucol_strcoll	(	const UCollator * 	coll,
41 const UChar * 	source,
42 int32_t 	sourceLength,
43 const UChar * 	target,
44 int32_t 	targetLength
45 );
46 
47 U_CAPI void U_EXPORT2
48 OICU_ucol_setStrength(const UCollator *, UCollationStrength );
49 
50 
51 #ifndef OICU_ucol_getAvailable
52 #error OICU_ucol_getAvailable not found - urename symbol mismatch?
53 #endif
54 
55 U_CAPI const char * U_EXPORT2
56 OICU_ucol_getAvailable(int32_t i);
57 
58 U_CAPI int32_t U_EXPORT2
59 OICU_ucol_countAvailable();
60 
61 
62 U_CAPI UCollationStrength U_EXPORT2
63 OICU_ucol_getStrength(UCollator *col);
64 
65 U_CAPI int32_t U_EXPORT2
66 OICU_ucol_getSortKey(const    UCollator    *coll,
67         const    UChar        *source,
68         int32_t        sourceLength,
69         uint8_t        *result,
70         int32_t        resultLength);
71 
72 
73 U_CAPI UCollator* U_EXPORT2
74 OICU_ucol_safeClone(const UCollator *coll,
75                void            *stackBuffer,
76                int32_t         *pBufferSize,
77                UErrorCode      *status);
78 
79 #include "unicode/udat.h"
80 U_CAPI UDateFormat* U_EXPORT2
81 OICU_udat_open(UDateFormatStyle  timeStyle,
82           UDateFormatStyle  dateStyle,
83           const char        *locale,
84           const UChar       *tzID,
85           int32_t           tzIDLength,
86           const UChar       *pattern,
87           int32_t           patternLength,
88           UErrorCode        *status);
89 
90 U_CAPI const char * U_EXPORT2
91 OICU_udat_getAvailable(int32_t i);
92 
93 U_CAPI int32_t U_EXPORT2
94 OICU_udat_countAvailable();
95 
96 
97 U_CAPI void U_EXPORT2
98 OICU_udat_close(UDateFormat* format);
99 
100 U_CAPI int32_t U_EXPORT2
101 OICU_udat_format(    const    UDateFormat*    format,
102                         UDate           dateToFormat,
103                         UChar*          result,
104                         int32_t         resultLength,
105                         UFieldPosition* position,
106                         UErrorCode*     status);
107 
108 
109 
110 /**
111  end ucol.h
112 */
113 
114 #include "unicode/ucal.h"
115 
116 U_CAPI UCalendar* U_EXPORT2
117 OICU_ucal_open(const UChar*   zoneID,
118           int32_t        len,
119           const char*    locale,
120           UCalendarType  type,
121           UErrorCode*    status);
122 
123 /**
124  * Close a UCalendar.
125  * Once closed, a UCalendar may no longer be used.
126  * @param cal The UCalendar to close.
127  * @stable ICU 2.0
128  */
129 U_CAPI void U_EXPORT2
130 OICU_ucal_close(UCalendar *cal);
131 
132 
133 U_CAPI int32_t U_EXPORT2
134 OICU_ucal_getAttribute(const UCalendar*    cal,
135                   UCalendarAttribute  attr);
136 
137 
138 // define version
139 
140 #endif
141