ICU 77.1  77.1
unorm2.h
Go to the documentation of this file.
1 // © 2016 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
3 /*
4 *******************************************************************************
5 *
6 * Copyright (C) 2009-2015, International Business Machines
7 * Corporation and others. All Rights Reserved.
8 *
9 *******************************************************************************
10 * file name: unorm2.h
11 * encoding: UTF-8
12 * tab size: 8 (not used)
13 * indentation:4
14 *
15 * created on: 2009dec15
16 * created by: Markus W. Scherer
17 */
18 
19 #ifndef __UNORM2_H__
20 #define __UNORM2_H__
21 
33 #include "unicode/utypes.h"
34 #include "unicode/stringoptions.h"
35 #include "unicode/uset.h"
36 
37 #if U_SHOW_CPLUSPLUS_API
38 #include "unicode/localpointer.h"
39 #endif // U_SHOW_CPLUSPLUS_API
40 
48 typedef enum {
91 
117 
122 struct UNormalizer2;
123 typedef struct UNormalizer2 UNormalizer2;
125 #if !UCONFIG_NO_NORMALIZATION
126 
138 U_CAPI const UNormalizer2 * U_EXPORT2
140 
152 U_CAPI const UNormalizer2 * U_EXPORT2
154 
166 U_CAPI const UNormalizer2 * U_EXPORT2
168 
180 U_CAPI const UNormalizer2 * U_EXPORT2
182 
197 U_CAPI const UNormalizer2 * U_EXPORT2
199 
214 U_CAPI const UNormalizer2 * U_EXPORT2
216 
238 U_CAPI const UNormalizer2 * U_EXPORT2
239 unorm2_getInstance(const char *packageName,
240  const char *name,
241  UNormalization2Mode mode,
242  UErrorCode *pErrorCode);
243 
259 U_CAPI UNormalizer2 * U_EXPORT2
260 unorm2_openFiltered(const UNormalizer2 *norm2, const USet *filterSet, UErrorCode *pErrorCode);
261 
268 U_CAPI void U_EXPORT2
270 
271 #if U_SHOW_CPLUSPLUS_API
272 
273 U_NAMESPACE_BEGIN
274 
285 
286 U_NAMESPACE_END
287 
288 #endif
289 
306 U_CAPI int32_t U_EXPORT2
308  const UChar *src, int32_t length,
309  UChar *dest, int32_t capacity,
310  UErrorCode *pErrorCode);
329 U_CAPI int32_t U_EXPORT2
331  UChar *first, int32_t firstLength, int32_t firstCapacity,
332  const UChar *second, int32_t secondLength,
333  UErrorCode *pErrorCode);
352 U_CAPI int32_t U_EXPORT2
354  UChar *first, int32_t firstLength, int32_t firstCapacity,
355  const UChar *second, int32_t secondLength,
356  UErrorCode *pErrorCode);
357 
377 U_CAPI int32_t U_EXPORT2
379  UChar32 c, UChar *decomposition, int32_t capacity,
380  UErrorCode *pErrorCode);
381 
411 U_CAPI int32_t U_EXPORT2
413  UChar32 c, UChar *decomposition, int32_t capacity,
414  UErrorCode *pErrorCode);
415 
431 U_CAPI UChar32 U_EXPORT2
433 
443 U_CAPI uint8_t U_EXPORT2
445 
462 U_CAPI UBool U_EXPORT2
464  const UChar *s, int32_t length,
465  UErrorCode *pErrorCode);
466 
486  const UChar *s, int32_t length,
487  UErrorCode *pErrorCode);
488 
513 U_CAPI int32_t U_EXPORT2
515  const UChar *s, int32_t length,
516  UErrorCode *pErrorCode);
517 
527 U_CAPI UBool U_EXPORT2