Bsoft 2.1.4
Bernard's software package
Bstring Class Reference

#include <Bstring.h>

Public Member Functions

 Bstring ()
 
 Bstring (const Bstring &s)
 
 Bstring (const string &s)
 
 Bstring (const Bstring &s, long start, long len)
 
 Bstring (const char *c)
 
 Bstring (const char *c, long start, long len)
 
 Bstring (const char c, long size)
 
string str ()
 
template<typename T >
 Bstring (T value, const char *format)
 
 ~Bstring ()
 
Bstringoperator= (const Bstring &s)
 
Bstringoperator= (const string &s)
 
Bstringoperator= (const char *c)
 
Bstringoperator+= (const Bstring &s)
 
Bstring operator+ (const Bstring &s)
 
Bstring operator+ (const Bstring &s) const
 
Bstringoperator+= (const char c)
 
Bstring operator+ (const char c)
 
bool operator== (const Bstring &s)
 
bool operator!= (const Bstring &s)
 
bool operator> (const Bstring &s)
 
bool operator< (const Bstring &s)
 
bool operator>= (const Bstring &s)
 
bool operator<= (const Bstring &s)
 
Bstring operator<< (int n)
 
Bstring operator>> (int n)
 
char & operator[] (long i)
 
const char * c_str ()
 
bool empty ()
 
long length () const
 
long count (const char c)
 
long compare (const Bstring &s)
 
long compare_value (const Bstring &s)
 
Bstring common (const Bstring &s)
 
void fill (const char c)
 
void place (long i, const Bstring &s)
 
Bstring lower ()
 
Bstring upper ()
 
Bstring substr (long start, long len)
 
Bstring no_space ()
 
Bstring no_lead_space ()
 
Bstring alnum ()
 
Bstring left (long len)
 
Bstring right (long len)
 
Bstring pre (char c)
 
Bstring post (char c)
 
Bstring pre_rev (char c)
 
Bstring post_rev (char c)
 
Bstring within (char c1, char c2)
 
Bstring replace (char cold, char cnew)
 
Bstring remove (const char c)
 
Bstring swap (const long i, const long j)
 
Bstring erase (const long i)
 
Bstring truncate (const long n)
 
Bstring base ()
 
Bstring extension ()
 
Bstring canonical (int n)
 
long integer ()
 
double real ()
 
long index (const char c)
 
long index (const char c, long start)
 
long find (const Bstring &s)
 
long find (const Bstring &s, long start)
 
long rfind (const Bstring &s)
 
long rfind (const Bstring &s, long start)
 
bool contains (const Bstring &s)
 
Bstring insert (long pos, const Bstring &s)
 
Bstringsplit ()
 
Bstringsplit (const Bstring &delim)
 
vector< long > split_into_integers (const Bstring &delim)
 
vector< double > split_into_doubles (const Bstring &delim)
 

Public Attributes

Bstringnext
 

Friends

Bstring operator+ (const char *c, const Bstring &s)
 

Constructor & Destructor Documentation

◆ Bstring() [1/8]

Bstring::Bstring ( )
inline

◆ Bstring() [2/8]

Bstring::Bstring ( const Bstring s)

Constructor

◆ Bstring() [3/8]

Bstring::Bstring ( const string &  s)

◆ Bstring() [4/8]

Bstring::Bstring ( const Bstring s,
long  start,
long  len 
)

◆ Bstring() [5/8]

Bstring::Bstring ( const char *  c)

◆ Bstring() [6/8]

Bstring::Bstring ( const char *  c,
long  start,
long  len 
)

◆ Bstring() [7/8]

Bstring::Bstring ( const char  c,
long  size 
)

◆ Bstring() [8/8]

template<typename T >
Bstring::Bstring ( value,
const char *  format 
)
inline

◆ ~Bstring()

Bstring::~Bstring ( )
inline

Member Function Documentation

◆ alnum()

Bstring Bstring::alnum ( )

◆ base()

Bstring Bstring::base ( )

◆ c_str()

const char * Bstring::c_str ( )
inline

◆ canonical()

Bstring Bstring::canonical ( int  n)

◆ common()

Bstring Bstring::common ( const Bstring s)

◆ compare()

long Bstring::compare ( const Bstring s)

◆ compare_value()

long Bstring::compare_value ( const Bstring s)

