2000-05-24 17:32:20 +00:00
|
|
|
/*
|
|
|
|
**********************************************************************
|
2009-10-14 21:45:30 +00:00
|
|
|
* Copyright (C) 2001-2009, International Business Machines
|
2000-05-24 17:32:20 +00:00
|
|
|
* Corporation and others. All Rights Reserved.
|
|
|
|
**********************************************************************
|
|
|
|
* Date Name Description
|
|
|
|
* 05/23/00 aliu Creation.
|
|
|
|
**********************************************************************
|
|
|
|
*/
|
|
|
|
#ifndef TESTUTIL_H
|
|
|
|
#define TESTUTIL_H
|
|
|
|
|
2006-09-04 16:28:24 +00:00
|
|
|
#include "intltest.h"
|
2000-05-24 17:32:20 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Utility methods. Everything in this class is static -- do not
|
|
|
|
* attempt to instantiate.
|
|
|
|
*/
|
|
|
|
class TestUtility {
|
|
|
|
|
|
|
|
public:
|
2009-11-13 19:25:21 +00:00
|
|
|
static UnicodeString &appendHex(UnicodeString &buf, UChar32 ch);
|
2000-08-14 21:42:36 +00:00
|
|
|
|
2009-11-13 19:25:21 +00:00
|
|
|
static UnicodeString hex(UChar32 ch);
|
2000-08-14 21:42:36 +00:00
|
|
|
|
2000-05-24 17:32:20 +00:00
|
|
|
static UnicodeString hex(const UnicodeString& s);
|
2000-08-14 21:42:36 +00:00
|
|
|
|
2000-05-24 17:32:20 +00:00
|
|
|
static UnicodeString hex(const UnicodeString& s, UChar sep);
|
2000-08-14 21:42:36 +00:00
|
|
|
|
2009-10-14 21:45:30 +00:00
|
|
|
static UnicodeString hex(const uint8_t* bytes, int32_t len);
|
|
|
|
|
2000-05-24 17:32:20 +00:00
|
|
|
private:
|
|
|
|
|
|
|
|
TestUtility() {} // Prevent instantiation
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|