7e4b9db07a
X-SVN-Rev: 24394
44 lines
1.1 KiB
C
44 lines
1.1 KiB
C
|
|
/*
|
|
************************************************************************
|
|
* Copyright (c) 2007-2008, 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;
|
|
|
|
T_CTEST_API const UnicodeString& T_CTEST_EXPORT2 udbg_enumString(UDebugEnumType type, int32_t field);
|
|
|
|
/**
|
|
* @return enum offset, or UDBG_INVALID_ENUM on error
|
|
*/
|
|
T_CTEST_API int32_t T_CTEST_EXPORT2 udbg_enumByString(UDebugEnumType type, const UnicodeString& string);
|
|
|
|
/**
|
|
* Convert a UnicodeString (with ascii digits) into a number.
|
|
* @param s string
|
|
* @return numerical value, or 0 on error
|
|
*/
|
|
T_CTEST_API int32_t T_CTEST_EXPORT2 udbg_stoi(const UnicodeString &s);
|
|
|
|
T_CTEST_API double T_CTEST_EXPORT2 udbg_stod(const UnicodeString &s);
|
|
|
|
T_CTEST_API UnicodeString *udbg_escape(const UnicodeString &s, UnicodeString *dst);
|
|
|
|
#endif
|
|
|
|
#endif
|