JUCE-7.0.12-0-g4f43011b96 JUCE-7.0.12-0-g4f43011b96
JUCE — C++ application framework with suport for VST, VST3, LV2 audio plug-ins

« « « Anklang Documentation
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
Steinberg::UStringBuffer< maxSize > Class Template Reference

UTF-16 string with fixed buffer size. More...

#include "ustring.h"

Inheritance diagram for Steinberg::UStringBuffer< maxSize >:
Steinberg::UString

Public Member Functions

 UStringBuffer (const char16 *src, int32 srcSize=-1)
 Construct from UTF-16 string.
 
 UStringBuffer (const char *src, int32 srcSize=-1)
 Construct from ASCII string.
 
- Public Member Functions inherited from Steinberg::UString
 UString (char16 *buffer, int32 size)
 Construct from UTF-16 string, size is in code unit (count of char16)
 
int32 getSize () const
 returns buffer size
 
 operator const char16 * () const
 cast to char16*
 
int32 getLength () const
 Returns length of string (in code unit).
 
UStringassign (const char16 *src, int32 srcSize=-1)
 Copy from UTF-16 buffer (srcSize is in code unit (count of char16)).
 
UStringappend (const char16 *src, int32 srcSize=-1)
 Append UTF-16 buffer (srcSize is in code unit (count of char16)).
 
const UStringcopyTo (char16 *dst, int32 dstSize) const
 Copy to UTF-16 buffer (dstSize is in code unit (count of char16)).
 
UStringfromAscii (const char *src, int32 srcSize=-1)
 Copy from ASCII string (srcSize is in code unit (count of char16)).
 
UStringassign (const char *src, int32 srcSize=-1)
 
const UStringtoAscii (char *dst, int32 dstSize) const
 Copy to ASCII string.
 
bool scanInt (int64 &value) const
 Scan integer from string.
 
bool printInt (int64 value)
 Print integer to string.
 
bool scanFloat (double &value) const
 Scan float from string.
 
bool printFloat (double value, int32 precision=4)
 Print float to string.
 

Protected Attributes

char16 data [maxSize]
 
- Protected Attributes inherited from Steinberg::UString
char16 * thisBuffer
 
int32 thisSize
 size in code unit (not in byte!)
 

Detailed Description

template<int32 maxSize>
class Steinberg::UStringBuffer< maxSize >

UTF-16 string with fixed buffer size.

Definition at line 81 of file ustring.h.

Constructor & Destructor Documentation

◆ UStringBuffer() [1/3]

template<int32 maxSize>
Steinberg::UStringBuffer< maxSize >::UStringBuffer ( )

Definition at line 85 of file ustring.h.

◆ UStringBuffer() [2/3]

template<int32 maxSize>
Steinberg::UStringBuffer< maxSize >::UStringBuffer ( const char16 *  src,
int32  srcSize = -1 
)

Construct from UTF-16 string.

Definition at line 88 of file ustring.h.

◆ UStringBuffer() [3/3]

template<int32 maxSize>
Steinberg::UStringBuffer< maxSize >::UStringBuffer ( const char src,
int32  srcSize = -1 
)

Construct from ASCII string.

Definition at line 96 of file ustring.h.

Member Data Documentation

◆ data

template<int32 maxSize>
char16 Steinberg::UStringBuffer< maxSize >::data[maxSize]
protected

Definition at line 104 of file ustring.h.


The documentation for this class was generated from the following file: