ICU 49.1.1
49.1.1
|
00001 /* 00002 * Copyright (C) 1996-2011, International Business Machines Corporation and Others. 00003 * All rights reserved. 00004 */ 00005 00012 #ifndef _BMS_H 00013 #define _BMS_H 00014 00015 #include "unicode/utypes.h" 00016 00017 #if !UCONFIG_NO_COLLATION && !UCONFIG_NO_BREAK_ITERATION 00018 00019 #include "unicode/ucol.h" 00020 00021 #ifndef U_HIDE_INTERNAL_API 00022 00039 typedef void UCD; 00040 00055 U_CAPI UCD * U_EXPORT2 00056 ucd_open(UCollator *coll, UErrorCode *status); 00057 00065 U_CAPI void U_EXPORT2 00066 ucd_close(UCD *ucd); 00067 00081 U_CAPI UCollator * U_EXPORT2 00082 ucd_getCollator(UCD *ucd); 00083 00096 U_CAPI void U_EXPORT2 00097 ucd_freeCache(); 00098 00106 U_CAPI void U_EXPORT2 00107 ucd_flushCache(); 00108 00186 struct BMS; 00187 typedef struct BMS BMS; 00207 U_CAPI BMS * U_EXPORT2 00208 bms_open(UCD *ucd, 00209 const UChar *pattern, int32_t patternLength, 00210 const UChar *target, int32_t targetLength, 00211 UErrorCode *status); 00212 00220 U_CAPI void U_EXPORT2 00221 bms_close(BMS *bms); 00222 00231 U_CAPI UBool U_EXPORT2 00232 bms_empty(BMS *bms); 00233 00245 U_CAPI UCD * U_EXPORT2 00246 bms_getData(BMS *bms); 00247 00260 U_CAPI UBool U_EXPORT2 00261 bms_search(BMS *bms, int32_t offset, int32_t *start, int32_t *end); 00262 00273 U_CAPI void U_EXPORT2 00274 bms_setTargetString(BMS *bms, const UChar *target, int32_t targetLength, UErrorCode *status); 00275 00276 #endif /* U_HIDE_INTERNAL_API */ 00277 00278 #endif 00279 00280 #endif /* _BMS_H */