ustr_cnv.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. #ifndef USTR_CNV_IMP_H
  17. #define USTR_CNV_IMP_H
  18. #include "unicode/utypes.h"
  19. #include "unicode/ucnv.h"
  20. #if !UCONFIG_NO_CONVERSION
  21. /**
  22. * Get the default converter. This is a commonly used converter
  23. * that is used for the ustring and UnicodeString API.
  24. * Remember to use the u_releaseDefaultConverter when you are done.
  25. * @internal
  26. */
  27. U_CAPI UConverter* U_EXPORT2
  28. u_getDefaultConverter(UErrorCode *status);
  29. /**
  30. * Release the default converter to the converter cache.
  31. * @internal
  32. */
  33. U_CAPI void U_EXPORT2
  34. u_releaseDefaultConverter(UConverter *converter);
  35. /**
  36. * Flush the default converter, if cached.
  37. * @internal
  38. */
  39. U_CAPI void U_EXPORT2
  40. u_flushDefaultConverter(void);
  41. #endif
  42. #endif