|
| string () |
| Constructor.
|
|
| string (const etl::string< MAX_SIZE_ > &other) |
|
| string (const etl::istring &other) |
|
| string (const etl::istring &other, size_t position, size_t length=npos) |
|
ETL_EXPLICIT_STRING_FROM_CHAR | string (const value_type *text) |
|
| string (const value_type *text, size_t count) |
|
| string (size_type count, value_type c) |
|
template<typename TIterator > |
| string (TIterator first, TIterator last, typename etl::enable_if<!etl::is_integral< TIterator >::value, int >::type=0) |
|
| string (const etl::string_view &view) |
|
etl::string< MAX_SIZE_ > | substr (size_type position=0, size_type length_=npos) const |
|
string & | operator= (const string &rhs) |
| Assignment operator.
|
|
string & | operator= (const istring &rhs) |
| Assignment operator.
|
|
string & | operator= (const value_type *text) |
| Assignment operator.
|
|
string & | operator= (const etl::string_view &view) |
| Assignment operator.
|
|
void | repair () |
| Fix the internal pointers after a low level memory copy.
|
|
iterator | begin () |
|
const_iterator | begin () const |
|
iterator | end () |
|
const_iterator | end () const |
|
const_iterator | cbegin () const |
|
const_iterator | cend () const |
|
reverse_iterator | rbegin () |
|
const_reverse_iterator | rbegin () const |
|
reverse_iterator | rend () |
|
const_reverse_iterator | rend () const |
|
const_reverse_iterator | crbegin () const |
|
const_reverse_iterator | crend () const |
|
void | resize (size_type new_size) |
|
void | resize (size_type new_size, T value) |
|
template<typename TOperation > |
void | resize_and_overwrite (size_type new_size, TOperation operation) |
| Resizes the string and overwrites to data using the operation.
|
|
void | uninitialized_resize (size_type new_size) |
|
void | fill (T value) |
|
reference | operator[] (size_type i) |
|
const_reference | operator[] (size_type i) const |
|
reference | at (size_type i) |
|
const_reference | at (size_type i) const |
|
reference | front () |
|
const_reference | front () const |
|
reference | back () |
|
const_reference | back () const |
|
pointer | data () |
|
ETL_CONSTEXPR const_pointer | data () const |
|
pointer | data_end () |
|
const_pointer | data_end () const |
|
void | assign (const etl::ibasic_string< T > &other) |
|
void | assign (const etl::ibasic_string< T > &other, size_type subposition, size_type sublength) |
|
template<typename TIterator > |
void | assign (TIterator first, TIterator last) |
|
void | assign (const_pointer text) |
|
void | assign (const_pointer text, size_type length_) |
|
template<typename TOtherTraits > |
void | assign (const etl::basic_string_view< T, TOtherTraits > &view) |
| Assigns values to the string from a view.
|
|
void | assign (size_type n, T value) |
|
void | clear () |
| Clears the string.
|
|
void | push_back (T value) |
|
void | pop_back () |
|
ibasic_string & | append (const ibasic_string &str) |
|
ibasic_string & | append (const ibasic_string &str, size_type subposition, size_type sublength=npos) |
|
ibasic_string & | append (const T *str) |
|
ibasic_string & | append (const T *str, size_type n) |
|
ibasic_string & | append (size_type n, T c) |
|
template<class TIterator > |
ibasic_string & | append (TIterator first, TIterator last) |
|
template<typename TOtherTraits > |
ibasic_string & | append (const etl::basic_string_view< T, TOtherTraits > &view) |
|
iterator | insert (const_iterator position, T value) |
|
iterator | insert (const_iterator position, size_type n, T value) |
|
template<typename TIterator > |
iterator | insert (const_iterator position, TIterator first, TIterator last) |
|
template<typename TOtherTraits > |
iterator | insert (const_iterator position, const etl::basic_string_view< T, TOtherTraits > &view) |
|
etl::ibasic_string< T > & | insert (size_type position, const etl::ibasic_string< T > &str) |
|
template<typename TOtherTraits > |
etl::ibasic_string< T > & | insert (size_type position, const etl::basic_string_view< T, TOtherTraits > &view) |
|
etl::ibasic_string< T > & | insert (size_type position, const etl::ibasic_string< T > &str, size_type subposition, size_type sublength) |
|
template<typename TOtherTraits > |
etl::ibasic_string< T > & | insert (size_type position, const etl::basic_string_view< T, TOtherTraits > &view, size_type subposition, size_type sublength) |
|
etl::ibasic_string< T > & | insert (size_type position, const_pointer s) |
|
etl::ibasic_string< T > & | insert (size_type position, const_pointer s, size_type n) |
|
etl::ibasic_string< T > & | insert (size_type position, size_type n, value_type c) |
|
etl::ibasic_string< T > & | erase (size_type position, size_type length_=npos) |
|
iterator | erase (iterator i_element) |
|
iterator | erase (const_iterator i_element) |
|
iterator | erase (const_iterator first, const_iterator last) |
|
const_pointer | c_str () const |
| Return a pointer to a C string.
|
|
size_type | copy (pointer dest, size_type count, size_type pos=0) const |
|
size_type | find (const ibasic_string< T > &str, size_type pos=0) const |
|
template<typename TOtherTraits > |
size_type | find (const etl::basic_string_view< T, TOtherTraits > &view, size_type pos=0) const |
|
size_type | find (const_pointer s, size_type pos=0) const |
|
size_type | find (const_pointer s, size_type pos, size_type n) const |
|
size_type | find (T c, size_type position=0) const |
|
size_type | rfind (const ibasic_string< T > &str, size_type position=npos) const |
|
template<typename TOtherTraits > |
size_type | rfind (const etl::basic_string_view< T, TOtherTraits > &view, size_type pos=0) const |
|
size_type | rfind (const_pointer s, size_type position=npos) const |
|
size_type | rfind (const_pointer s, size_type position, size_type length_) const |
|
size_type | rfind (T c, size_type position=npos) const |
|
bool | contains (const etl::ibasic_string< T > &str) const |
| Checks that the string is within this string.
|
|
template<typename TOtherTraits > |
bool | contains (const etl::basic_string_view< T, TOtherTraits > &view) const |
| Checks that the view is within this string.
|
|
bool | contains (const_pointer s) const |
| Checks that text is within this string.
|
|
bool | contains (value_type c) const |
| Checks that character is within this string.
|
|
bool | starts_with (const etl::ibasic_string< T > &str) const |
| Checks that the string is the start of this string.
|
|
template<typename TOtherTraits > |
bool | starts_with (const etl::basic_string_view< T, TOtherTraits > &view) const |
| Checks that the view is the start of this string.
|
|
bool | starts_with (const_pointer s) const |
| Checks that the string is the start of this string.
|
|
bool | starts_with (value_type c) const |
| Checks that the character is the start of this string.
|
|
bool | ends_with (const etl::ibasic_string< T > &str) const |
| Checks that the string is the end of this string.
|
|
template<typename TOtherTraits > |
bool | ends_with (const etl::basic_string_view< T, TOtherTraits > &view) const |
| Checks that the view is the end of this string.
|
|
bool | ends_with (const_pointer s) const |
| Checks that the string is the end of this string.
|
|
bool | ends_with (value_type c) const |
| Checks that the character is the end of this string.
|
|
ibasic_string & | replace (size_type position, size_type length_, const ibasic_string &str) |
|
template<typename TOtherTraits > |
ibasic_string & | replace (size_type position, size_type length_, const etl::basic_string_view< T, TOtherTraits > &view) |
|
ibasic_string & | replace (const_iterator first, const_iterator last, const ibasic_string &str) |
|
template<typename TOtherTraits > |
ibasic_string & | replace (const_iterator first, const_iterator last, const etl::basic_string_view< T, TOtherTraits > &view) |
|
ibasic_string & | replace (size_type position, size_type length_, const ibasic_string &str, size_type subposition, size_type sublength) |
| Replace characters from 'position' of 'length' with 'str' from 'subposition' of 'sublength'.
|
|
template<typename TOtherTraits > |
ibasic_string & | replace (size_type position, size_type length_, const etl::basic_string_view< T, TOtherTraits > &view, size_type subposition, size_type sublength) |
| Replace characters from 'position' of 'length' with 'view' from 'subposition' of 'sublength'.
|
|
ibasic_string & | replace (size_type position, size_type length_, const_pointer s) |
| Replace characters from 'position' of 'length' with pointed to string.
|
|
ibasic_string & | replace (const_iterator first, const_iterator last, const_pointer s) |
| Replace characters from 'first' 'last' with pointed to string.
|
|
ibasic_string & | replace (size_type position, size_type length_, const_pointer s, size_type n) |
| Replace characters from 'position' of 'length' with 'n' characters from pointed to string.
|
|
ibasic_string & | replace (const_iterator first, const_iterator last, const_pointer s, size_type n) |
| Replace characters from 'first' to 'last' with 'n' characters from pointed to string.
|
|
ibasic_string & | replace (size_type position, size_type length_, size_type n, value_type c) |
| Replace characters from 'position' of 'length' with 'n' copies of 'c'.
|
|
ibasic_string & | replace (const_iterator first, const_iterator last, size_type n, value_type c) |
| Replace characters from 'first' of 'last' with 'n' copies of 'c'.
|
|
template<typename TIterator > |
ibasic_string & | replace (const_iterator first, const_iterator last, TIterator first_replace, TIterator last_replace) |
| Replace characters from 'first' of 'last' with characters from 'first_replace' to 'last_replace'.
|
|
int | compare (const ibasic_string &str) const |
| Compare with string.
|
|
template<typename TOtherTraits > |
int | compare (const etl::basic_string_view< T, TOtherTraits > &view) const |
| Compare with etl::basic_string_view.
|
|
int | compare (size_type position, size_type length_, const ibasic_string &str) const |
| Compare position / length with string.
|
|
template<typename TOtherTraits > |
int | compare (size_type position, size_type length_, const etl::basic_string_view< T, TOtherTraits > &view) const |
| Compare position / length with etl::basic_string_view.
|
|
int | compare (size_type position, size_type length_, const ibasic_string &str, size_type subposition, size_type sublength) const |
| Compare position / length with string / subposition / sublength.
|
|
template<typename TOtherTraits > |
int | compare (size_type position, size_type length_, const etl::basic_string_view< T, TOtherTraits > &view, size_type subposition, size_type sublength) const |
| Compare position / length with etl::basic_string_view. / subposition / sublength.
|
|
int | compare (const value_type *s) const |
| Compare with C string.
|
|
int | compare (size_type position, size_type length_, const_pointer s) const |
| Compare position / length with C string.
|
|
int | compare (size_type position, size_type length_, const_pointer s, size_type n) const |
| Compare position / length with C string / n.
|
|
size_type | find_first_of (const ibasic_string< T > &str, size_type position=0) const |
|
size_type | find_first_of (const_pointer s, size_type position=0) const |
|
template<typename TOtherTraits > |
size_type | find_first_of (const etl::basic_string_view< T, TOtherTraits > &view, size_type position=0) const |
|
size_type | find_first_of (const_pointer s, size_type position, size_type n) const |
|
size_type | find_first_of (value_type c, size_type position=0) const |
|
size_type | find_last_of (const ibasic_string< T > &str, size_type position=npos) const |
|
size_type | find_last_of (const_pointer s, size_type position=npos) const |
|
template<typename TOtherTraits > |
size_type | find_last_of (const etl::basic_string_view< T, TOtherTraits > &view, size_type position=npos) const |
|
size_type | find_last_of (const_pointer s, size_type position, size_type n) const |
|
size_type | find_last_of (value_type c, size_type position=npos) const |
|
size_type | find_first_not_of (const ibasic_string< T > &str, size_type position=0) const |
|
size_type | find_first_not_of (const_pointer s, size_type position=0) const |
|
template<typename TOtherTraits > |
size_type | find_first_not_of (const etl::basic_string_view< T, TOtherTraits > &view, size_type position=0) const |
|
size_type | find_first_not_of (const_pointer s, size_type position, size_type n) const |
|
size_type | find_first_not_of (value_type c, size_type position=0) const |
|
size_type | find_last_not_of (const ibasic_string< T > &str, size_type position=npos) const |
|
size_type | find_last_not_of (const_pointer s, size_type position=npos) const |
|
template<typename TOtherTraits > |
size_type | find_last_not_of (const etl::basic_string_view< T, TOtherTraits > &view, size_type position=npos) const |
|
size_type | find_last_not_of (const_pointer s, size_type position, size_type n) const |
|
size_type | find_last_not_of (value_type c, size_type position=npos) const |
|
ibasic_string & | operator= (const ibasic_string &rhs) |
| Assignment operator.
|
|
ibasic_string & | operator= (const_pointer rhs) |
| Assignment operator.
|
|
template<typename TOtherTraits > |
ibasic_string & | operator= (const etl::basic_string_view< T, TOtherTraits > &view) |
| Assignment operator.
|
|
ibasic_string & | operator+= (const ibasic_string &rhs) |
| += operator.
|
|
template<typename TOtherTraits > |
ibasic_string & | operator+= (const etl::basic_string_view< T, TOtherTraits > &rhs) |
| += operator.
|
|
ibasic_string & | operator+= (const_pointer rhs) |
| += operator.
|
|
ibasic_string & | operator+= (T rhs) |
| += operator.
|
|
void | initialize_free_space () |
| Clears the free space to string terminator value.
|
|
void | trim_to_terminator () |
|
size_type | size () const |
|
size_type | length () const |
|
bool | empty () const |
|
bool | full () const |
|
size_type | capacity () const |
|
size_type | max_size () const |
|
size_type | available () const |
|
ETL_DEPRECATED bool | truncated () const |
|
bool | is_truncated () const |
|
void | clear_truncated () |
| Clears the 'truncated' flag.
|
|
void | set_secure () |
| Sets the 'secure' flag to the requested state.
|
|
bool | is_secure () const |
| Gets the 'secure' state flag.
|
|
template<
size_t MAX_SIZE_>
class etl::string< MAX_SIZE_ >
A string implementation that uses a fixed size buffer.
- Template Parameters
-
MAX_SIZE_ | The maximum number of elements that can be stored. |