![]() |
TTMath
0.9.4
C++ bignum library
|
#include <ttmathmisc.h>
Static Public Member Functions | |
static void | AssignString (std::string &result, const char *str) |
static void | AssignString (std::wstring &result, const char *str) |
static void | AssignString (std::wstring &result, const std::string &str) |
static void | AssignString (std::string &result, const wchar_t *str) |
static void | AssignString (std::string &result, const std::wstring &str) |
static void | AddString (std::string &result, const char *str) |
static void | AddString (std::wstring &result, const char *str) |
template<class char_type > | |
static void | SkipWhiteCharacters (const char_type *&c) |
static uint | CharToDigit (uint c) |
static sint | CharToDigit (uint c, uint base) |
static uint | DigitToChar (uint digit) |
some helpful functions
Definition at line 57 of file ttmathmisc.h.
|
static |
|
static |
result += str
Definition at line 146 of file ttmathmisc.h.
|
static |
result = str
Definition at line 72 of file ttmathmisc.h.
Referenced by ttmath::Objects::Add(), AssignString(), ttmath::Objects::Delete(), ttmath::Objects::EditName(), ttmath::Objects::EditValue(), ttmath::Objects::GetValue(), ttmath::Objects::GetValueAndParam(), ttmath::Parser< ValueType >::GetValueOfVariable(), ttmath::Objects::IsDefined(), ttmath::Parser< ValueType >::Parse(), and ttmath::Big< exp, man >::ToWString().
|
static |
result = str
Definition at line 83 of file ttmathmisc.h.
|
static |
result = str
Definition at line 95 of file ttmathmisc.h.
References AssignString().
|
static |
result = str
Definition at line 104 of file ttmathmisc.h.
|
static |
result = str
Definition at line 116 of file ttmathmisc.h.
References AssignString().
this static method converts one character into its value
for example:
this method don't check whether c is correct or not
Definition at line 181 of file ttmathmisc.h.
Referenced by ttmath::Big< exp, man >::FromString(), ttmath::Parser< ValueType >::GetValueOfVariable(), and ttmath::UInt< man >::ToString().
this method changes a character 'c' into its value (if there can't be a correct value it returns -1)
for example:
Definition at line 202 of file ttmathmisc.h.
this method converts a digit into a char digit should be from <0,F> (we don't have to get a base)
for example:
Definition at line 236 of file ttmathmisc.h.
Referenced by ttmath::UInt< man >::ToStringBase().