ICU 64.2  64.2
ucpmap.h
Go to the documentation of this file.
1 // © 2018 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
3 
4 // ucpmap.h
5 // created: 2018sep03 Markus W. Scherer
6 
7 #ifndef __UCPMAP_H__
8 #define __UCPMAP_H__
9 
10 #include "unicode/utypes.h"
11 
12 #ifndef U_HIDE_DRAFT_API
13 
15 
33 typedef struct UCPMap UCPMap;
34 
83 };
84 #ifndef U_IN_DOXYGEN
86 #endif
87 
98 U_CAPI uint32_t U_EXPORT2
99 ucpmap_get(const UCPMap *map, UChar32 c);
100 
115 typedef uint32_t U_CALLCONV
116 UCPMapValueFilter(const void *context, uint32_t value);
117 
154 U_CAPI UChar32 U_EXPORT2
155 ucpmap_getRange(const UCPMap *map, UChar32 start,
156  UCPMapRangeOption option, uint32_t surrogateValue,
157  UCPMapValueFilter *filter, const void *context, uint32_t *pValue);
158 
160 
161 #endif // U_HIDE_DRAFT_API
162 #endif
UCPMapRangeOption
Selectors for how ucpmap_getRange() etc.
Definition: ucpmap.h:44
U_CAPI uint32_t ucpmap_get(const UCPMap *map, UChar32 c)
Returns the value for a code point as stored in the map, with range checking.
U_CAPI UChar32 ucpmap_getRange(const UCPMap *map, UChar32 start, UCPMapRangeOption option, uint32_t surrogateValue, UCPMapValueFilter *filter, const void *context, uint32_t *pValue)
Returns the last code point such that all those from start to there have the same value...
struct UCPMap UCPMap
Abstract map from Unicode code points (U+0000..U+10FFFF) to integer values.
Definition: ucpmap.h:33
#define U_CAPI
This is used to declare a function as a public ICU C API.
Definition: umachine.h:109
ucpmap_getRange() enumerates all same-value ranges as stored in the map.
Definition: ucpmap.h:50
#define U_CALLCONV
Similar to U_CDECL_BEGIN/U_CDECL_END, this qualifier is necessary in callback function typedefs to ma...
Definition: platform.h:840
#define U_CDECL_BEGIN
This is used to begin a declaration of a library private ICU C API.
Definition: umachine.h:84
ucpmap_getRange() enumerates all same-value ranges as stored in the map, except that lead surrogates ...
Definition: ucpmap.h:66
uint32_t UCPMapValueFilter(const void *context, uint32_t value)
Callback function type: Modifies a map value.
Definition: ucpmap.h:116
int32_t UChar32
Define UChar32 as a type for single Unicode code points.
Definition: umachine.h:389
#define U_CDECL_END
This is used to end a declaration of a library private ICU C API.
Definition: umachine.h:85
ucpmap_getRange() enumerates all same-value ranges as stored in the map, except that all surrogates (...
Definition: ucpmap.h:82
Basic definitions for ICU, for both C and C++ APIs.