intl/icu/source/tools/toolutil/dbgutil.h

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1
michael@0 2 /*
michael@0 3 ************************************************************************
michael@0 4 * Copyright (c) 2007-2012, International Business Machines
michael@0 5 * Corporation and others. All Rights Reserved.
michael@0 6 ************************************************************************
michael@0 7 */
michael@0 8
michael@0 9 /** C++ Utilities to aid in debugging **/
michael@0 10
michael@0 11 #ifndef _DBGUTIL_H
michael@0 12 #define _DBGUTIL_H
michael@0 13
michael@0 14 #include "unicode/utypes.h"
michael@0 15 #include "udbgutil.h"
michael@0 16 #include "unicode/unistr.h"
michael@0 17
michael@0 18 #if !UCONFIG_NO_FORMATTING
michael@0 19
michael@0 20 U_TOOLUTIL_API const icu::UnicodeString& U_EXPORT2
michael@0 21 udbg_enumString(UDebugEnumType type, int32_t field);
michael@0 22
michael@0 23 /**
michael@0 24 * @return enum offset, or UDBG_INVALID_ENUM on error
michael@0 25 */
michael@0 26 U_CAPI int32_t U_EXPORT2
michael@0 27 udbg_enumByString(UDebugEnumType type, const icu::UnicodeString& string);
michael@0 28
michael@0 29 /**
michael@0 30 * Convert a UnicodeString (with ascii digits) into a number.
michael@0 31 * @param s string
michael@0 32 * @return numerical value, or 0 on error
michael@0 33 */
michael@0 34 U_CAPI int32_t U_EXPORT2 udbg_stoi(const icu::UnicodeString &s);
michael@0 35
michael@0 36 U_CAPI double U_EXPORT2 udbg_stod(const icu::UnicodeString &s);
michael@0 37
michael@0 38 U_CAPI icu::UnicodeString * U_EXPORT2
michael@0 39 udbg_escape(const icu::UnicodeString &s, icu::UnicodeString *dst);
michael@0 40
michael@0 41 #endif
michael@0 42
michael@0 43 #endif

mercurial