This is the documentation for Enlighten.
class Geo GeoFixedString
template<typename T, s32>
class Geo::GeoFixedString
This is a simple string class template that always uses a fixed amount of memory for a single string.
If you attempt to set a longer string to it it'll simply crop it. FOR BACKWARDS COMPATABILITY ONLY. Given the lack of utility provided, you are much
better off with a proper resizing string, so use GeoString!
Typedefs
Name | Description |
|---|---|
T CharType | Make the template parameters visible properties, so users can create local objects to match. |
Variables
Name | Description |
|---|---|
const s32 MaxStringLength = MSL | Make the template parameters visible properties, so users can create local objects to match. |
Functions
Name | Description |
|---|---|
Destructor. | |
Clear the string. | |
This will remove the string beyond and including the last character specified if there is one. | |
This will remove the string up to and including the last character specified if there is one. | |
Returns true if the string is empty. | |
Creates a new string of this format from a narrow string. | |
Default constructor. | |
Explicit constructor from a raw C string. | |
Constructor with raw string and fixed termination point. | |
Copy constructor. | |
Returns a const raw pointer to the string. | |
Returns the length of the string. | |
Returns the maximum length string this object can store. | |
Comparison (required to use strings as keys in a map). | |
Returns a new narrow string from this one. |
Geo::GeoFixedString< T, MSL >::~GeoFixedString
public: ~GeoFixedString()
Destructor.
void Geo::GeoFixedString< T, MSL >::Clear
public: void Clear()
Clear the string.