ICU 4.8.1.1  4.8.1.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
bms.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2010, 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 
35 typedef void UCD;
36 
52 ucd_open(UCollator *coll, UErrorCode *status);
53 
61 U_CAPI void U_EXPORT2
62 ucd_close(UCD *ucd);
63 
78 ucd_getCollator(UCD *ucd);
79 
92 U_CAPI void U_EXPORT2
94 
102 U_CAPI void U_EXPORT2
104 
182 struct BMS;
183 typedef struct BMS BMS;
204 bms_open(UCD *ucd,
205  const UChar *pattern, int32_t patternLength,
206  const UChar *target, int32_t targetLength,
207  UErrorCode *status);
208 
216 U_CAPI void U_EXPORT2
217 bms_close(BMS *bms);
218 
228 bms_empty(BMS *bms);
229 
242 bms_getData(BMS *bms);
243 
257 bms_search(BMS *bms, int32_t offset, int32_t *start, int32_t *end);
258 
269 U_CAPI void U_EXPORT2
270 bms_setTargetString(BMS *bms, const UChar *target, int32_t targetLength, UErrorCode *status);
271 
272 #endif
273 
274 #endif /* _BMS_H */