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.

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

mercurial