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 #include "unicode/fmtable.h" 9 10 // Verify that a UErrorCode is successful; exit(1) if not 11 void check(UErrorCode& status, const char* msg); 12 13 // Replace nonprintable characters with unicode escapes 14 UnicodeString escape(const UnicodeString &source); 15 16 // Print the given string to stdout 17 void uprintf(const UnicodeString &str); 18 19 // Create a display string for a formattable 20 UnicodeString formattableToString(const Formattable& f); 21