]> git.saurik.com Git - apple/icu.git/blob - icuSources/common/ustr_cnv.h
861e3ebff0613b730f574282c2050f71487147eb
[apple/icu.git] / icuSources / common / ustr_cnv.h
1 // © 2016 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
3 /*
4 **********************************************************************
5 * Copyright (C) 1999-2010, International Business Machines
6 * Corporation and others. All Rights Reserved.
7 **********************************************************************
8 * file name: ustr_cnv.h
9 * encoding: UTF-8
10 * tab size: 8 (not used)
11 * indentation:4
12 *
13 * created on: 2004Aug27
14 * created by: George Rhoten
15 */
16
17 #ifndef USTR_CNV_IMP_H
18 #define USTR_CNV_IMP_H
19
20 #include "unicode/utypes.h"
21 #include "unicode/ucnv.h"
22
23 #if !UCONFIG_NO_CONVERSION
24
25 /**
26 * Get the default converter. This is a commonly used converter
27 * that is used for the ustring and UnicodeString API.
28 * Remember to use the u_releaseDefaultConverter when you are done.
29 * @internal
30 */
31 U_CAPI UConverter* U_EXPORT2
32 u_getDefaultConverter(UErrorCode *status);
33
34
35 /**
36 * Release the default converter to the converter cache.
37 * @internal
38 */
39 U_CAPI void U_EXPORT2
40 u_releaseDefaultConverter(UConverter *converter);
41
42 /**
43 * Flush the default converter, if cached.
44 * @internal
45 */
46 U_CAPI void U_EXPORT2
47 u_flushDefaultConverter(void);
48
49 #endif
50
51 #endif