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

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

#include <tfxx/stringfunc.h>
#include <algorithm>
#include <iterator>
#include <functional>
#include <ctype.h>
Include dependency graph for stringfunc.cc:

Go to the source code of this file.

Namespaces

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

Macros

#define TF_STRINGFUNC_CC_VERSION   "TF_STRINGFUNC_CC V1.1"
 

Functions

std::string tfxx::string::trimws (std::string s)
 
std::string tfxx::string::trimws_begin (std::string s)
 
std::string tfxx::string::trimws_end (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 (implementation)


Author
Thomas Forbriger
Date
30/06/2005

string functions copied from former class library (implementation)

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
  • 25/11/2010 V1.1 implemented more efficient method to strip whitespace

Definition in file stringfunc.cc.