![]() |
ULIS
dev4.0.7
Utility Library for Imaging Systems
|
The FString class provides a simple dynamic string class. More...
Public Types | |
typedef char | char_type |
Public Member Functions | |
FString () | |
FString (const char_type *iStr) | |
FString (const FString &iStr) | |
FString (const FWString &iWStr) | |
FString (FString &&iStr) | |
~FString () | |
FString & | Append (char_type iChar) |
FString & | Append (const char_type *iStr) |
FString & | Append (const FString &iStr) |
char_type & | At (uint64 iIndex) |
const char_type & | At (uint64 iIndex) const |
char_type & | Back () |
const char_type & | Back () const |
uint64 | Capacity () const |
void | Clear () |
FString | Copy () const |
uint32 | CRC32 () const |
const char_type * | Data () const |
FString & | Erase (uint64 iPos, uint64 iCount) |
int64 | FindFirst (const FString &iStr) const |
int64 | FindFrom (uint64 iPos, const FString &iStr) const |
int64 | FindLast (const FString &iStr) const |
char_type & | Front () |
const char_type & | Front () const |
FString & | Insert (uint64 iPos, const FString &iStr) |
bool | IsEmpty () const |
bool | operator!= (const FString &iOther) const |
FString & | operator+= (const char_type *iOther) |
FString & | operator+= (const FString &iOther) |
FString & | operator= (const FString &iStr) |
FString & | operator= (FString &&iStr) |
bool | operator== (const FString &iOther) const |
char_type & | operator[] (uint64 iIndex) |
const char_type & | operator[] (uint64 iIndex) const |
FString & | Prepend (char_type iChar) |
FString & | Prepend (const char_type *iStr) |
FString & | Prepend (const FString &iStr) |
void | ReplaceAll (const FString &iA, const FString &iB) |
bool | ReplaceFirst (const FString &iA, const FString &iB) |
bool | ReplaceFrom (uint64 iPos, const FString &iA, const FString &iB) |
bool | ReplaceLast (const FString &iA, const FString &iB) |
void | Reserve (uint64 iCapacity) |
void | Resize (uint64 iSize, char_type iChar=char_type()) |
void | Shrink () |
uint64 | Size () const |
TArray< FString > | Split (const FString &iSep) const |
FString | SubString (uint64 iPos, uint64 iCount) const |
double | ToDouble () const |
float | ToFloat () const |
int | ToInt () const |
FString | ToLower () const |
unsigned int | ToUnsignedInt () const |
FString | ToUpper () const |
FWString | ToWString () const |
FString & | TransformLowerCase () |
FString & | TransformUpperCase () |
Static Public Member Functions | |
static FString | FromDouble (double iValue) |
static FString | FromFloat (float iValue) |
static FString | FromInt (int iValue) |
static FString | FromUnsignedInt (unsigned int iValue) |
static FString | FromWString (const FWString &iValue) |
The need of a custom FString class rose from the fact that std:: classes cannot be exported easily accross dll boundaries when ULIS is compiled as a shared library.
typedef char FString::char_type |
FString::~FString | ( | ) |
FString::FString | ( | ) |
FString::FString | ( | const char_type * | iStr | ) |
FString::FString | ( | const FString & | iStr | ) |
FString::FString | ( | FString && | iStr | ) |
FString::FString | ( | const FWString & | iWStr | ) |
char_type& FString::Back | ( | ) |
Access char_type at back.
const char_type& FString::Back | ( | ) | const |
Access const char_type at back.
uint64 FString::Capacity | ( | ) | const |
Returns the string capacity.
void FString::Clear | ( | ) |
Clear the string, deallocating everything.
FString FString::Copy | ( | ) | const |
uint32 FString::CRC32 | ( | ) | const |
const char_type* FString::Data | ( | ) | const |
Returns the const raw storage.
|
static |
|
static |
|
static |
|
static |
char_type& FString::Front | ( | ) |
Access char_type at front.
const char_type& FString::Front | ( | ) | const |
Access const char_type at front.
bool FString::IsEmpty | ( | ) | const |
Returns wether the array is empty or not.
bool FString::operator!= | ( | const FString & | iOther | ) | const |
bool FString::operator== | ( | const FString & | iOther | ) | const |
void FString::Reserve | ( | uint64 | iCapacity | ) |
Reserve some capacity for future usage, if iCapacity is bigger than the current capacity. If iCapacity is lower or equal to capacity, this function does nothing. This function might invalid the underlying buffer. The size doesn't change.
Resize the actual usage size of the container. This function might invalid the underlying buffer.
void FString::Shrink | ( | ) |
Shrink the capacity to fit the size. If the capacity is already the same as the size, the function does nothing. This function might invalid the underlying buffer. The size doesn't change.
uint64 FString::Size | ( | ) | const |
Returns the string size.
double FString::ToDouble | ( | ) | const |
float FString::ToFloat | ( | ) | const |
int FString::ToInt | ( | ) | const |
FString FString::ToLower | ( | ) | const |
unsigned int FString::ToUnsignedInt | ( | ) | const |
FString FString::ToUpper | ( | ) | const |
FWString FString::ToWString | ( | ) | const |
Convert to WString.
FString& FString::TransformLowerCase | ( | ) |
FString& FString::TransformUpperCase | ( | ) |