Imported Upstream version 58.1
[platform/upstream/icu.git] / source / test / intltest / testutil.h
1 // Copyright (C) 2016 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
3 /*
4 **********************************************************************
5 *   Copyright (C) 2001-2009, International Business Machines
6 *   Corporation and others.  All Rights Reserved.
7 **********************************************************************
8 *   Date        Name        Description
9 *   05/23/00    aliu        Creation.
10 **********************************************************************
11 */
12 #ifndef TESTUTIL_H
13 #define TESTUTIL_H
14
15 #include "intltest.h"
16
17 /**
18  * Utility methods.  Everything in this class is static -- do not
19  * attempt to instantiate.
20  */
21 class TestUtility {
22
23 public:
24     static UnicodeString &appendHex(UnicodeString &buf, UChar32 ch);
25
26     static UnicodeString hex(UChar32 ch);
27
28     static UnicodeString hex(const UnicodeString& s);
29
30     static UnicodeString hex(const UnicodeString& s, UChar sep);
31
32         static UnicodeString hex(const uint8_t* bytes, int32_t len);
33
34 private:
35
36     TestUtility() {} // Prevent instantiation
37 };
38
39 #endif