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