Home | History | Annotate | Download | only in intltest
      1 /*
      2 **********************************************************************
      3 *   Copyright (C) 2001-2009, International Business Machines
      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 
     13 #include "intltest.h"
     14 
     15 /**
     16  * Utility methods.  Everything in this class is static -- do not
     17  * attempt to instantiate.
     18  */
     19 class TestUtility {
     20 
     21 public:
     22     static UnicodeString &appendHex(UnicodeString &buf, UChar32 ch);
     23 
     24     static UnicodeString hex(UChar32 ch);
     25 
     26     static UnicodeString hex(const UnicodeString& s);
     27 
     28     static UnicodeString hex(const UnicodeString& s, UChar sep);
     29 
     30 	static UnicodeString hex(const uint8_t* bytes, int32_t len);
     31 
     32 private:
     33 
     34     TestUtility() {} // Prevent instantiation
     35 };
     36 
     37 #endif
     38