plll
1.0
|
An "arithmetic" context for conversions to std::string
s.
More...
#include <arithmetic.hpp>
Public Types | |
enum | |
The properties of strings. | |
typedef std::string | Type |
The type. | |
Public Member Functions | |
unsigned | base () const |
Queries the base of this context. More... | |
StringContext () | |
Creates a string context for base 10 (decimal). | |
StringContext (unsigned base) | |
Creates a string context for an arbitrary base. More... | |
An "arithmetic" context for conversions to std::string
s.
Note that most integer types only support bases 8, 10 and 16, and most floating point types only base 10. The exception is plll::arithmetic::Integer
, which should support at least bases 2, 3, 4, ..., up to 36. The digits used should be '0' up to '9' followed by 'a' up to 'z' (lower case!).
Definition at line 1130 of file arithmetic.hpp.
|
inline |
Creates a string context for an arbitrary base.
base | The base. Must be at least 2. |
Definition at line 1167 of file arithmetic.hpp.
|
inline |