OKlibrary  0.2.1.6
StringHandling Namespace Reference

Namespaces

namespace  Error_StringHandling

Classes

struct  Error
class  Vector_c_str

Functions

char * copy_new (const std::string s)
template<typename T >
std::string toString (const T &x)
std::string toString (unsigned char x)
std::string toString (signed char x)
template<typename T >
std::string toString_nc (const T &x)
std::string toString_nc (unsigned char x)
std::string toString_nc (signed char x)
template<typename T >
T fromString (const std::string &st)
template<typename T >
T fromString_nc (const std::string &st)
std::string deleteCharacter (std::string s, const char c)
void deleteCharacter_var (std::string &s, const char c)
std::string deleteSpaces (std::string s)
void deleteSpaces_var (std::string &s)
std::string deleteHead (const std::string &s, const int n)
void deleteHead_var (std::string &s, const int n)
void replace_substring_throw (std::string &original, const std::string &to_be_replaced, const std::string &substitute)
bool replace_substring_check (std::string &original, const std::string &to_be_replaced, const std::string &substitute)
void replace_substring_if_possible (std::string &original, const std::string &to_be_replaced, const std::string &substitute)
void replace_all_substrings (std::string &original, const std::string &to_be_replaced, const std::string &substitute)

Function Documentation

char* StringHandling::copy_new ( const std::string  s) [inline]

Definition at line 44 of file StringHandling.hpp.

Referenced by StringHandling::Vector_c_str::push_back().

std::string StringHandling::deleteCharacter ( std::string  s,
const char  c 
) [inline]

Definition at line 180 of file StringHandling.hpp.

References s.

Referenced by test_TransformationBiclique().

void StringHandling::deleteCharacter_var ( std::string &  s,
const char  c 
) [inline]

Definition at line 186 of file StringHandling.hpp.

std::string StringHandling::deleteHead ( const std::string &  s,
const int  n 
) [inline]

Definition at line 202 of file StringHandling.hpp.

References s.

Referenced by CgiHandling::compute_password().

void StringHandling::deleteHead_var ( std::string &  s,
const int  n 
) [inline]

Definition at line 215 of file StringHandling.hpp.

Referenced by main().

std::string StringHandling::deleteSpaces ( std::string  s) [inline]

Definition at line 191 of file StringHandling.hpp.

References s.

void StringHandling::deleteSpaces_var ( std::string &  s) [inline]

Definition at line 197 of file StringHandling.hpp.

template<typename T >
T StringHandling::fromString ( const std::string &  st) [inline]

Definition at line 142 of file StringHandling.hpp.

References s, and T.

template<typename T >
T StringHandling::fromString_nc ( const std::string &  st) [inline]

Definition at line 151 of file StringHandling.hpp.

References s, and T.

void StringHandling::replace_all_substrings ( std::string &  original,
const std::string &  to_be_replaced,
const std::string &  substitute 
) [inline]

Definition at line 270 of file StringHandling.hpp.

References BoolVarLit::pos.

Referenced by DatabaseHandler01::introduce_escape_seq().

bool StringHandling::replace_substring_check ( std::string &  original,
const std::string &  to_be_replaced,
const std::string &  substitute 
) [inline]

Definition at line 245 of file StringHandling.hpp.

References BoolVarLit::pos.

void StringHandling::replace_substring_if_possible ( std::string &  original,
const std::string &  to_be_replaced,
const std::string &  substitute 
) [inline]

Definition at line 256 of file StringHandling.hpp.

References BoolVarLit::pos.

void StringHandling::replace_substring_throw ( std::string &  original,
const std::string &  to_be_replaced,
const std::string &  substitute 
) [inline]

Definition at line 236 of file StringHandling.hpp.

std::string StringHandling::toString ( unsigned char  x) [inline]

Definition at line 101 of file StringHandling.hpp.

References s.

std::string StringHandling::toString ( signed char  x) [inline]

Definition at line 109 of file StringHandling.hpp.

References s.

std::string StringHandling::toString_nc ( unsigned char  x) [inline]

Definition at line 124 of file StringHandling.hpp.

References s.

std::string StringHandling::toString_nc ( signed char  x) [inline]

Definition at line 131 of file StringHandling.hpp.

References s.