![]() |
AAX SDK
2.4.1
Avid Audio Extensions Development Kit
|
#include <AAX_CString.h>
A generic AAX string class with similar functionality to std::string
Public Member Functions | |
uint32_t | Length () const AAX_OVERRIDE |
uint32_t | MaxLength () const AAX_OVERRIDE |
const char * | Get () const AAX_OVERRIDE |
void | Set (const char *iString) AAX_OVERRIDE |
AAX_IString & | operator= (const AAX_IString &iOther) AAX_OVERRIDE |
AAX_IString & | operator= (const char *iString) AAX_OVERRIDE |
AAX_CString () | |
AAX_CString (const char *str) | |
AAX_CString (const std::string &str) | |
AAX_CString (const AAX_CString &other) | |
AAX_CString (const AAX_IString &other) | |
AAX_DEFAULT_MOVE_CTOR (AAX_CString) | |
std::string & | StdString () |
const std::string & | StdString () const |
AAX_CString & | operator= (const AAX_CString &other) |
AAX_CString & | operator= (const std::string &other) |
AAX_CString & | operator= (AAX_CString &&other) |
void | Clear () |
bool | Empty () const |
AAX_CString & | Erase (uint32_t pos, uint32_t n) |
AAX_CString & | Append (const AAX_CString &str) |
AAX_CString & | Append (const char *str) |
AAX_CString & | AppendNumber (double number, int32_t precision) |
AAX_CString & | AppendNumber (int32_t number) |
AAX_CString & | AppendHex (int32_t number, int32_t width) |
AAX_CString & | Insert (uint32_t pos, const AAX_CString &str) |
AAX_CString & | Insert (uint32_t pos, const char *str) |
AAX_CString & | InsertNumber (uint32_t pos, double number, int32_t precision) |
AAX_CString & | InsertNumber (uint32_t pos, int32_t number) |
AAX_CString & | InsertHex (uint32_t pos, int32_t number, int32_t width) |
AAX_CString & | Replace (uint32_t pos, uint32_t n, const AAX_CString &str) |
AAX_CString & | Replace (uint32_t pos, uint32_t n, const char *str) |
uint32_t | FindFirst (const AAX_CString &findStr) const |
uint32_t | FindFirst (const char *findStr) const |
uint32_t | FindFirst (char findChar) const |
uint32_t | FindLast (const AAX_CString &findStr) const |
uint32_t | FindLast (const char *findStr) const |
uint32_t | FindLast (char findChar) const |
const char * | CString () const |
bool | ToDouble (double *oValue) const |
bool | ToInteger (int32_t *oValue) const |
void | SubString (uint32_t pos, uint32_t n, AAX_IString *outputStr) const |
bool | Equals (const AAX_CString &other) const |
bool | Equals (const char *other) const |
bool | Equals (const std::string &other) const |
bool | operator== (const AAX_CString &other) const |
bool | operator== (const char *otherStr) const |
bool | operator== (const std::string &otherStr) const |
bool | operator!= (const AAX_CString &other) const |
bool | operator!= (const char *otherStr) const |
bool | operator!= (const std::string &otherStr) const |
bool | operator< (const AAX_CString &other) const |
bool | operator> (const AAX_CString &other) const |
const char & | operator[] (uint32_t index) const |
char & | operator[] (uint32_t index) |
AAX_CString & | operator+= (const AAX_CString &str) |
AAX_CString & | operator+= (const std::string &str) |
AAX_CString & | operator+= (const char *str) |
![]() | |
virtual | ~AAX_IString () |
Static Public Attributes | |
static const uint32_t | kInvalidIndex = static_cast<uint32_t>(-1) |
static const uint32_t | kMaxStringLength = static_cast<uint32_t>(-2) |
Protected Attributes | |
std::string | mString |
Friends | |
std::ostream & | operator<< (std::ostream &os, const AAX_CString &str) |
std::istream & | operator>> (std::istream &os, AAX_CString &str) |
AAX_CString::AAX_CString | ( | ) |
Constructs an empty string.
AAX_CString::AAX_CString | ( | const char * | str | ) |
Implicit conversion constructor: Constructs a string with a const char* pointer to copy.
|
explicit |
Copy constructor: Constructs a string from a std::string. Beware of STL variations across various binaries.
AAX_CString::AAX_CString | ( | const AAX_CString & | other | ) |
Copy constructor: Constructs a string with another concrete AAX_CString.
AAX_CString::AAX_CString | ( | const AAX_IString & | other | ) |
Copy constructor: Constructs a string from another string that meets the AAX_IString interface.
|
virtual |
Length methods
Implements AAX_IString.
Referenced by AAX_CBinaryDisplayDelegate< T >::AAX_CBinaryDisplayDelegate(), AAX_CStringAbbreviations::Add(), AAX_CStringAbbreviations::Get(), AAX_CDecibelDisplayDelegateDecorator< T >::StringToValue(), AAX_CPercentDisplayDelegateDecorator< T >::StringToValue(), AAX_CUnitDisplayDelegateDecorator< T >::StringToValue(), AAX_CUnitPrefixDisplayDelegateDecorator< T >::StringToValue(), AAX_CDecibelDisplayDelegateDecorator< T >::ValueToString(), AAX_CNumberDisplayDelegate< T, Precision, SpaceAfter >::ValueToString(), and AAX_CUnitDisplayDelegateDecorator< T >::ValueToString().
|
virtual |
Implements AAX_IString.
|
virtual |
C string methods
Implements AAX_IString.
Referenced by AAX::CopyPageTable(), AAX::PageTableParameterNameVariationsAreEqual(), and AAX_CParameter< T >::ShortenedName().
|
virtual |
Implements AAX_IString.
|
virtual |
Assignment operators
Implements AAX_IString.
|
virtual |
Implements AAX_IString.
AAX_CString::AAX_DEFAULT_MOVE_CTOR | ( | AAX_CString | ) |
Default move constructor
std::string& AAX_CString::StdString | ( | ) |
Direct access to a std::string.
const std::string& AAX_CString::StdString | ( | ) | const |
Direct access to a const std::string.
AAX_CString& AAX_CString::operator= | ( | const AAX_CString & | other | ) |
Assignment operator from another AAX_CString
AAX_CString& AAX_CString::operator= | ( | const std::string & | other | ) |
Assignment operator from a std::string. Beware of STL variations across various binaries.
AAX_CString& AAX_CString::operator= | ( | AAX_CString && | other | ) |
Move operator
void AAX_CString::Clear | ( | ) |
Referenced by AAX_CNumberDisplayDelegate< T, Precision, SpaceAfter >::ValueToString().
bool AAX_CString::Empty | ( | ) | const |
AAX_CString& AAX_CString::Erase | ( | uint32_t | pos, |
uint32_t | n | ||
) |
Referenced by AAX_CUnitPrefixDisplayDelegateDecorator< T >::StringToValue(), and AAX_CNumberDisplayDelegate< T, Precision, SpaceAfter >::ValueToString().
AAX_CString& AAX_CString::Append | ( | const AAX_CString & | str | ) |
Referenced by AAX_IMIDIMessageInfoDelegate::ToString_AppendByteRange(), AAX_IMIDIMessageInfoDelegate::ToString_AppendCStr(), AAX_CNumberDisplayDelegate< T, Precision, SpaceAfter >::ValueToString(), and AAX_CDecibelDisplayDelegateDecorator< T >::ValueToString().
AAX_CString& AAX_CString::Append | ( | const char * | str | ) |
AAX_CString& AAX_CString::AppendNumber | ( | double | number, |
int32_t | precision | ||
) |
Referenced by AAX_IMIDIMessageInfoDelegate::ToString_AppendNumber(), and AAX_CNumberDisplayDelegate< T, Precision, SpaceAfter >::ValueToString().
AAX_CString& AAX_CString::AppendNumber | ( | int32_t | number | ) |
AAX_CString& AAX_CString::AppendHex | ( | int32_t | number, |
int32_t | width | ||
) |
Referenced by AAX_IMIDIMessageInfoDelegate::ToString_AppendByteRange().
AAX_CString& AAX_CString::Insert | ( | uint32_t | pos, |
const AAX_CString & | str | ||
) |
AAX_CString& AAX_CString::Insert | ( | uint32_t | pos, |
const char * | str | ||
) |
AAX_CString& AAX_CString::InsertNumber | ( | uint32_t | pos, |
double | number, | ||
int32_t | precision | ||
) |
AAX_CString& AAX_CString::InsertNumber | ( | uint32_t | pos, |
int32_t | number | ||
) |
AAX_CString& AAX_CString::InsertHex | ( | uint32_t | pos, |
int32_t | number, | ||
int32_t | width | ||
) |
AAX_CString& AAX_CString::Replace | ( | uint32_t | pos, |
uint32_t | n, | ||
const AAX_CString & | str | ||
) |
AAX_CString& AAX_CString::Replace | ( | uint32_t | pos, |
uint32_t | n, | ||
const char * | str | ||
) |
uint32_t AAX_CString::FindFirst | ( | const AAX_CString & | findStr | ) | const |
uint32_t AAX_CString::FindFirst | ( | const char * | findStr | ) | const |
uint32_t AAX_CString::FindFirst | ( | char | findChar | ) | const |
uint32_t AAX_CString::FindLast | ( | const AAX_CString & | findStr | ) | const |
uint32_t AAX_CString::FindLast | ( | const char * | findStr | ) | const |
uint32_t AAX_CString::FindLast | ( | char | findChar | ) | const |
const char* AAX_CString::CString | ( | ) | const |
Referenced by AAX::CopyPageTable(), and AAX_CStatelessParameter::Identifier().
bool AAX_CString::ToDouble | ( | double * | oValue | ) | const |
Referenced by AAX_CNumberDisplayDelegate< T, Precision, SpaceAfter >::StringToValue().
bool AAX_CString::ToInteger | ( | int32_t * | oValue | ) | const |
void AAX_CString::SubString | ( | uint32_t | pos, |
uint32_t | n, | ||
AAX_IString * | outputStr | ||
) | const |
Referenced by AAX_CDecibelDisplayDelegateDecorator< T >::StringToValue(), AAX_CPercentDisplayDelegateDecorator< T >::StringToValue(), and AAX_CUnitDisplayDelegateDecorator< T >::StringToValue().
|
inline |
|
inline |
|
inline |
bool AAX_CString::operator== | ( | const AAX_CString & | other | ) | const |
bool AAX_CString::operator== | ( | const char * | otherStr | ) | const |
bool AAX_CString::operator== | ( | const std::string & | otherStr | ) | const |
bool AAX_CString::operator!= | ( | const AAX_CString & | other | ) | const |
bool AAX_CString::operator!= | ( | const char * | otherStr | ) | const |
bool AAX_CString::operator!= | ( | const std::string & | otherStr | ) | const |
bool AAX_CString::operator< | ( | const AAX_CString & | other | ) | const |
bool AAX_CString::operator> | ( | const AAX_CString & | other | ) | const |
const char& AAX_CString::operator[] | ( | uint32_t | index | ) | const |
char& AAX_CString::operator[] | ( | uint32_t | index | ) |
AAX_CString& AAX_CString::operator+= | ( | const AAX_CString & | str | ) |
AAX_CString& AAX_CString::operator+= | ( | const std::string & | str | ) |
AAX_CString& AAX_CString::operator+= | ( | const char * | str | ) |
|
friend |
output stream operator for concrete AAX_CString
|
friend |
input stream operator for concrete AAX_CString
|
static |
|
static |
|
protected |