A string with fixed length.
|
Public Member Functions |
|
| pgDefineException (ExceptionOutOfRange) |
|
| pgStr () |
| | Constructs and initializes a pgStr whose length is zero.
|
| | pgStr (T ch) |
| | Constructs and initializes a pgStr from the specified character.
|
| | pgStr (const T *str) |
| | Constructs and initializes a pgStr from the specified string.
|
| | pgStr (const pgStr< T, N > &str) |
| | Constructs and initializes a pgStr from the specified pgStr.
|
| template<u8 N2> |
| | pgStr (const pgStr< T, N2 > &str) |
| | Constructs and initializes a pgStr from the specified pgStr with different length.
|
| pgStr< T, N > & | operator= (T ch) |
| | Assigns the right hand side character to this pgStr.
|
| pgStr< T, N > & | operator= (const T *str) |
| | Assigns the right hand side string to this pgStr.
|
| pgStr< T, N > & | operator= (const pgStr< T, N > &str) |
| | Assigns the right hand side pgStr to this pgStr.
|
| template<u8 N2> |
| pgStr< T, N > & | operator= (const pgStr< T, N2 > &str) |
| | Assigns the right hand side pgStr with different length to this pgStr.
|
| bool | operator== (T ch) const |
| | Returns whether this pgStr is equal to the right hand side character.
|
| bool | operator== (const T *str) const |
| | Returns whether this pgStr is equal to the right hand side string.
|
| template<u8 N2> |
| bool | operator== (const pgStr< T, N2 > &str) const |
| | Returns whether this pgStr is equal to the right hand side pgStr with different length.
|
| bool | operator!= (T ch) const |
| | Returns whether this pgStr is unequal to the right hand side character.
|
| bool | operator!= (const T *str) const |
| | Returns whether this pgStr is unequal to the right hand side string.
|
| template<u8 N2> |
| bool | operator!= (const pgStr< T, N2 > &str) const |
| | Returns whether this pgStr is unequal to the right hand side pgStr with different length.
|
| T & | operator[] (u8 index) |
| | Returns a reference to the character of this pgStr at the position specified by the parameter index.
|
| pgStr< T, N > | operator+ (T ch) const |
| | Returns a pgStr which is the concatenation of this pgStr and the right hand side character.
|
| pgStr< T, N > | operator+ (const T *str) const |
| | Returns a pgStr which is the concatenation of this pgStr and the right hand side string.
|
| template<u8 N2> |
| pgStr< T, N > | operator+ (const pgStr< T, N2 > &str) const |
| | Returns a pgStr which is the concatenation of this pgStr and the right hand side pgStr width differenct length.
|
| void | operator+= (T ch) |
| | Concatenates the right hand side character to the end of this pgStr.
|
| void | operator+= (const T *str) |
| | Concatenates the right hand side string to the end of this pgStr.
|
| template<u8 N2> |
| void | operator+= (const pgStr< T, N2 > &str) |
| | Concatenates the right hand side pgStr with different length to the end of this pgStr.
|
| u32 | operator% (u32 n) const |
| | Returns a hash value which is less than the specified value.
|
| const T * | getString () const |
| | Returns the pointer to the c-string of this pgStr.
|
| u8 | getLength () const |
| | Returns the length of this pgStr.
|
| pgStr< T, N > | getSubStr (u8 index, u8 length=0) const |
| | Returns the extracted pgStr from this pgStr in the specified range.
|
A string with fixed length.