Ice 3.7 C++11 API Reference
InputUtil.h
Go to the documentation of this file.
1 //
2 // Copyright (c) ZeroC, Inc. All rights reserved.
3 //
4 
5 #ifndef ICE_UTIL_INPUT_UTIL_H
6 #define ICE_UTIL_INPUT_UTIL_H
7 
8 #include <IceUtil/Config.h>
9 #include <string>
10 
11 namespace IceUtilInternal
12 {
13 
14 //
15 // Portable strtoll/_strtoi64
16 //
17 ICE_API IceUtil::Int64 strToInt64(const char*, char**, int);
18 
19 //
20 // stringToInt64 converts a string into a signed 64-bit integer.
21 // It's a simple wrapper around strToInt64.
22 //
23 // Semantics:
24 //
25 // - Ignore leading whitespace
26 //
27 // - If the string starts with '0', parse as octal
28 //
29 // - If the string starts with "0x" or "0X", parse as hexadecimal
30 //
31 // - Otherwise, parse as decimal
32 //
33 // - return value == true indicates a successful conversion and result contains the converted value
34 // - return value == false indicates an unsuccessful conversion:
35 // - result == 0 indicates that no digits were available for conversion
36 // - result == "Int64 Min" or result == "Int64 Max" indicate underflow or overflow.
37 //
38 ICE_API bool stringToInt64(const std::string&, IceUtil::Int64&);
39 
40 }
41 
42 #endif
ICE_API
#define ICE_API
Definition: Config.h:197
Config.h
IceUtil::Int64
long long Int64
Definition: Config.h:342