]>
Commit | Line | Data |
---|---|---|
b75a7d8f A |
1 | /* |
2 | ********************************************************************** | |
729e4ab9 | 3 | * Copyright (C) 2001-2009, International Business Machines |
b75a7d8f A |
4 | * Corporation and others. All Rights Reserved. |
5 | ********************************************************************** | |
6 | * Date Name Description | |
7 | * 05/23/00 aliu Creation. | |
8 | ********************************************************************** | |
9 | */ | |
10 | #ifndef TESTUTIL_H | |
11 | #define TESTUTIL_H | |
12 | ||
46f4442e | 13 | #include "intltest.h" |
b75a7d8f A |
14 | |
15 | /** | |
16 | * Utility methods. Everything in this class is static -- do not | |
17 | * attempt to instantiate. | |
18 | */ | |
19 | class TestUtility { | |
20 | ||
21 | public: | |
729e4ab9 | 22 | static UnicodeString &appendHex(UnicodeString &buf, UChar32 ch); |
b75a7d8f | 23 | |
729e4ab9 | 24 | static UnicodeString hex(UChar32 ch); |
b75a7d8f A |
25 | |
26 | static UnicodeString hex(const UnicodeString& s); | |
27 | ||
28 | static UnicodeString hex(const UnicodeString& s, UChar sep); | |
29 | ||
729e4ab9 A |
30 | static UnicodeString hex(const uint8_t* bytes, int32_t len); |
31 | ||
b75a7d8f A |
32 | private: |
33 | ||
34 | TestUtility() {} // Prevent instantiation | |
35 | }; | |
36 | ||
37 | #endif |