openshot-audio  0.1.5
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
juce::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< int > refCount
 
size_t allocatedNumBytes
 
CharType text [1]
 

Member Typedef Documentation

◆ CharPointerType

◆ CharType

Constructor & Destructor Documentation

◆ StringHolder()

juce::StringHolder::StringHolder ( )

Member Function Documentation

◆ createFromCharPointer() [1/4]

template<class CharPointer >
static CharPointerType juce::StringHolder::createFromCharPointer ( const CharPointer  text)
inlinestatic

◆ createFromCharPointer() [2/4]

template<class CharPointer >
static CharPointerType juce::StringHolder::createFromCharPointer ( const CharPointer  text,
size_t  maxChars 
)
inlinestatic

◆ createFromCharPointer() [3/4]

template<class CharPointer >
static CharPointerType juce::StringHolder::createFromCharPointer ( const CharPointer  start,
const CharPointer  end 
)
inlinestatic

◆ createFromCharPointer() [4/4]

static CharPointerType juce::StringHolder::createFromCharPointer ( const CharPointerType  start,
const CharPointerType  end 
)
inlinestatic

◆ createFromFixedLength()

static CharPointerType juce::StringHolder::createFromFixedLength ( const char *const  src,
const size_t  numChars 
)
inlinestatic

◆ createUninitialisedBytes()

static CharPointerType juce::StringHolder::createUninitialisedBytes ( size_t  numBytes)
inlinestatic

◆ getAllocatedNumBytes()

static size_t juce::StringHolder::getAllocatedNumBytes ( const CharPointerType  text)
inlinestaticnoexcept

◆ getReferenceCount()

static int juce::StringHolder::getReferenceCount ( const CharPointerType  text)
inlinestaticnoexcept

◆ makeUniqueWithByteSize()

static CharPointerType juce::StringHolder::makeUniqueWithByteSize ( const CharPointerType  text,
size_t  numBytes 
)
inlinestatic

◆ release() [1/2]

static void juce::StringHolder::release ( StringHolder *const  b)
inlinestaticnoexcept

◆ release() [2/2]

static void juce::StringHolder::release ( const CharPointerType  text)
inlinestaticnoexcept

◆ retain()

static void juce::StringHolder::retain ( const CharPointerType  text)
inlinestaticnoexcept

Member Data Documentation

◆ allocatedNumBytes

size_t juce::StringHolder::allocatedNumBytes

◆ refCount

Atomic<int> juce::StringHolder::refCount

◆ text

CharType juce::StringHolder::text[1]

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