]> git.saurik.com Git - apple/icu.git/blame - icuSources/common/ustr_cnv.h
ICU-66108.tar.gz
[apple/icu.git] / icuSources / common / ustr_cnv.h
CommitLineData
f3c0d7a5
A
1// © 2016 and later: Unicode, Inc. and others.
2// License & terms of use: http://www.unicode.org/copyright.html
374ca955
A
3/*
4**********************************************************************
729e4ab9 5* Copyright (C) 1999-2010, International Business Machines
374ca955
A
6* Corporation and others. All Rights Reserved.
7**********************************************************************
8* file name: ustr_cnv.h
f3c0d7a5 9* encoding: UTF-8
374ca955
A
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 */
31U_CAPI UConverter* U_EXPORT2
32u_getDefaultConverter(UErrorCode *status);
33
34
35/**
36 * Release the default converter to the converter cache.
37 * @internal
38 */
39U_CAPI void U_EXPORT2
40u_releaseDefaultConverter(UConverter *converter);
41
729e4ab9
A
42/**
43 * Flush the default converter, if cached.
44 * @internal
45 */
46U_CAPI void U_EXPORT2
47u_flushDefaultConverter(void);
48
374ca955
A
49#endif
50
51#endif