]>
git.saurik.com Git - apple/icu.git/blob - icuSources/tools/toolutil/dbgutil.h
1 // © 2016 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
5 ************************************************************************
6 * Copyright (c) 2007-2012, International Business Machines
7 * Corporation and others. All Rights Reserved.
8 ************************************************************************
11 /** C++ Utilities to aid in debugging **/
16 #include "unicode/utypes.h"
18 #include "unicode/unistr.h"
20 #if !UCONFIG_NO_FORMATTING
22 U_TOOLUTIL_API
const icu::UnicodeString
& U_EXPORT2
23 udbg_enumString(UDebugEnumType type
, int32_t field
);
26 * @return enum offset, or UDBG_INVALID_ENUM on error
28 U_CAPI
int32_t U_EXPORT2
29 udbg_enumByString(UDebugEnumType type
, const icu::UnicodeString
& string
);
32 * Convert a UnicodeString (with ascii digits) into a number.
34 * @return numerical value, or 0 on error
36 U_CAPI
int32_t U_EXPORT2
udbg_stoi(const icu::UnicodeString
&s
);
38 U_CAPI
double U_EXPORT2
udbg_stod(const icu::UnicodeString
&s
);
40 U_CAPI
icu::UnicodeString
* U_EXPORT2
41 udbg_escape(const icu::UnicodeString
&s
, icu::UnicodeString
*dst
);