ICU 4.8.1.1  4.8.1.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
unorm2.h
Go to the documentation of this file.
1 /*
2 *******************************************************************************
3 *
4 * Copyright (C) 2009-2010, International Business Machines
5 * Corporation and others. All Rights Reserved.
6 *
7 *******************************************************************************
8 * file name: unorm2.h
9 * encoding: US-ASCII
10 * tab size: 8 (not used)
11 * indentation:4
12 *
13 * created on: 2009dec15
14 * created by: Markus W. Scherer
15 */
16 
17 #ifndef __UNORM2_H__
18 #define __UNORM2_H__
19 
31 #include "unicode/utypes.h"
32 #include "unicode/localpointer.h"
33 #include "unicode/uset.h"
34 
42 typedef enum {
85 
111 
116 struct UNormalizer2;
117 typedef struct UNormalizer2 UNormalizer2;
119 #if !UCONFIG_NO_NORMALIZATION
120 
143 unorm2_getInstance(const char *packageName,
144  const char *name,
145  UNormalization2Mode mode,
146  UErrorCode *pErrorCode);
147 
164 unorm2_openFiltered(const UNormalizer2 *norm2, const USet *filterSet, UErrorCode *pErrorCode);
165 
172 U_STABLE void U_EXPORT2
173 unorm2_close(UNormalizer2 *norm2);
174 
175 #if U_SHOW_CPLUSPLUS_API
176 
178 
188 U_DEFINE_LOCAL_OPEN_POINTER(LocalUNormalizer2Pointer, UNormalizer2, unorm2_close);
189 
191 
192 #endif
193 
210 U_STABLE int32_t U_EXPORT2
211 unorm2_normalize(const UNormalizer2 *norm2,
212  const UChar *src, int32_t length,
213  UChar *dest, int32_t capacity,
214  UErrorCode *pErrorCode);
233 U_STABLE int32_t U_EXPORT2
235  UChar *first, int32_t firstLength, int32_t firstCapacity,
236  const UChar *second, int32_t secondLength,
237  UErrorCode *pErrorCode);
256 U_STABLE int32_t U_EXPORT2
257 unorm2_append(const UNormalizer2 *norm2,
258  UChar *first, int32_t firstLength, int32_t firstCapacity,
259  const UChar *second, int32_t secondLength,
260  UErrorCode *pErrorCode);
261 
278 U_DRAFT int32_t U_EXPORT2
280  UChar32 c, UChar *decomposition, int32_t capacity,
281  UErrorCode *pErrorCode);
282 
300 unorm2_isNormalized(const UNormalizer2 *norm2,
301  const UChar *s, int32_t length,
302  UErrorCode *pErrorCode);
303 
322 unorm2_quickCheck(const UNormalizer2 *norm2,
323  const UChar *s, int32_t length,
324  UErrorCode *pErrorCode);
325 
350 U_STABLE int32_t U_EXPORT2
352  const UChar *s, int32_t length,
353  UErrorCode *pErrorCode);
354 
366 
378 
388 unorm2_isInert(const UNormalizer2 *norm2, UChar32 c);
389 
390 #endif /* !UCONFIG_NO_NORMALIZATION */
391 #endif /* __UNORM2_H__ */