TF++, Miscellaneous classes and modules in C++:
stringfunc.h File Reference

string functions copied from former class library (prototypes) More...

#include <string>
Include dependency graph for stringfunc.h:

Go to the source code of this file.

Namespaces

 tfxx
 Namespace containing all code of library libtfxx.
 
 tfxx::string
 

Macros

#define TF_STRINGFUNC_H_VERSION   "TF_STRINGFUNC_H V1.2"
 

Functions

template<template< class > class C>
std::string tfxx::string::join (const C< std::string > &v, const std::string &delimiter="")
 
template<class C >
void tfxx::string::gen_split (C &v, const std::string &s, const std::string &delimiter=" ", const bool &dropdelimiter=false)
 
template<template< class > class C>
C< std::string > tfxx::string::split (const std::string &s, const std::string &delimiter=" ", const bool &dropdelimiter=false)
 
std::string tfxx::string::trimws_begin (std::string s)
 
std::string tfxx::string::trimws_end (std::string s)
 
std::string tfxx::string::trimws (std::string s)
 
std::string tfxx::string::strip_string (std::string &s, const char &delim)
 
int tfxx::string::count_char (const std::string &s, const char &c)
 
std::string tfxx::string::patsubst (const std::string &s, const std::string &p, const std::string &r)
 

Detailed Description

string functions copied from former class library (prototypes)


Author
Thomas Forbriger
Date
30/06/2005

string functions copied from former class library (prototypes)

Copyright (c) 2005 by Thomas Forbriger (BFO Schiltach)


This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software

Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

REVISIONS and CHANGES

  • 30/06/2005 V1.0 Thomas Forbriger
  • 11/11/2009 V1.1 !! changed interface of gen_split, since new g++ does not handle template template functions
  • 25/11/2010 V1.2 implemented more efficient method to strip whitespace

Definition in file stringfunc.h.