39 operator const char16* ()
const {
return thisBuffer; }
58 const UString&
toAscii (
char* dst, int32 dstSize)
const;
61 bool scanInt (int64& value)
const;
70 bool printFloat (
double value, int32 precision = 4);
80template <
int32 maxSize>
104 char16 data[maxSize];
113#define USTRING(asciiString) Steinberg::UString256 (asciiString)
114#define USTRINGSIZE(var) (sizeof (var) / sizeof (Steinberg::char16))
UTF-16 string with fixed buffer size.
UStringBuffer(const char *src, int32 srcSize=-1)
Construct from ASCII string.
UStringBuffer(const char16 *src, int32 srcSize=-1)
Construct from UTF-16 string.
UTF-16 string class without buffer management.
bool printInt(int64 value)
Print integer to string.
bool scanInt(int64 &value) const
Scan integer from string.
int32 getSize() const
returns buffer size
UString & append(const char16 *src, int32 srcSize=-1)
Append UTF-16 buffer (srcSize is in code unit (count of char16)).
const UString & toAscii(char *dst, int32 dstSize) const
Copy to ASCII string.
int32 getLength() const
Returns length of string (in code unit).
bool scanFloat(double &value) const
Scan float from string.
UString(char16 *buffer, int32 size)
Construct from UTF-16 string, size is in code unit (count of char16)
const UString & copyTo(char16 *dst, int32 dstSize) const
Copy to UTF-16 buffer (dstSize is in code unit (count of char16)).
UString & fromAscii(const char *src, int32 srcSize=-1)
Copy from ASCII string (srcSize is in code unit (count of char16)).
UString & assign(const char16 *src, int32 srcSize=-1)
Copy from UTF-16 buffer (srcSize is in code unit (count of char16)).
int32 thisSize
size in code unit (not in byte!)
bool printFloat(double value, int32 precision=4)
Print float to string.