util.h 879 B

12345678910111213141516171819202122
  1. /**********************************************************************
  2. * © 2016 and later: Unicode, Inc. and others.
  3. * License & terms of use: http://www.unicode.org/copyright.html#License
  4. ***********************************************************************
  5. ***********************************************************************
  6. * COPYRIGHT:
  7. * Copyright (c) 1999-2002, International Business Machines Corporation and
  8. * others. All Rights Reserved.
  9. ***********************************************************************/
  10. #include "unicode/unistr.h"
  11. using namespace icu;
  12. // Verify that a UErrorCode is successful; exit(1) if not
  13. void check(UErrorCode& status, const char* msg);
  14. // Replace nonprintable characters with unicode escapes
  15. UnicodeString escape(const UnicodeString &source);
  16. // Print the given string to stdout
  17. void uprintf(const UnicodeString &str);