17 #if !UCONFIG_NO_COLLATION && !UCONFIG_NO_BREAK_ITERATION
205 const UChar *pattern, int32_t patternLength,
206 const UChar *target, int32_t targetLength,
257 bms_search(
BMS *bms, int32_t offset, int32_t *start, int32_t *end);
#define U_CAPI
This is used to declare a function as a public ICU C API.
U_CAPI BMS * bms_open(UCD *ucd, const UChar *pattern, int32_t patternLength, const UChar *target, int32_t targetLength, UErrorCode *status)
Construct a MBS object.
U_CAPI UBool bms_empty(BMS *bms)
Test the pattern to see if it generates any CEs.
U_CAPI void ucd_freeCache()
UCD objects are expensive to compute, and so may be cached.
U_CAPI UCD * bms_getData(BMS *bms)
Get the UCD object used to create a given BMS object.
U_CAPI UCollator * ucd_getCollator(UCD *ucd)
Get the UCollator object used to create a UCD object.
U_CAPI void bms_setTargetString(BMS *bms, const UChar *target, int32_t targetLength, UErrorCode *status)
Set the target string for the match.
U_CAPI void ucd_close(UCD *ucd)
Release a UCD object.
U_CAPI void ucd_flushCache()
UCD objects are expensive to compute, and so may be cached.
uint16_t UChar
Define UChar to be wchar_t if that is 16 bits wide; always assumed to be unsigned.
U_CAPI UCD * ucd_open(UCollator *coll, UErrorCode *status)
Open a UCD object.
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers...
U_CAPI UBool bms_search(BMS *bms, int32_t offset, int32_t *start, int32_t *end)
Search for the pattern string in the target string.
struct UCollator UCollator
structure representing a collator object instance
Basic definitions for ICU, for both C and C++ APIs.
U_CAPI void bms_close(BMS *bms)
Close a BMS object and release all the storage associated with it.
int8_t UBool
The ICU boolean type.
void UCD
A UCD object holds the Collator-specific data needed to compute the length of the shortest string tha...