69 const char*
c_str()
const {
return myBuffer; }
71 const char*
data()
const {
return myBuffer; }
73 unsigned size()
const {
return mySize; }
75 char operator[](
unsigned i)
const {
return myBuffer[i]; }
78 operator const char*()
const {
return myBuffer; }
90 explicit operator bool()
const;
97 void insert(
unsigned i,
const char*
c,
unsigned len);
98 void insert(
unsigned i,
char c,
unsigned len=1);
104 void append(
char c) { myBuffer[mySize++] =
c; myBuffer[mySize] = 0; }
108 char* write(
char*
start,
char*
end)
const;
130 static Flags toFlags(
int base) {
return base==16 ?
HEX : base==8 ? OCTAL : base == 2 ? BINARY : GENERAL; }
150 unsigned addExp(
unsigned,
int e,
Flags flags);
static to_chars_result to_chars(char *start, char *end, int64 v)
static to_chars_result to_chars(char *start, char *end, fpreal16 v, Flags flags=GENERAL, int precision=-1)
UT_Digits(int32 i, Flags flags=GENERAL, int precision=-1)
static to_chars_result to_chars(char *start, char *end, uint32 v, int base)
T negative(const T &val)
Return the unary negation of the given value.
char * write(char *start, char *end) const
char operator[](unsigned i) const
get the bytes of the formatted text
UT_Digits()
Initialize to empty string.
bool operator==(const char *v) const
static Flags toFlags(int base)
static to_chars_result to_chars(char *start, char *end, int64 v, int base)
GLboolean GLboolean GLboolean GLboolean a
UT_DigitsEXPR(fpreal32 v)
UT_Digits(fpreal32 i, Flags flags=GENERAL, int precision=-1)
unsigned long long uint64
OIIO_FORCEINLINE vbool4 insert(const vbool4 &a, bool val)
Helper: substitute val for a[i].
UT_DigitsEXPR(fpreal64 v)
UT_Digits(fpreal64 i, int precision)
Constructors that take precision but no flags.
UT_Digits(fpreal64 i, Flags flags=GENERAL, int precision=-1)
Constructors that do reset(i)
static to_chars_result to_chars(char *start, char *end, uint32 v)
static to_chars_result to_chars(char *start, char *end, uint64 v)
static to_chars_result to_chars(char *start, char *end, fpreal32 v, Flags flags=GENERAL, int precision=-1)
static to_chars_result to_chars(char *start, char *end, uint64 v, int base)
const TypeMask operator|(const TypeMask &m1, const TypeMask &m2)
GLboolean GLboolean GLboolean b
const char * data() const
Return the formatted string, which is stored in an internal buffer.
GLenum GLint GLint * precision
UT_Digits(uint32 i, Flags flags=GENERAL, int precision=-1)
UT_Digits(fpreal16 i, Flags flags=GENERAL, int precision=-1)
static to_chars_result to_chars(char *start, char *end, fpreal64 v, Flags flags=GENERAL, int precision=-1)
UT_Digits(uint64 i, Flags flags=GENERAL, int precision=-1)
static to_chars_result to_chars(char *start, char *end, int32 v, int base)
static to_chars_result to_chars(char *start, char *end, int32 v)
UT_API std::ostream & operator<<(std::ostream &o, const UT_Digits &i)
UT_Digits(int64 i, Flags flags=GENERAL, int precision=-1)
bool operator!=(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
UT_Digits(fpreal32 i, int precision)
Converts a double or float or half to the shortest accurate decimal possible.
const char * c_str() const
Return the formatted string, which is stored in an internal buffer.
UT_Digits(fpreal16 i, int precision)
unsigned size() const
Length of the string.
OrtDmlDeviceFilter & operator|=(OrtDmlDeviceFilter &a, OrtDmlDeviceFilter b)