]> git.saurik.com Git - apple/icu.git/blame - icuSources/tools/toolutil/dbgutil.h
ICU-511.25.tar.gz
[apple/icu.git] / icuSources / tools / toolutil / dbgutil.h
CommitLineData
729e4ab9
A
1
2/*
3************************************************************************
51004dcb 4* Copyright (c) 2007-2012, International Business Machines
729e4ab9
A
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 "udbgutil.h"
16#include "unicode/unistr.h"
17
18#if !UCONFIG_NO_FORMATTING
19
51004dcb 20U_TOOLUTIL_API const icu::UnicodeString& U_EXPORT2
729e4ab9
A
21udbg_enumString(UDebugEnumType type, int32_t field);
22
23/**
24 * @return enum offset, or UDBG_INVALID_ENUM on error
25 */
26U_CAPI int32_t U_EXPORT2
4388f060 27udbg_enumByString(UDebugEnumType type, const icu::UnicodeString& string);
729e4ab9
A
28
29/**
30 * Convert a UnicodeString (with ascii digits) into a number.
31 * @param s string
32 * @return numerical value, or 0 on error
33 */
4388f060 34U_CAPI int32_t U_EXPORT2 udbg_stoi(const icu::UnicodeString &s);
729e4ab9 35
4388f060 36U_CAPI double U_EXPORT2 udbg_stod(const icu::UnicodeString &s);
729e4ab9 37
4388f060
A
38U_CAPI icu::UnicodeString * U_EXPORT2
39udbg_escape(const icu::UnicodeString &s, icu::UnicodeString *dst);
729e4ab9
A
40
41#endif
42
43#endif