#include "unicode/utypes.h"
#include "unicode/ucol.h"
Go to the source code of this file.
Typedefs | |
typedef void | UCD |
A UCD object holds the Collator-specific data needed to compute the length of the shortest string that can generate a partcular list of CEs. | |
typedef BMS | BMS |
Functions | |
U_CAPI UCD * | ucd_open (UCollator *coll, UErrorCode *status) |
Open a UCD object. | |
U_CAPI void | ucd_close (UCD *ucd) |
Release a UCD object. | |
U_CAPI UCollator * | ucd_getCollator (UCD *ucd) |
Get the UCollator object used to create a UCD object. | |
U_CAPI void | ucd_freeCache () |
UCD objects are expensive to compute, and so may be cached. | |
U_CAPI void | ucd_flushCache () |
UCD objects are expensive to compute, and so may be cached. | |
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 void | bms_close (BMS *bms) |
Close a BMS object and release all the storage associated with it. | |
U_CAPI UBool | bms_empty (BMS *bms) |
Test the pattern to see if it generates any CEs. | |
U_CAPI UCD * | bms_getData (BMS *bms) |
Get the UCD object used to create a given BMS object. | |
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. | |
U_CAPI void | bms_setTargetString (BMS *bms, const UChar *target, int32_t targetLength, UErrorCode *status) |
Set the target string for the match. |
Definition in file bms.h.
|
A
If you do not need to reuse any unreferenced objects in the cache, you can call |
|
Close a
|
|
Test the pattern to see if it generates any CEs.
|
|
Get the
|
|
Construct a
bms_close .
|
|
Search for the pattern string in the target string.
|
|
Set the target string for the match.
|
|
Release a
|
|
This routine will remove any unused
|
|
This routine will free the cached objects and delete the cache.
WARNING: Don't call this until you are have called
|
|
Get the
The
|
|
Open a
ucd_close .
|