|
OpenTop 1.5 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | Cross-Platform C++ | ||||||
| SUMMARY: CONSTRUCTOR | METHOD | DETAIL: CONSTRUCTOR | METHOD | |||||||
#include "ot/base/NumUtils.h"
Class module containing functions to convert numbers into Strings and vice versa.
| Method Summary | |
static double |
ToDouble(const String& str)Converts a String into a double-precision floating-point value. |
static int |
ToInt(const String& str, int base)Converts a String into an integer value. |
static Int64Type |
ToInt64(const String& str)Converts a String containing a number represented in base-10 characters into a 64-bit integer value. |
static long |
ToLong(const String& str, int base)Converts a String into a long integer value. |
static String |
ToString(long x)Converts the long value x into a String. |
static String |
ToString(unsigned long x)Converts the unsigned long value x into a String. |
static String |
ToString(int x)Converts the integer value x into a String. |
static String |
ToString(unsigned int x)Converts the unsigned integer value x into a String. |
static String |
ToString(double d)Converts the double-precision floating-point value d into a String. |
static String |
ToString(Int64Type x)Converts the 64-bit integer value x into a String. |
static String |
ToString(UInt64Type x)Converts the unsigned 64-bit integer value x into a String. |
| Method Detail |
static double ToDouble(const String& str)
str - static int ToInt(const String& str,
int base)
str - base - static Int64Type ToInt64(const String& str)
str - static long ToLong(const String& str,
int base)
str - base - static String ToString(long x)
static String ToString(unsigned long x)
static String ToString(int x)
static String ToString(unsigned int x)
static String ToString(double d)
static String ToString(Int64Type x)
static String ToString(UInt64Type x)
|
OpenTop 1.5 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | Cross-Platform C++ | ||||||
| SUMMARY: CONSTRUCTOR | METHOD | DETAIL: CONSTRUCTOR | METHOD | |||||||