michael@0: /* michael@0: ********************************************************************** michael@0: * Copyright (C) 1999-2010, International Business Machines michael@0: * Corporation and others. All Rights Reserved. michael@0: ********************************************************************** michael@0: * file name: ustr_cnv.h michael@0: * encoding: US-ASCII michael@0: * tab size: 8 (not used) michael@0: * indentation:4 michael@0: * michael@0: * created on: 2004Aug27 michael@0: * created by: George Rhoten michael@0: */ michael@0: michael@0: #ifndef USTR_CNV_IMP_H michael@0: #define USTR_CNV_IMP_H michael@0: michael@0: #include "unicode/utypes.h" michael@0: #include "unicode/ucnv.h" michael@0: michael@0: #if !UCONFIG_NO_CONVERSION michael@0: michael@0: /** michael@0: * Get the default converter. This is a commonly used converter michael@0: * that is used for the ustring and UnicodeString API. michael@0: * Remember to use the u_releaseDefaultConverter when you are done. michael@0: * @internal michael@0: */ michael@0: U_CAPI UConverter* U_EXPORT2 michael@0: u_getDefaultConverter(UErrorCode *status); michael@0: michael@0: michael@0: /** michael@0: * Release the default converter to the converter cache. michael@0: * @internal michael@0: */ michael@0: U_CAPI void U_EXPORT2 michael@0: u_releaseDefaultConverter(UConverter *converter); michael@0: michael@0: /** michael@0: * Flush the default converter, if cached. michael@0: * @internal michael@0: */ michael@0: U_CAPI void U_EXPORT2 michael@0: u_flushDefaultConverter(void); michael@0: michael@0: #endif michael@0: michael@0: #endif