◆ contains()

bool Bstring::contains ( const Bstring s)

◆ count()

long Bstring::count ( const char  c)

◆ empty()

bool Bstring::empty ( )
inline

◆ erase()

Bstring Bstring::erase ( const long  i)

◆ extension()

Bstring Bstring::extension ( )

◆ fill()

void Bstring::fill ( const char  c)

◆ find() [1/2]

long Bstring::find ( const Bstring s)
inline

◆ find() [2/2]

long Bstring::find ( const Bstring s,
long  start 
)

◆ index() [1/2]

long Bstring::index ( const char  c)
inline

◆ index() [2/2]

long Bstring::index ( const char  c,
long  start 
)

◆ insert()

Bstring Bstring::insert ( long  pos,
const Bstring s 
)

◆ integer()

long Bstring::integer ( )

◆ left()

Bstring Bstring::left ( long  len)

◆ length()

long Bstring::length ( ) const

◆ lower()

Bstring Bstring::lower ( )

◆ no_lead_space()

Bstring Bstring::no_lead_space ( )

◆ no_space()

Bstring Bstring::no_space ( )

◆ operator!=()

bool Bstring::operator!= ( const Bstring s)

◆ operator+() [1/3]

Bstring Bstring::operator+ ( const Bstring s)

◆ operator+() [2/3]

Bstring Bstring::operator+ ( const Bstring s) const

◆ operator+() [3/3]

Bstring Bstring::operator+ ( const char  c)

◆ operator+=() [1/2]

Bstring & Bstring::operator+= ( const Bstring s)

◆ operator+=() [2/2]

Bstring & Bstring::operator+= ( const char  c)

◆ operator<()

bool Bstring::operator< ( const Bstring s)

◆ operator<<()

Bstring Bstring::operator<< ( int  n)

◆ operator<=()

bool Bstring::operator<= ( const Bstring s)

◆ operator=() [1/3]

Bstring & Bstring::operator= ( const Bstring s)

◆ operator=() [2/3]

Bstring & Bstring::operator= ( const char *  c)

◆ operator=() [3/3]

Bstring & Bstring::operator= ( const string &  s)

◆ operator==()

bool Bstring::operator== ( const Bstring s)

◆ operator>()

bool Bstring::operator> ( const Bstring s)

◆ operator>=()

bool Bstring::operator>= ( const Bstring s)

◆ operator>>()

Bstring Bstring::operator>> ( int  n)

◆ operator[]()

char & Bstring::operator[] ( long  i)

◆ place()

void Bstring::place ( long  i,
const Bstring s 
)

◆ post()

Bstring Bstring::post ( char  c)

◆ post_rev()

Bstring Bstring::post_rev ( char  c)

◆ pre()

Bstring Bstring::pre ( char  c)

◆ pre_rev()

Bstring Bstring::pre_rev ( char  c)

◆ real()

double Bstring::real ( )

◆ remove()

Bstring Bstring::remove ( const char  c)

◆ replace()

Bstring Bstring::replace ( char  cold,
char  cnew 
)

◆ rfind() [1/2]

long Bstring::rfind ( const Bstring s)
inline

◆ rfind() [2/2]

long Bstring::rfind ( const Bstring s,
long  start 
)

◆ right()

Bstring Bstring::right ( long  len)

◆ split() [1/2]

Bstring * Bstring::split ( )

◆ split() [2/2]

Bstring * Bstring::split ( const Bstring delim)

◆ split_into_doubles()

vector< double > Bstring::split_into_doubles ( const Bstring delim)

◆ split_into_integers()

vector< long > Bstring::split_into_integers ( const Bstring delim)

◆ str()

string Bstring::str ( )
inline

◆ substr()

Bstring Bstring::substr ( long  start,
long  len 
)

◆ swap()

Bstring Bstring::swap ( const long  i,
const long  j 
)

◆ truncate()

Bstring Bstring::truncate ( const long  n)

◆ upper()

Bstring Bstring::upper ( )

◆ within()

Bstring Bstring::within ( char  c1,
char  c2 
)

Friends And Related Function Documentation

◆ operator+

Bstring operator+ ( const char *  c,
const Bstring s 
)
friend

Member Data Documentation

◆ next

Bstring* Bstring::next

The documentation for this class was generated from the following files: