17 #if !UCONFIG_NO_COLLATION && !UCONFIG_NO_BREAK_ITERATION
21 #ifndef U_HIDE_INTERNAL_API
209 const UChar *pattern, int32_t patternLength,
210 const UChar *target, int32_t targetLength,
261 bms_search(
BMS *bms, int32_t offset, int32_t *start, int32_t *end);
UCD * bms_getData(BMS *bms)
Get the UCD object used to create a given BMS object.
void ucd_freeCache()
UCD objects are expensive to compute, and so may be cached.
void ucd_flushCache()
UCD objects are expensive to compute, and so may be cached.
void ucd_close(UCD *ucd)
Release a UCD object.
#define U_INTERNAL
This is used to declare a function as an internal ICU C API.
UCollator * ucd_getCollator(UCD *ucd)
Get the UCollator object used to create a UCD object.
BMS * bms_open(UCD *ucd, const UChar *pattern, int32_t patternLength, const UChar *target, int32_t targetLength, UErrorCode *status)
Construct a MBS object.
UBool bms_empty(BMS *bms)
Test the pattern to see if it generates any CEs.
uint16_t UChar
Define UChar to be UCHAR_TYPE, if that is #defined (for example, to char16_t), or wchar_t if that is ...
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers...
struct UCollator UCollator
structure representing a collator object instance
Basic definitions for ICU, for both C and C++ APIs.
UCD * ucd_open(UCollator *coll, UErrorCode *status)
Open a UCD object.
void bms_close(BMS *bms)
Close a BMS object and release all the storage associated with it.
void bms_setTargetString(BMS *bms, const UChar *target, int32_t targetLength, UErrorCode *status)
Set the target string for the match.
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...
UBool bms_search(BMS *bms, int32_t offset, int32_t *start, int32_t *end)
Search for the pattern string in the target string.