Skip to main content

var::String

Types

Base#

using var::String::Base =  StringView::Base 

Type: StringView::Base

const_iterator#

using var::String::const_iterator =  typename std::string::const_iterator 

Type: typename std::string::const_iterator

const_reverse_iterator#

using var::String::const_reverse_iterator =  typename std::string::const_reverse_iterator 

Type: typename std::string::const_reverse_iterator

iterator#

using var::String::iterator =  typename std::string::iterator 

Type: typename std::string::iterator

Replace#

using var::String::Replace =  ReplaceString 

Type: ReplaceString

reverse_iterator#

using var::String::reverse_iterator =  typename std::string::reverse_iterator 

Type: typename std::string::reverse_iterator

Static Attributes

npos#

constexpr static size_t var::String::npos 

Type: constexpr static size_t

Friends

StringView#

friend class StringView 

Type: class

Parameters:

Functions

String()=default#

var::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) noexcept#

inline

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:

at(size_t pos)#

inline

char & var::String::at (size_t pos)

Type: char &

Parameters:

  • size_t pos

at(size_t pos) const#

inline

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() const#

inline

const char & var::String::back () const

Type: const char &

begin() const noexcept#

inline

const_iterator var::String::begin () const noexcept

Type: const_iterator

begin() noexcept#

inline

iterator var::String::begin () noexcept

Type: iterator

capacity() const#

inline

u32 var::String::capacity () const

Type: u32

cbegin() const noexcept#

inline

const_iterator var::String::cbegin () const noexcept

Type: const_iterator

cend() const noexcept#

inline

const_iterator var::String::cend () const noexcept

Type: const_iterator

clear()#

inline

String & var::String::clear ()

Type: String &

compare(const String &string_to_compare) const#

inline

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) const#

inline

int var::String::compare (const String &string_to_compare, const Compare &options) const

Type: int

Parameters:

count(var::StringView to_count) const#

size_t var::String::count (var::StringView to_count) const

Type: size_t

Parameters:

crbegin() const noexcept#

inline

const_reverse_iterator var::String::crbegin () const noexcept

Type: const_reverse_iterator

crend() const noexcept#

inline

const_reverse_iterator var::String::crend () const noexcept

Type: const_reverse_iterator

cstring() const#

inline

const char * var::String::cstring () const

Type: const char *

end() const noexcept#

inline

const_iterator var::String::end () const noexcept

Type: const_iterator

end() noexcept#

inline

iterator var::String::end () noexcept

Type: iterator

erase(const Erase &options)#

inline

String & var::String::erase (const Erase &options)

Type: String &

Parameters:

erase(StringView string_to_erase, size_t position=0)#

String & var::String::erase (StringView string_to_erase, size_t position=0)

Type: String &

Parameters:

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() const#

inline

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:

is_empty() const#

inline

bool var::String::is_empty () const

Type: bool

length() const#

inline

size_t var::String::length () const

Type: size_t

length_signed() const#

inline

ssize_t var::String::length_signed () const

Type: ssize_t

operator!=(const char *a) const#

inline

bool var::String::operator!= (const char *a) const

Type: bool

Parameters:

  • const char * a

operator!=(const String &a) const#

inline

bool var::String::operator!= (const String &a) const

Type: bool

Parameters:

operator!=(StringView a) const#

inline

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:

operator()(const Replace &options)#

inline

String & var::String::operator() (const Replace &options)

Type: String &

Parameters:

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:

operator*(u32 a) const#

inline

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) const#

inline

String var::String::operator+ (char rhs) const

Type: String

Parameters:

  • char rhs

operator+(const String &rhs) const#

inline

String var::String::operator+ (const String &rhs) const

Type: String

Parameters:

operator+(String &&rhs) const#

inline

String var::String::operator+ (String &&rhs) const

Type: String

Parameters:

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:

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) const#

inline

bool var::String::operator< (const String &a) const

Type: bool

Parameters:

operator<=(const String &a) const#

inline

bool var::String::operator<= (const String &a) const

Type: bool

Parameters:

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:

operator==(const char *a) const#

inline

bool var::String::operator== (const char *a) const

Type: bool

Parameters:

  • const char * a

operator==(const String &a) const#

inline

bool var::String::operator== (const String &a) const

Type: bool

Parameters:

operator==(StringView a) const#

inline

bool var::String::operator== (StringView a) const

Type: bool

Parameters:

operator>(const String &a) const#

inline

bool var::String::operator> (const String &a) const

Type: bool

Parameters:

operator>=(const String &a) const#

inline

bool var::String::operator>= (const String &a) const

Type: bool

Parameters:

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 noexcept#

inline

const_reverse_iterator var::String::rbegin () const noexcept

Type: const_reverse_iterator

rbegin() noexcept#

inline

reverse_iterator var::String::rbegin () noexcept

Type: reverse_iterator

rend() const noexcept#

inline

const_reverse_iterator var::String::rend () const noexcept

Type: const_reverse_iterator

rend() noexcept#

inline

reverse_iterator var::String::rend () noexcept

Type: reverse_iterator

replace(const Replace &options)#

String & var::String::replace (const Replace &options)

Type: String &

Parameters:

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) const#

StringViewList var::String::split (StringView delimiter) const

Type: StringViewList

Parameters:

string_view() const#

inline

StringView var::String::string_view () const

Type: StringView

to_char()#

inline

char * var::String::to_char ()

Type: char *

to_float() const#

float var::String::to_float () const

Type: float

to_integer() const#

inline

int var::String::to_integer () const

Type: int

to_long(Base base=Base::decimal) const#

inline

long var::String::to_long (Base base=Base::decimal) const

Type: long

Parameters:

to_lower()#

String & var::String::to_lower ()

Type: String &

to_unsigned_long(Base base=Base::decimal) const#

inline

unsigned long var::String::to_unsigned_long (Base base=Base::decimal) const

Type: unsigned long

Parameters:

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 &