ICU 57.1  57.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-2016, 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 
136 typedef enum {
151 
155 
163 enum {
171 };
172 
188 #define UNORM_COMPARE_NORM_OPTIONS_SHIFT 20
189 
209 U_STABLE int32_t U_EXPORT2
210 unorm_normalize(const UChar *source, int32_t sourceLength,
211  UNormalizationMode mode, int32_t options,
212  UChar *result, int32_t resultLength,
213  UErrorCode *status);
214 
236 unorm_quickCheck(const UChar *source, int32_t sourcelength,
237  UNormalizationMode mode,
238  UErrorCode *status);
239 
257 unorm_quickCheckWithOptions(const UChar *src, int32_t srcLength,
258  UNormalizationMode mode, int32_t options,
259  UErrorCode *pErrorCode);
260 
282 U_STABLE UBool U_EXPORT2
283 unorm_isNormalized(const UChar *src, int32_t srcLength,
284  UNormalizationMode mode,
285  UErrorCode *pErrorCode);
286 
304 U_STABLE UBool U_EXPORT2
305 unorm_isNormalizedWithOptions(const UChar *src, int32_t srcLength,
306  UNormalizationMode mode, int32_t options,
307  UErrorCode *pErrorCode);
308 
382 U_STABLE int32_t U_EXPORT2
384  UChar *dest, int32_t destCapacity,
385  UNormalizationMode mode, int32_t options,
386  UBool doNormalize, UBool *pNeededToNormalize,
387  UErrorCode *pErrorCode);
388 
415 U_STABLE int32_t U_EXPORT2
417  UChar *dest, int32_t destCapacity,
418  UNormalizationMode mode, int32_t options,
419  UBool doNormalize, UBool *pNeededToNormalize,
420  UErrorCode *pErrorCode);
421 
459 U_STABLE int32_t U_EXPORT2
460 unorm_concatenate(const UChar *left, int32_t leftLength,
461  const UChar *right, int32_t rightLength,
462  UChar *dest, int32_t destCapacity,
463  UNormalizationMode mode, int32_t options,
464  UErrorCode *pErrorCode);
465 
466 #endif /* U_HIDE_DEPRECATED_API */
467 #endif /* #if !UCONFIG_NO_NORMALIZATION */
468 #endif