LMMS
Loading...
Searching...
No Matches
juce::StringHolderUtils Class Reference

Public Types

using CharPointerType = StringHolder::CharPointerType
using CharType = StringHolder::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

Private Member Functions

 StringHolderUtils ()=delete
 ~StringHolderUtils ()=delete
void compileTimeChecks ()

Static Private Member Functions

static StringHolderbufferFromText (const CharPointerType charPtr) noexcept
static bool isEmptyString (StringHolder *other)

Member Typedef Documentation

◆ CharPointerType

using juce::StringHolderUtils::CharPointerType = StringHolder::CharPointerType

◆ CharType

using juce::StringHolderUtils::CharType = StringHolder::CharType

Constructor & Destructor Documentation

◆ StringHolderUtils()

juce::StringHolderUtils::StringHolderUtils ( )
privatedelete

◆ ~StringHolderUtils()

juce::StringHolderUtils::~StringHolderUtils ( )
privatedelete

Member Function Documentation

◆ bufferFromText()

StringHolder * juce::StringHolderUtils::bufferFromText ( const CharPointerType charPtr)
inlinestaticprivatenoexcept

◆ compileTimeChecks()

void juce::StringHolderUtils::compileTimeChecks ( )
inlineprivate

◆ createFromCharPointer() [1/4]

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

◆ createFromCharPointer() [2/4]

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

◆ createFromCharPointer() [3/4]

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

◆ createFromCharPointer() [4/4]

CharPointerType juce::StringHolderUtils::createFromCharPointer ( const CharPointerType start,
const CharPointerType end )
inlinestatic

◆ createFromFixedLength()

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

◆ createUninitialisedBytes()

CharPointerType juce::StringHolderUtils::createUninitialisedBytes ( size_t numBytes)
inlinestatic

◆ getAllocatedNumBytes()

size_t juce::StringHolderUtils::getAllocatedNumBytes ( const CharPointerType text)
inlinestaticnoexcept

◆ getReferenceCount()

int juce::StringHolderUtils::getReferenceCount ( const CharPointerType text)
inlinestaticnoexcept

◆ isEmptyString()

bool juce::StringHolderUtils::isEmptyString ( StringHolder * other)
inlinestaticprivate

◆ makeUniqueWithByteSize()

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

◆ release() [1/2]

void juce::StringHolderUtils::release ( const CharPointerType text)
inlinestaticnoexcept

◆ release() [2/2]

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

◆ retain()

void juce::StringHolderUtils::retain ( const CharPointerType text)
inlinestaticnoexcept

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