![]() |
AAX SDK
2.1.1
Avid Audio Extensions Development Kit
|
#include <AAX_CString.h>


A generic AAX string class with similar functionality to std::string.
Public Member Functions | |
| virtual uint32_t | Length () const |
| virtual uint32_t | MaxLength () const |
| virtual const char * | Get () const |
| virtual void | Set (const char *iString) |
| virtual AAX_IString & | operator= (const AAX_IString &iOther) |
| virtual AAX_IString & | operator= (const char *iString) |
| 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) | |
| std::string & | StdString () |
| const std::string & | StdString () const |
| AAX_CString & | operator= (const AAX_CString &other) |
| AAX_CString & | operator= (const std::string &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 & | 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 & | 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 | 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 char *str) |
Public Member Functions inherited from AAX_IString | |
| 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_CParameter< T >::AddShortenedName(), AAX_CUnitDisplayDelegateDecorator< T >::StringToValue(), AAX_CDecibelDisplayDelegateDecorator< T >::StringToValue(), AAX_CPercentDisplayDelegateDecorator< T >::StringToValue(), AAX_CUnitPrefixDisplayDelegateDecorator< T >::StringToValue(), AAX_CNumberDisplayDelegate< T, Precision, SpaceAfter >::ValueToString(), AAX_CUnitDisplayDelegateDecorator< T >::ValueToString(), and AAX_CDecibelDisplayDelegateDecorator< T >::ValueToString().

|
virtual |
Implements AAX_IString.
|
virtual |
C string methods
Implements AAX_IString.
|
virtual |
Implements AAX_IString.
|
virtual |
Assignment operators
Implements AAX_IString.
|
virtual |
Implements AAX_IString.
| 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. This is kind of required or the compiler will make one for us.
| AAX_CString& AAX_CString::operator= | ( | const std::string & | other | ) |
Assignment operator from a std::string. Beware of STL variations across various binaries.
| 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_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_CNumberDisplayDelegate< T, Precision, SpaceAfter >::ValueToString().

| AAX_CString& AAX_CString::AppendNumber | ( | int32_t | number | ) |
| 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::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 |
| 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_CUnitDisplayDelegateDecorator< T >::StringToValue(), AAX_CDecibelDisplayDelegateDecorator< T >::StringToValue(), and AAX_CPercentDisplayDelegateDecorator< T >::StringToValue().

| 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 char * | str | ) |
|
friend |
output stream operator for concrete AAX_CString
|
friend |
input stream operator for concrete AAX_CString
|
static |
|
static |
|
protected |
1.8.5