scuffed-code/icu4c/source/tools/ctestfw/unicode/dbgutil.h
Steven R. Loomis 7e4b9db07a ICU-6419 document fldset, fix enum check
X-SVN-Rev: 24394
2008-07-21 18:41:14 +00:00

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