var::String
Types
#
Baseusing var::String::Base = StringView::Base
Type: StringView::Base
#
const_iteratorusing var::String::const_iterator = typename std::string::const_iterator
Type: typename std::string::const_iterator
#
const_reverse_iteratorusing var::String::const_reverse_iterator = typename std::string::const_reverse_iterator
Type: typename std::string::const_reverse_iterator
#
iteratorusing var::String::iterator = typename std::string::iterator
Type: typename std::string::iterator
#
Replaceusing var::String::Replace = ReplaceString
Type: ReplaceString
#
reverse_iteratorusing var::String::reverse_iterator = typename std::string::reverse_iterator
Type: typename std::string::reverse_iterator
Static Attributes
#
nposconstexpr static size_t var::String::npos
Type: constexpr static size_t
Friends
#
StringViewfriend class StringView
Type: class
Parameters:
Functions
#
String()=defaultvar::String::String ()=default
#
String(const char *s)inline
explicit
var::String::String (const char *s)
#
String(const char *s, size_t length)inline
var::String::String (const char *s, size_t length)
#
String(const Data &data)explicit
var::String::String (const Data &data)
#
String(const std::string &a)inline
explicit
var::String::String (const std::string &a)
#
String(const String &s)inline
var::String::String (const String &s)
#
String(const var::View &item)explicit
var::String::String (const var::View &item)
#
String(size_t length, char c)inline
var::String::String (size_t length, char c)
#
String(std::initializer_list< char > il)inline
var::String::String (std::initializer_list< char > il)
#
String(std::string &&s)inline
explicit
var::String::String (std::string &&s)
#
String(String &&s) noexceptinline
var::String::String (String &&s) noexcept
#
String(StringView s)inline
explicit
var::String::String (StringView s)
#
append(const StringView &a)inline
String & var::String::append (const StringView &a)
Type: String &
Parameters:
- const StringView &
a
#
at(size_t pos)inline
char & var::String::at (size_t pos)
Type: char &
Parameters:
size_t
pos
#
at(size_t pos) constinline
const char & var::String::at (size_t pos) const
Type: const char &
Parameters:
size_t
pos
#
back()inline
char & var::String::back ()
Type: char &
#
back() constinline
const char & var::String::back () const
Type: const char &
#
begin() const noexceptinline
const_iterator var::String::begin () const noexcept
Type: const_iterator
#
begin() noexceptinline
iterator var::String::begin () noexcept
Type: iterator
#
capacity() constinline
u32 var::String::capacity () const
Type: u32
#
cbegin() const noexceptinline
const_iterator var::String::cbegin () const noexcept
Type: const_iterator
#
cend() const noexceptinline
const_iterator var::String::cend () const noexcept
Type: const_iterator
#
clear()inline
String & var::String::clear ()
Type: String &
#
compare(const String &string_to_compare) constinline
int var::String::compare (const String &string_to_compare) const
Type: int
Parameters:
- const String &
string_to_compare
#
compare(const String &string_to_compare, const Compare &options) constinline
int var::String::compare (const String &string_to_compare, const Compare &options) const
Type: int
Parameters:
#
count(var::StringView to_count) constsize_t var::String::count (var::StringView to_count) const
Type: size_t
Parameters:
- var::StringView
to_count
#
crbegin() const noexceptinline
const_reverse_iterator var::String::crbegin () const noexcept
Type: const_reverse_iterator
#
crend() const noexceptinline
const_reverse_iterator var::String::crend () const noexcept
Type: const_reverse_iterator
#
cstring() constinline
const char * var::String::cstring () const
Type: const char *
#
end() const noexceptinline
const_iterator var::String::end () const noexcept
Type: const_iterator
#
end() noexceptinline
iterator var::String::end () noexcept
Type: iterator
#
erase(const Erase &options)inline
String & var::String::erase (const Erase &options)
Type: String &
Parameters:
- const Erase &
options
#
erase(StringView string_to_erase, size_t position=0)String & var::String::erase (StringView string_to_erase, size_t position=0)
Type: String &
Parameters:
- StringView
string_to_erase
size_t
position
#
format(const char *format,...)String & var::String::format (const char *format,...)
Type: String &
Parameters:
const char *
format
...
#
free()inline
String & var::String::free ()
Type: String &
#
front()inline
char & var::String::front ()
Type: char &
#
front() constinline
const char & var::String::front () const
Type: const char &
#
insert(const StringView string_to_insert, const Insert &options)inline
String & var::String::insert (const StringView string_to_insert, const Insert &options)
Type: String &
Parameters:
- const StringView
string_to_insert
- const Insert &
options
#
is_empty() constinline
bool var::String::is_empty () const
Type: bool
#
length() constinline
size_t var::String::length () const
Type: size_t
#
length_signed() constinline
ssize_t var::String::length_signed () const
Type: ssize_t
#
operator!=(const char *a) constinline
bool var::String::operator!= (const char *a) const
Type: bool
Parameters:
const char *
a
#
operator!=(const String &a) constinline
bool var::String::operator!= (const String &a) const
Type: bool
Parameters:
- const String &
a
#
operator!=(StringView a) constinline
bool var::String::operator!= (StringView a) const
Type: bool
Parameters:
#
operator()(const Erase &options)inline
String & var::String::operator() (const Erase &options)
Type: String &
Parameters:
- const Erase &
options
#
operator()(const Replace &options)inline
String & var::String::operator() (const Replace &options)
Type: String &
Parameters:
- const Replace &
options
#
operator()(const StringView string_to_insert, const Insert &options)inline
String & var::String::operator() (const StringView string_to_insert, const Insert &options)
Type: String &
Parameters:
- const StringView
string_to_insert
- const Insert &
options
#
operator*(u32 a) constinline
String var::String::operator* (u32 a) const
Type: String
Parameters:
u32
a
#
operator*=(u32 a)inline
String & var::String::operator*= (u32 a)
Type: String &
Parameters:
u32
a
#
operator+(char rhs) constinline
String var::String::operator+ (char rhs) const
Type: String
Parameters:
char
rhs
#
operator+(const String &rhs) constinline
String var::String::operator+ (const String &rhs) const
Type: String
Parameters:
- const String &
rhs
#
operator+(String &&rhs) constinline
String var::String::operator+ (String &&rhs) const
Type: String
Parameters:
- String &&
rhs
#
operator+=(char a)inline
String & var::String::operator+= (char a)
Type: String &
Parameters:
char
a
#
operator+=(const String &a)inline
String & var::String::operator+= (const String &a)
Type: String &
Parameters:
- const String &
a
#
operator+=(std::initializer_list< char > il)inline
String & var::String::operator+= (std::initializer_list< char > il)
Type: String &
Parameters:
std::initializer_list< char >
il
#
operator+=(StringView a)inline
String & var::String::operator+= (StringView a)
Type: String &
Parameters:
#
operator<(const String &a) constinline
bool var::String::operator< (const String &a) const
Type: bool
Parameters:
- const String &
a
#
operator<=(const String &a) constinline
bool var::String::operator<= (const String &a) const
Type: bool
Parameters:
- const String &
a
#
operator=(char c)inline
String & var::String::operator= (char c)
Type: String &
Parameters:
char
c
#
operator=(const char *s)inline
String & var::String::operator= (const char *s)
Type: String &
Parameters:
const char *
s
#
operator=(const String &s)inline
String & var::String::operator= (const String &s)
Type: String &
Parameters:
- const String &
s
#
operator==(const char *a) constinline
bool var::String::operator== (const char *a) const
Type: bool
Parameters:
const char *
a
#
operator==(const String &a) constinline
bool var::String::operator== (const String &a) const
Type: bool
Parameters:
- const String &
a
#
operator==(StringView a) constinline
bool var::String::operator== (StringView a) const
Type: bool
Parameters:
#
operator>(const String &a) constinline
bool var::String::operator> (const String &a) const
Type: bool
Parameters:
- const String &
a
#
operator>=(const String &a) constinline
bool var::String::operator>= (const String &a) const
Type: bool
Parameters:
- const String &
a
#
pop_back(size_t pop_size=1)inline
String & var::String::pop_back (size_t pop_size=1)
Type: String &
Parameters:
size_t
pop_size
#
pop_front(size_t pop_size=1)inline
String & var::String::pop_front (size_t pop_size=1)
Type: String &
Parameters:
size_t
pop_size
#
push_back(char a)inline
String & var::String::push_back (char a)
Type: String &
Parameters:
char
a
#
rbegin() const noexceptinline
const_reverse_iterator var::String::rbegin () const noexcept
Type: const_reverse_iterator
#
rbegin() noexceptinline
reverse_iterator var::String::rbegin () noexcept
Type: reverse_iterator
#
rend() const noexceptinline
const_reverse_iterator var::String::rend () const noexcept
Type: const_reverse_iterator
#
rend() noexceptinline
reverse_iterator var::String::rend () noexcept
Type: reverse_iterator
#
replace(const Replace &options)String & var::String::replace (const Replace &options)
Type: String &
Parameters:
- const Replace &
options
#
reserve(size_t size)inline
String & var::String::reserve (size_t size)
Type: String &
Parameters:
size_t
size
#
resize(size_t size)inline
String & var::String::resize (size_t size)
Type: String &
Parameters:
size_t
size
#
split(StringView delimiter) constStringViewList var::String::split (StringView delimiter) const
Type: StringViewList
Parameters:
- StringView
delimiter
#
string_view() constinline
StringView var::String::string_view () const
Type: StringView
#
to_char()inline
char * var::String::to_char ()
Type: char *
#
to_float() constfloat var::String::to_float () const
Type: float
#
to_integer() constinline
int var::String::to_integer () const
Type: int
#
to_long(Base base=Base::decimal) constinline
long var::String::to_long (Base base=Base::decimal) const
Type: long
Parameters:
- Base
base
#
to_lower()String & var::String::to_lower ()
Type: String &
#
to_unsigned_long(Base base=Base::decimal) constinline
unsigned long var::String::to_unsigned_long (Base base=Base::decimal) const
Type: unsigned long
Parameters:
- Base
base
#
to_upper()String & var::String::to_upper ()
Type: String &
#
vformat(const char *fmt, va_list list)String & var::String::vformat (const char *fmt, va_list list)
Type: String &
Parameters:
const char *
fmt
va_list
list
Static Functions
#
empty_string()inline
static const String & var::String::empty_string ()
Type: const String &