class eosio::string

Class List > eosio :: string

Public Static Attributes

Type Name
static constexpr size_t npos

Public Functions

Type Name
constexpr string (const char(&) str)
constexpr string ()
constexpr string (const char * str, const size_t n)
constexpr string (const size_t n, const char c)
constexpr string (const string & str, const size_t pos, const size_t n)
constexpr string (const string & str)
constexpr string (string && str)
string & operator= (const string & str)
string & operator= (string && str)
string & operator= (const char * str)
char & operator[] (const size_t n)
const char operator[] (const size_t n) const
char & at (const size_t n)
const char at (const size_t n) const
char & front ()
const char front () const
char & back ()
const char back () const
char * data ()
const char * data () const
const char * c_str () const
char * begin ()
const char * cbegin () const
char * end ()
const char * cend () const
bool empty () const
size_t size () const
size_t length () const
size_t capacity () const
size_t max_size () const
void reserve (const size_t n)
void shrink_to_fit ()
void clear ()
void resize (const size_t n)
void swap (string & str)
void push_back (const char c)
void pop_back ()
string substr (size_t pos = 0, size_t len = npos) const
size_t copy (char * s, size_t len, size_t pos = 0) const
string & insert (const size_t pos, const char * str)
string & insert (const size_t pos, const char * str, const size_t len)
string & insert (const size_t pos, const string & str)
string & erase (size_t pos = 0, size_t len = npos)
string & append (const char * str)
string & append (const string & str)
string & operator+= (const char c)
string & operator+= (const char * rhs)
string & operator+= (const string & rhs)
void print () const

Friends

Type Name
friend bool operator<
friend bool operator>
friend bool operator<=
friend bool operator>=
friend bool operator==
friend bool operator!=
friend string operator+

Public Static Attributes Documentation

variable npos

constexpr size_t eosio::string::npos;

Public Functions Documentation

function string (1/7)

template<size_t N>
constexpr eosio::string::string(
    const char(&) str
)

function string (2/7)

constexpr eosio::string::string()

function string (3/7)

constexpr eosio::string::string(
    const char * str,
    const size_t n
)

function string (4/7)

constexpr eosio::string::string(
    const size_t n,
    const char c
)

function string (5/7)

constexpr eosio::string::string(
    const string & str,
    const size_t pos,
    const size_t n
)

function string (6/7)

constexpr eosio::string::string(
    const string & str
)

function string (7/7)

constexpr eosio::string::string(
    string && str
)

function operator= (1/3)

string& eosio::string::operator=(
    const string & str
)

function operator= (2/3)

string& eosio::string::operator=(
    string && str
)

function operator= (3/3)

string& eosio::string::operator=(
    const char * str
)

function operator

char& eosio::string::operator[](
    const size_t n
)

function operator

const char eosio::string::operator[](
    const size_t n
) const

function at (1/2)

char& eosio::string::at(
    const size_t n
)

function at (2/2)

const char eosio::string::at(
    const size_t n
) const

function front (1/2)

char& eosio::string::front()

function front (2/2)

const char eosio::string::front() const

function back (1/2)

char& eosio::string::back()

function back (2/2)

const char eosio::string::back() const

function data (1/2)

char* eosio::string::data()

function data (2/2)

const char* eosio::string::data() const

function c_str

const char* eosio::string::c_str() const

function begin

char* eosio::string::begin()

function cbegin

const char* eosio::string::cbegin() const

function end

char* eosio::string::end()

function cend

const char* eosio::string::cend() const

function empty

bool eosio::string::empty() const

function size

size_t eosio::string::size() const

function length

size_t eosio::string::length() const

function capacity

size_t eosio::string::capacity() const

function max_size

size_t eosio::string::max_size() const

function reserve

void eosio::string::reserve(
    const size_t n
)

function shrink_to_fit

void eosio::string::shrink_to_fit()

function clear

void eosio::string::clear()

function resize

void eosio::string::resize(
    const size_t n
)

function swap

void eosio::string::swap(
    string & str
)

function push_back

void eosio::string::push_back(
    const char c
)

function pop_back

void eosio::string::pop_back()

function substr

string eosio::string::substr(
    size_t pos = 0,
    size_t len = npos
) const

function copy

size_t eosio::string::copy(
    char * s,
    size_t len,
    size_t pos = 0
) const

function insert (1/3)

string& eosio::string::insert(
    const size_t pos,
    const char * str
)

function insert (2/3)

string& eosio::string::insert(
    const size_t pos,
    const char * str,
    const size_t len
)

function insert (3/3)

string& eosio::string::insert(
    const size_t pos,
    const string & str
)

function erase

string& eosio::string::erase(
    size_t pos = 0,
    size_t len = npos
)

function append (1/2)

string& eosio::string::append(
    const char * str
)

function append (2/2)

string& eosio::string::append(
    const string & str
)

function operator+= (1/3)

string& eosio::string::operator+=(
    const char c
)

function operator+= (2/3)

string& eosio::string::operator+=(
    const char * rhs
)

function operator+= (3/3)

string& eosio::string::operator+=(
    const string & rhs
)

function print

void eosio::string::print() const

Friends Documentation

friend operator<

bool operator<(
    const string & lhs,
    const string & rhs
)

friend operator>

bool operator>(
    const string & lhs,
    const string & rhs
)

friend operator<=

bool operator<=(
    const string & lhs,
    const string & rhs
)

friend operator>=

bool operator>=(
    const string & lhs,
    const string & rhs
)

friend operator==

bool operator==(
    const string & lhs,
    const string & rhs
)

friend operator!=

bool operator!=(
    const string & lhs,
    const string & rhs
)

friend operator+

string operator+(
    const string & lhs,
    const string & rhs
)

The documentation for this class was generated from the following file: libraries/eosiolib/core/eosio/string.hpp