sella::util::String Class Reference

List of all members.

Public Types

typedef const
boost::regex_constants::syntax_option_type 
REFlag
typedef const
boost::regex_constants::match_flag_type 
MatchFlag

Static Public Member Functions

static std::string sprintf (const char *format,...) throw ()
static std::string sprintf (const std::string &format,...) throw ()
static std::string vsprintf (const char *format, va_list args) throw ()
static std::string vsprintf (const std::string &format, va_list args) throw ()
static std::string substr_replace (const std::string &src, const std::string &search, const std::string &replace="", bool global=true) throw ()
static std::string & substr_replace (std::string &src, const std::string &search, const std::string &replace="", bool global=true) throw ()
static std::string substr_ireplace (const std::string &src, const std::string &search, const std::string &replace="", bool global=true) throw ()
static std::string & substr_ireplace (std::string &src, const std::string &search, const std::string &replace="", bool global=true) throw ()
static LIBUTIL_API_DEPRECATED
std::string & 
substr_replace2 (std::string &src, const std::string &search, const std::string &replace="", bool global=true) throw ()
static LIBUTIL_API_DEPRECATED
std::string & 
substr_ireplace2 (std::string &src, const std::string &search, const std::string &replace="", bool global=true) throw ()
static std::string regex_replace (const std::string &src, const boost::regex &regex, const std::string &replace="", MatchFlag mFlags=DefaultMatchFlags) throw (RegexException)
static std::string regex_replace (const std::string &src, const std::string &regex, const std::string &replace="", REFlag reFlags=DefaultREFlags, MatchFlag mFlags=DefaultMatchFlags) throw (RegexException)
static std::string & regex_replace (std::string &src, const boost::regex &regex, const std::string &replace="", MatchFlag mFlags=DefaultMatchFlags) throw (RegexException)
static std::string & regex_replace (std::string &src, const std::string &regex, const std::string &replace="", REFlag reFlags=DefaultREFlags, MatchFlag mFlags=DefaultMatchFlags) throw (RegexException)
static std::string regex_ireplace (const std::string &src, const boost::regex &regex, const std::string &replace="", MatchFlag mFlags=DefaultMatchFlags) throw (RegexException)
static std::string regex_ireplace (const std::string &src, const std::string &regex, const std::string &replace="", REFlag reFlags=DefaultREFlags, MatchFlag mFlags=DefaultMatchFlags) throw (RegexException)
static std::string & regex_ireplace (std::string &src, const boost::regex &regex, const std::string &replace="", MatchFlag mFlags=DefaultMatchFlags) throw (RegexException)
static std::string & regex_ireplace (std::string &src, const std::string &regex, const std::string &replace="", REFlag reFlags=DefaultREFlags, MatchFlag mFlags=DefaultMatchFlags) throw (RegexException)
static bool regex_match (const std::string &src, const boost::regex &regex, MatchFlag mFlags=DefaultMatchFlags) throw (RegexException)
static bool regex_match (const std::string &src, const std::string &regex, REFlag reFlags=DefaultREFlags, MatchFlag mFlags=DefaultMatchFlags) throw (RegexException)
static bool regex_match (const std::string &src, const boost::regex &regex, boost::cmatch &matches, MatchFlag mFlags=DefaultMatchFlags) throw (RegexException)
static bool regex_match (const std::string &src, const std::string &regex, boost::cmatch &matches, REFlag reFlags=DefaultREFlags, MatchFlag mFlags=DefaultMatchFlags) throw (RegexException)
static bool regex_match (const std::string &src, const boost::regex &regex, std::string &match, MatchFlag mFlags=DefaultMatchFlags) throw (RegexException)
static bool regex_match (const std::string &src, const std::string &regex, std::string &match, REFlag reFlags=DefaultREFlags, MatchFlag mFlags=DefaultMatchFlags) throw (RegexException)
static bool regex_match (const std::string &src, const boost::regex &regex, std::vector< std::string > &matches, MatchFlag mFlags=DefaultMatchFlags) throw (RegexException)
static bool regex_match (const std::string &src, const std::string &regex, std::vector< std::string > &matches, REFlag reFlags=DefaultREFlags, MatchFlag mFlags=DefaultMatchFlags) throw (RegexException)
static bool regex_imatch (const std::string &src, const boost::regex &regex, MatchFlag mFlags=DefaultMatchFlags) throw (RegexException)
static bool regex_imatch (const std::string &src, const std::string &regex, REFlag reFlags=DefaultREFlags, MatchFlag mFlags=DefaultMatchFlags) throw (RegexException)
static bool regex_imatch (const std::string &src, const boost::regex &regex, boost::cmatch &matches, MatchFlag mFlags=DefaultMatchFlags) throw (RegexException)
static bool regex_imatch (const std::string &src, const std::string &regex, boost::cmatch &matches, REFlag reFlags=DefaultREFlags, MatchFlag mFlags=DefaultMatchFlags) throw (RegexException)
static bool regex_imatch (const std::string &src, const boost::regex &regex, std::string &match, MatchFlag mFlags=DefaultMatchFlags) throw (RegexException)
static bool regex_imatch (const std::string &src, const std::string &regex, std::string &match, REFlag reFlags=DefaultREFlags, MatchFlag mFlags=DefaultMatchFlags) throw (RegexException)
static bool regex_imatch (const std::string &src, const boost::regex &regex, std::vector< std::string > &matches, MatchFlag mFlags=DefaultMatchFlags) throw (RegexException)
static bool regex_imatch (const std::string &src, const std::string &regex, std::vector< std::string > &matches, REFlag reFlags=DefaultREFlags, MatchFlag mFlags=DefaultMatchFlags) throw (RegexException)
static bool regex_search (const std::string &src, const boost::regex &regex, MatchFlag mFlags=DefaultMatchFlags) throw (RegexException)
static bool regex_search (const std::string &src, const std::string &regex, REFlag reFlags=DefaultREFlags, MatchFlag mFlags=DefaultMatchFlags) throw (RegexException)
static bool regex_search (const std::string &src, const boost::regex &regex, boost::cmatch &matches, MatchFlag mFlags=DefaultMatchFlags) throw (RegexException)
static bool regex_search (const std::string &src, const std::string &regex, boost::cmatch &matches, REFlag reFlags=DefaultREFlags, MatchFlag mFlags=DefaultMatchFlags) throw (RegexException)
static bool regex_search (const std::string &src, const boost::regex &regex, std::string &match, MatchFlag mFlags=DefaultMatchFlags) throw (RegexException)
static bool regex_search (const std::string &src, const std::string &regex, std::string &match, REFlag reFlags=DefaultREFlags, MatchFlag mFlags=DefaultMatchFlags) throw (RegexException)
static bool regex_search (const std::string &src, const boost::regex &regex, std::vector< std::string > &matches, bool global=true, bool subexp=true, MatchFlag mFlags=DefaultMatchFlags) throw (RegexException)
static bool regex_search (const std::string &src, const std::string &regex, std::vector< std::string > &matches, bool global=true, bool subexp=true, REFlag reFlags=DefaultREFlags, MatchFlag mFlags=DefaultMatchFlags) throw (RegexException)
static bool regex_isearch (const std::string &src, const boost::regex &regex, MatchFlag mFlags=DefaultMatchFlags) throw (RegexException)
static bool regex_isearch (const std::string &src, const std::string &regex, REFlag reFlags=DefaultREFlags, MatchFlag mFlags=DefaultMatchFlags) throw (RegexException)
static bool regex_isearch (const std::string &src, const boost::regex &regex, boost::cmatch &matches, MatchFlag mFlags=DefaultMatchFlags) throw (RegexException)
static bool regex_isearch (const std::string &src, const std::string &regex, boost::cmatch &matches, REFlag reFlags=DefaultREFlags, MatchFlag mFlags=DefaultMatchFlags) throw (RegexException)
static bool regex_isearch (const std::string &src, const boost::regex &regex, std::string &match, MatchFlag mFlags=DefaultMatchFlags) throw (RegexException)
static bool regex_isearch (const std::string &src, const std::string &regex, std::string &match, REFlag reFlags=DefaultREFlags, MatchFlag mFlags=DefaultMatchFlags) throw (RegexException)
static bool regex_isearch (const std::string &src, const boost::regex &regex, std::vector< std::string > &matches, MatchFlag mFlags=DefaultMatchFlags) throw (RegexException)
static bool regex_isearch (const std::string &src, const boost::regex &regex, std::vector< std::string > &matches, bool global=true, bool subexp=true, MatchFlag mFlags=DefaultMatchFlags) throw (RegexException)
static bool regex_isearch (const std::string &src, const std::string &regex, std::vector< std::string > &matches, bool global=true, bool subexp=true, REFlag reFlags=DefaultREFlags, MatchFlag mFlags=DefaultMatchFlags) throw (RegexException)
static std::vector< std::string > split (const std::string &str, const std::string &delim=" ,;:", bool exact=false, bool empty=true, size_t limit=-1) throw ()
static std::vector< std::string > split (const std::string &str, char delim, bool empty=true, size_t limit=-1) throw ()
static std::string join (const std::vector< std::string > &src, const std::string &delim) throw ()
static std::string join (const std::vector< std::string > &src, char delim= ',') throw ()
static std::string join (const std::list< std::string > &src, const std::string &delim) throw ()
static std::string join (const std::list< std::string > &src, char delim= ',') throw ()
static std::string join (const std::set< std::string > &src, const std::string &delim) throw ()
static std::string join (const std::set< std::string > &src, char delim= ',') throw ()
static std::string trim (const std::string &str, const std::string &space=" \t\r\n\v\f") throw ()
static std::string trim (const std::string &str, char space) throw ()
static std::string & trim (std::string &str, const std::string &space=" \t\r\n\v\f") throw ()
static std::string & trim (std::string &str, char space) throw ()
static std::string rtrim (const std::string &str, const std::string &space=" \t\r\n\v\f") throw ()
static std::string rtrim (const std::string &str, char space) throw ()
static std::string & rtrim (std::string &str, const std::string &space=" \t\r\n\v\f") throw ()
static std::string & rtrim (std::string &str, char space) throw ()
static std::string ltrim (const std::string &str, const std::string &space=" \t\r\n\v\f") throw ()
static std::string ltrim (const std::string &str, char space) throw ()
static std::string & ltrim (std::string &str, const std::string &space=" \t\r\n\v\f") throw ()
static std::string & ltrim (std::string &str, char space) throw ()
static std::string lower (const std::string &src) throw ()
static std::string & lower (std::string &src) throw ()
static std::string upper (const std::string &src) throw ()
static std::string & upper (std::string &src) throw ()
static std::string ucfirst (const std::string &src) throw ()
static std::string & ucfirst (std::string &src) throw ()
static std::string ucword (const std::string &src) throw ()
static std::string & ucword (std::string &src) throw ()
static std::string bandwidth (int64_t bps, int decimals=0) throw ()
static std::string bandwidth (uint64_t bps, int decimals=0) throw ()
static std::string bandwidth (long bps, int decimals=0) throw ()
static std::string bandwidth (unsigned long bps, int decimals=0) throw ()
static std::string dataSize (int64_t bytes, int decimals=0) throw ()
static std::string dataSize (uint64_t bytes, int decimals=0) throw ()
static std::string dataSize (long bytes, int decimals=0) throw ()
static std::string dataSize (unsigned long bytes, int decimals=0) throw ()
static std::string dataRate (int64_t bps, int decimals=0) throw ()
static std::string dataRate (uint64_t bps, int decimals=0) throw ()
static std::string dataRate (long bps, int decimals=0) throw ()
static std::string dataRate (unsigned long bps, int decimals=0) throw ()
static std::string duration (int64_t usec, int decimals=0) throw ()
static std::string duration (uint64_t usec, int decimals=0) throw ()
static std::string duration (long usec, int decimals=0) throw ()
static std::string duration (unsigned long usec, int decimals=0) throw ()

Static Public Attributes

static REFlag DefaultREFlags = boost::regex_constants::normal
static MatchFlag DefaultMatchFlags = boost::regex_constants::match_default

Detailed Description

Definition at line 30 of file String.h.


The documentation for this class was generated from the following files:
 All Classes Functions Variables

Generated on 20 Nov 2014 for libutil++ by  doxygen 1.6.1