]>
git.saurik.com Git - apple/icu.git/blob - icuSources/samples/numfmt/util.h
1 /********************************************************************
3 * Copyright (c) 1999-2002, International Business Machines Corporation and
4 * others. All Rights Reserved.
5 ********************************************************************/
7 #include "unicode/unistr.h"
8 #include "unicode/fmtable.h"
10 // Verify that a UErrorCode is successful; exit(1) if not
11 void check(UErrorCode
& status
, const char* msg
);
13 // Replace nonprintable characters with unicode escapes
14 UnicodeString
escape(const UnicodeString
&source
);
16 // Print the given string to stdout
17 void uprintf(const UnicodeString
&str
);
19 // Create a display string for a formattable
20 UnicodeString
formattableToString(const Formattable
& f
);