OpenShot Library | libopenshot-audio 0.2.0
juce::StringHolder Class Reference

Public Types

using CharPointerType = String::CharPointerType
 
using CharType = String::CharPointerType::CharType
 

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]
 

Detailed Description

Definition at line 62 of file juce_String.cpp.

Member Typedef Documentation

◆ CharPointerType

◆ CharType

using juce::StringHolder::CharType = String::CharPointerType::CharType

Definition at line 68 of file juce_String.cpp.

Member Function Documentation

◆ createUninitialisedBytes()

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

Definition at line 71 of file juce_String.cpp.

◆ createFromCharPointer() [1/4]

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

Definition at line 81 of file juce_String.cpp.

◆ createFromCharPointer() [2/4]

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

Definition at line 93 of file juce_String.cpp.

◆ createFromCharPointer() [3/4]

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

Definition at line 114 of file juce_String.cpp.

◆ createFromCharPointer() [4/4]

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

Definition at line 134 of file juce_String.cpp.

◆ createFromFixedLength()

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

Definition at line 147 of file juce_String.cpp.

◆ retain()

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

Definition at line 155 of file juce_String.cpp.

◆ release() [1/2]

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

Definition at line 163 of file juce_String.cpp.

◆ release() [2/2]

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

Definition at line 170 of file juce_String.cpp.

◆ getReferenceCount()

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

Definition at line 175 of file juce_String.cpp.

◆ makeUniqueWithByteSize()

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

Definition at line 181 of file juce_String.cpp.

◆ getAllocatedNumBytes()

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

Definition at line 202 of file juce_String.cpp.

Member Data Documentation

◆ refCount

Atomic<int> juce::StringHolder::refCount

Definition at line 208 of file juce_String.cpp.

◆ allocatedNumBytes

size_t juce::StringHolder::allocatedNumBytes

Definition at line 209 of file juce_String.cpp.

◆ text

CharType juce::StringHolder::text[1]

Definition at line 210 of file juce_String.cpp.


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