Personal tools
You are here: Home Documentation 1-0pre1 V1.0pre1

BNPP::STRFUNCT Namespace Reference
[Common Definitions]

STRFUNCT different string functions. More...

Classes

struct eqstr
This struct defines an equality predicate for strings. More...

additional string functions used in BN++

bool convertToInt (const std::string &numberstring, int &found_int)
Converts an string representing an integer to an object of type 'integer'.
bool convertToUnsignedLong (const std::string &numberstring, unsigned long &new_ul)
Converts an string representing an unsigned long to an object of type 'unsigned long'.
bool convertToDouble (const std::string &numberstring, double &found_double)
Converts an string representing a double to an object of type 'double'.
std::string eraseLeadingString (const std::string &erase_string, const std::string &edit_string)
std::string eraseLeadingChar (const char &erase_char, const std::string &edit_string)
Erase leading characters of string 'edit_string' if they are equal with given parameter character 'erase_char'.
std::string eraseLeadingChar (const std::vector< char > &erase_char_vector, const std::string &edit_string)
Erase leading characters of string 'edit_string' if they are equal with given parameter characters in vector 'erase_char_vector'.
std::string eraseChar (const char &erase_char, const std::string &edit_string)
Erase the given character everywhere in a string object.
std::string eraseChar (const std::vector< char > &erase_char_vector, const std::string &edit_string)
Erase characters everywhere in the given string if they are equal with given parameter characters.
std::string eraseLastChar (const char &erase_char, const std::string &edit_string)
Erase characters at the end of a string if they are equal with given parameter character.
std::string eraseLastChar (const std::vector< char > &erase_char_vector, const std::string &edit_string)
Erase characters at the end of a string if they are equal with given parameter characters.

Detailed Description

STRFUNCT different string functions.