2007-07-12 21:53:20 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
************************************************************************
|
|
|
|
* Copyright (c) 2007, International Business Machines
|
|
|
|
* Corporation and others. All Rights Reserved.
|
|
|
|
************************************************************************
|
|
|
|
*/
|
|
|
|
|
|
|
|
/** C++ Utilities to aid in debugging **/
|
|
|
|
|
|
|
|
#ifndef _DBGUTIL_H
|
|
|
|
#define _DBGUTIL_H
|
|
|
|
|
|
|
|
#include "unicode/utypes.h"
|
|
|
|
#include "unicode/udbgutil.h"
|
|
|
|
#include "unicode/unistr.h"
|
|
|
|
#include "unicode/testtype.h"
|
|
|
|
|
|
|
|
#if !UCONFIG_NO_FORMATTING
|
|
|
|
|
|
|
|
//class UnicodeString;
|
|
|
|
|
2007-07-13 18:16:21 +00:00
|
|
|
T_CTEST_API const UnicodeString& T_CTEST_EXPORT2 udbg_enumString(UDebugEnumType type, int32_t field);
|
2007-07-12 21:53:20 +00:00
|
|
|
|
2007-07-13 18:16:21 +00:00
|
|
|
T_CTEST_API int32_t T_CTEST_EXPORT2 udbg_enumByString(UDebugEnumType type, const UnicodeString& string);
|
2007-07-12 21:53:20 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Convert a UnicodeString (with ascii digits) into a number.
|
|
|
|
* @param s string
|
|
|
|
* @return numerical value, or 0 on error
|
|
|
|
*/
|
2007-07-13 18:16:21 +00:00
|
|
|
T_CTEST_API int32_t T_CTEST_EXPORT2 udbg_stoi(const UnicodeString &s);
|
2007-07-12 21:53:20 +00:00
|
|
|
|
2007-08-13 23:48:00 +00:00
|
|
|
T_CTEST_API UnicodeString udbg_escape(const UnicodeString &s);
|
|
|
|
|
2007-07-12 21:53:20 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|