|
@ -210,6 +210,22 @@ namespace Jupiter |
|
|
size_t aformat(const T *format, ...); |
|
|
size_t aformat(const T *format, ...); |
|
|
virtual size_t avformat(const T *format, va_list args) = 0; |
|
|
virtual size_t avformat(const T *format, va_list args) = 0; |
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* @brief Truncates the string by a specified number of elements. |
|
|
|
|
|
* |
|
|
|
|
|
* @param n Number of elements to remove from the tail. |
|
|
|
|
|
* @return New size of the String. |
|
|
|
|
|
*/ |
|
|
|
|
|
virtual size_t truncate(size_t n); |
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* @brief Removes the first instance of an element from the string. |
|
|
|
|
|
* |
|
|
|
|
|
* @param value Value of the element to remove. |
|
|
|
|
|
* @return True if an element was removed, false otherwise. |
|
|
|
|
|
*/ |
|
|
|
|
|
virtual bool remove(const T &value); |
|
|
|
|
|
|
|
|
/**
|
|
|
/**
|
|
|
* @brief Copies the data from the input string to the String. |
|
|
* @brief Copies the data from the input string to the String. |
|
|
* |
|
|
* |
|
@ -232,14 +248,6 @@ namespace Jupiter |
|
|
virtual size_t concat(const T *in) = 0; |
|
|
virtual size_t concat(const T *in) = 0; |
|
|
virtual size_t concat(const T in) = 0; |
|
|
virtual size_t concat(const T in) = 0; |
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
* @brief Truncates the string by a specified number of elements. |
|
|
|
|
|
* |
|
|
|
|
|
* @param n Number of elements to remove from the tail. |
|
|
|
|
|
* @return New size of the String. |
|
|
|
|
|
*/ |
|
|
|
|
|
virtual size_t truncate(size_t n) = 0; |
|
|
|
|
|
|
|
|
|
|
|
/** Access operator */ |
|
|
/** Access operator */ |
|
|
inline T &operator[](size_t index) { return Jupiter::String_Type<T>::get(index); }; |
|
|
inline T &operator[](size_t index) { return Jupiter::String_Type<T>::get(index); }; |
|
|
|
|
|
|
|
|