ICU 56.1  56.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
unorm.h
Go to the documentation of this file.
1 /*
2 *******************************************************************************
3 * Copyright (c) 1996-2015, International Business Machines Corporation
4 * and others. All Rights Reserved.
5 *******************************************************************************
6 * File unorm.h
7 *
8 * Created by: Vladimir Weinstein 12052000
9 *
10 * Modification history :
11 *
12 * Date Name Description
13 * 02/01/01 synwee Added normalization quickcheck enum and method.
14 */
15 #ifndef UNORM_H
16 #define UNORM_H
17 
18 #include "unicode/utypes.h"
19 
20 #if !UCONFIG_NO_NORMALIZATION
21 
22 #include "unicode/uiter.h"
23 #include "unicode/unorm2.h"
24 
25 #ifndef U_HIDE_DEPRECATED_API
26 
132 #ifndef U_HIDE_DEPRECATED_API
133 
137 typedef enum {
152 
156 #endif /* U_HIDE_DEPRECATED_API */
157 
165 enum {
173 };
174 
190 #define UNORM_COMPARE_NORM_OPTIONS_SHIFT 20
191 
211 U_STABLE int32_t U_EXPORT2
212 unorm_normalize(const UChar *source, int32_t sourceLength,
213  UNormalizationMode mode, int32_t options,
214  UChar *result, int32_t resultLength,
215  UErrorCode *status);
216 
238 unorm_quickCheck(const UChar *source, int32_t sourcelength,
239  UNormalizationMode mode,
240  UErrorCode *status);
241 
259 unorm_quickCheckWithOptions(const UChar *src, int32_t srcLength,
260  UNormalizationMode mode, int32_t options,
261  UErrorCode *pErrorCode);
262 
284 U_STABLE UBool U_EXPORT2
285 unorm_isNormalized(const UChar *src, int32_t srcLength,
286  UNormalizationMode mode,
287  UErrorCode *pErrorCode);
288 
306 U_STABLE UBool U_EXPORT2
307 unorm_isNormalizedWithOptions(const UChar *src, int32_t srcLength,
308  UNormalizationMode mode, int32_t options,
309  UErrorCode *pErrorCode);
310 
384 U_STABLE int32_t U_EXPORT2
386  UChar *dest, int32_t destCapacity,
387  UNormalizationMode mode, int32_t options,
388  UBool doNormalize, UBool *pNeededToNormalize,
389  UErrorCode *pErrorCode);
390 
417 U_STABLE int32_t U_EXPORT2
419  UChar *dest, int32_t destCapacity,
420  UNormalizationMode mode, int32_t options,
421  UBool doNormalize, UBool *pNeededToNormalize,
422  UErrorCode *pErrorCode);
423 
461 U_STABLE int32_t U_EXPORT2
462 unorm_concatenate(const UChar *left, int32_t leftLength,
463  const UChar *right, int32_t rightLength,
464  UChar *dest, int32_t destCapacity,
465  UNormalizationMode mode, int32_t options,
466  UErrorCode *pErrorCode);
467 
468 #endif /* U_HIDE_DEPRECATED_API */
469 #endif /* #if !UCONFIG_NO_NORMALIZATION */
470 #endif