]> git.saurik.com Git - apple/icu.git/blob - icuSources/tools/ctestfw/unicode/dbgutil.h
ICU-400.40.tar.gz
[apple/icu.git] / icuSources / tools / ctestfw / unicode / dbgutil.h
1
2 /*
3 ************************************************************************
4 * Copyright (c) 2007, International Business Machines
5 * Corporation and others. All Rights Reserved.
6 ************************************************************************
7 */
8
9 /** C++ Utilities to aid in debugging **/
10
11 #ifndef _DBGUTIL_H
12 #define _DBGUTIL_H
13
14 #include "unicode/utypes.h"
15 #include "unicode/udbgutil.h"
16 #include "unicode/unistr.h"
17 #include "unicode/testtype.h"
18
19 #if !UCONFIG_NO_FORMATTING
20
21 //class UnicodeString;
22
23 T_CTEST_API const UnicodeString& T_CTEST_EXPORT2 udbg_enumString(UDebugEnumType type, int32_t field);
24
25 T_CTEST_API int32_t T_CTEST_EXPORT2 udbg_enumByString(UDebugEnumType type, const UnicodeString& string);
26
27 /**
28 * Convert a UnicodeString (with ascii digits) into a number.
29 * @param s string
30 * @return numerical value, or 0 on error
31 */
32 T_CTEST_API int32_t T_CTEST_EXPORT2 udbg_stoi(const UnicodeString &s);
33
34 T_CTEST_API UnicodeString *udbg_escape(const UnicodeString &s, UnicodeString *dst);
35
36 #endif
37
38 #endif