|
HDK
|
#include <UT_Digits.h>
Inheritance diagram for UT_DigitsEXPR:Public Member Functions | |
| UT_DigitsEXPR (fpreal64 v) | |
| UT_DigitsEXPR (fpreal32 v) | |
Public Member Functions inherited from UT_Digits | |
| UT_Digits () | |
| Initialize to empty string. More... | |
| void | reset (fpreal64, Flags flags=GENERAL, int precision=-1) |
| Change to a new 64-bit double. More... | |
| void | reset (fpreal32, Flags flags=GENERAL, int precision=-1) |
| Change to a new 32-bit float. More... | |
| void | reset (fpreal16, Flags flags=GENERAL, int precision=-1) |
| Change to a 16-bit IEEE "half". More... | |
| void | reset (int64, Flags flags=GENERAL, int precision=-1) |
| Change to an integer. More... | |
| void | reset (int32, Flags flags=GENERAL, int precision=-1) |
| Change to an integer. More... | |
| void | reset (uint64, Flags flags=GENERAL, int precision=-1) |
| Change to an unsigned. More... | |
| void | reset (uint32, Flags flags=GENERAL, int precision=-1) |
| Change to an unsigned. More... | |
| UT_Digits (fpreal64 i, Flags flags=GENERAL, int precision=-1) | |
| Constructors that do reset(i) More... | |
| UT_Digits (fpreal32 i, Flags flags=GENERAL, int precision=-1) | |
| UT_Digits (fpreal16 i, Flags flags=GENERAL, int precision=-1) | |
| UT_Digits (int64 i, Flags flags=GENERAL, int precision=-1) | |
| UT_Digits (int32 i, Flags flags=GENERAL, int precision=-1) | |
| UT_Digits (uint64 i, Flags flags=GENERAL, int precision=-1) | |
| UT_Digits (uint32 i, Flags flags=GENERAL, int precision=-1) | |
| UT_Digits (fpreal64 i, int precision) | |
| Constructors that take precision but no flags. More... | |
| UT_Digits (fpreal32 i, int precision) | |
| UT_Digits (fpreal16 i, int precision) | |
| const char * | c_str () const |
| Return the formatted string, which is stored in an internal buffer. More... | |
| const char * | data () const |
| Return the formatted string, which is stored in an internal buffer. More... | |
| unsigned | size () const |
| Length of the string. More... | |
| char | operator[] (unsigned i) const |
| get the bytes of the formatted text More... | |
| operator const char * () const | |
| Return the formatted string, which is stored in an internal buffer. More... | |
| operator fpreal64 () const | |
| operator bool () const | |
| Returns true if reset to a non-zero value. More... | |
| bool | operator!= (const char *) const |
| String equality, useful for testing. More... | |
| bool | operator== (const char *v) const |
| void | insert (unsigned i, const char *c, unsigned len) |
| void | insert (unsigned i, char c, unsigned len=1) |
| void | pad0 (Flags flags, int digits) |
| add leading zeros so there are n digits More... | |
| void | grouping (Flags flags) |
| insert commas every 3 leading digits (or _ every 4 for hex) More... | |
| void | prefix (Flags flags) |
| add C prefix such as "0x" More... | |
| void | plus (bool space=false) |
| add a '+' or ' ' to positive numbers More... | |
| void | uppercase () |
| void | append (char c) |
| char * | write (char *start, char *end) const |
Replicate EXPRftoa() using UT_Digits, this avoids a temporary WorkBuffer. Larger precision makes any value that fits in an int64 print without an exponent. Also prints -0.0 as "0" for back-compatability
Definition at line 164 of file UT_Digits.h.
|
inline |
Definition at line 167 of file UT_Digits.h.
|
inline |
Definition at line 168 of file UT_Digits.h.