]>
git.saurik.com Git - apple/icu.git/blob - icuSources/common/uset_imp.h
2 *******************************************************************************
4 * Copyright (C) 2004, International Business Machines
5 * Corporation and others. All Rights Reserved.
7 *******************************************************************************
8 * file name: uset_imp.h
10 * tab size: 8 (not used)
13 * created on: 2004sep07
14 * created by: Markus W. Scherer
16 * Internal USet definitions.
19 #ifndef __USET_IMP_H__
20 #define __USET_IMP_H__
22 #include "unicode/utypes.h"
23 #include "unicode/uset.h"
27 typedef void U_CALLCONV
28 USetAdd(USet
*set
, UChar32 c
);
30 typedef void U_CALLCONV
31 USetAddRange(USet
*set
, UChar32 start
, UChar32 end
);
33 typedef void U_CALLCONV
34 USetAddString(USet
*set
, const UChar
*str
, int32_t length
);
37 * Interface for adding items to a USet, to keep low-level code from
38 * statically depending on the USet implementation.
39 * Calls will look like sa->add(sa->set, c);
44 USetAddRange
*addRange
;
45 USetAddString
*addString
;
47 typedef struct USetAdder USetAdder
;
52 * Get the set of "white space" characters in the sense of ICU rule
53 * parsers. Caller must close/delete result.
56 U_CAPI USet
* U_EXPORT2
57 uprv_openRuleWhiteSpaceSet(UErrorCode
* ec
);