openshot-audio  0.1.7
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
StringHolder Class Reference

Public Types

typedef String::CharPointerType CharPointerType
 
typedef
String::CharPointerType::CharType 
CharType
 

Public Member Functions

 StringHolder () JUCE_DELETED_FUNCTION
 

Static Public Member Functions

static CharPointerType createUninitialisedBytes (size_t numBytes)
 
template<class CharPointer >
static CharPointerType createFromCharPointer (const CharPointer text)
 
template<class CharPointer >
static CharPointerType createFromCharPointer (const CharPointer text, size_t maxChars)
 
template<class CharPointer >
static CharPointerType createFromCharPointer (const CharPointer start, const CharPointer end)
 
static CharPointerType createFromCharPointer (const CharPointerType start, const CharPointerType end)
 
static CharPointerType createFromFixedLength (const char *const src, const size_t numChars)
 
static void retain (const CharPointerType text) noexcept
 
static void release (StringHolder *const b) noexcept
 
static void release (const CharPointerType text) noexcept
 
static int getReferenceCount (const CharPointerType text) noexcept
 
static CharPointerType makeUniqueWithByteSize (const CharPointerType text, size_t numBytes)
 
static size_t getAllocatedNumBytes (const CharPointerType text) noexcept
 

Public Attributes

Atomic< intrefCount
 
size_t allocatedNumBytes
 
CharType text [1]
 

Member Typedef Documentation

typedef String::CharPointerType StringHolder::CharPointerType
typedef String::CharPointerType::CharType StringHolder::CharType

Constructor & Destructor Documentation

StringHolder::StringHolder ( )

Member Function Documentation

template<class CharPointer >
static CharPointerType StringHolder::createFromCharPointer ( const CharPointer  text)
inlinestatic
template<class CharPointer >
static CharPointerType StringHolder::createFromCharPointer ( const CharPointer  text,
size_t  maxChars 
)
inlinestatic
template<class CharPointer >
static CharPointerType StringHolder::createFromCharPointer ( const CharPointer  start,
const CharPointer  end 
)
inlinestatic
static CharPointerType StringHolder::createFromCharPointer ( const CharPointerType  start,
const CharPointerType  end 
)
inlinestatic
static CharPointerType StringHolder::createFromFixedLength ( const char *const  src,
const size_t  numChars 
)
inlinestatic
static CharPointerType StringHolder::createUninitialisedBytes ( size_t  numBytes)
inlinestatic
static size_t StringHolder::getAllocatedNumBytes ( const CharPointerType  text)
inlinestaticnoexcept
static int StringHolder::getReferenceCount ( const CharPointerType  text)
inlinestaticnoexcept
static CharPointerType StringHolder::makeUniqueWithByteSize ( const CharPointerType  text,
size_t  numBytes 
)
inlinestatic
static void StringHolder::release ( StringHolder *const  b)
inlinestaticnoexcept
static void StringHolder::release ( const CharPointerType  text)
inlinestaticnoexcept
static void StringHolder::retain ( const CharPointerType  text)
inlinestaticnoexcept

Member Data Documentation

size_t StringHolder::allocatedNumBytes
Atomic<int> StringHolder::refCount
CharType StringHolder::text[1]

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