ICU 49.1.1  49.1.1
bms.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2011, International Business Machines Corporation and Others.
3  * All rights reserved.
4  */
5 
12 #ifndef _BMS_H
13 #define _BMS_H
14 
15 #include "unicode/utypes.h"
16 
17 #if !UCONFIG_NO_COLLATION && !UCONFIG_NO_BREAK_ITERATION
18 
19 #include "unicode/ucol.h"
20 
21 #ifndef U_HIDE_INTERNAL_API
22 
39 typedef void UCD;
40 
55 U_CAPI UCD * U_EXPORT2
56 ucd_open(UCollator *coll, UErrorCode *status);
57 
65 U_CAPI void U_EXPORT2
66 ucd_close(UCD *ucd);
67 
81 U_CAPI UCollator * U_EXPORT2
82 ucd_getCollator(UCD *ucd);
83 
96 U_CAPI void U_EXPORT2
98 
106 U_CAPI void U_EXPORT2
108 
186 struct BMS;
187 typedef struct BMS BMS;
207 U_CAPI BMS * U_EXPORT2
208 bms_open(UCD *ucd,
209  const UChar *pattern, int32_t patternLength,
210  const UChar *target, int32_t targetLength,
211  UErrorCode *status);
212 
220 U_CAPI void U_EXPORT2
221 bms_close(BMS *bms);
222 
231 U_CAPI UBool U_EXPORT2
232 bms_empty(BMS *bms);
233 
245 U_CAPI UCD * U_EXPORT2
246 bms_getData(BMS *bms);
247 
260 U_CAPI UBool U_EXPORT2
261 bms_search(BMS *bms, int32_t offset, int32_t *start, int32_t *end);
262 
273 U_CAPI void U_EXPORT2
274 bms_setTargetString(BMS *bms, const UChar *target, int32_t targetLength, UErrorCode *status);
275 
276 #endif /* U_HIDE_INTERNAL_API */
277 
278 #endif
279 
280 #endif /* _BMS_H */