Commit b2d247de authored by thomas.forbriger's avatar thomas.forbriger Committed by thomas.forbriger
Browse files

new class

This is a legacy commit from before 2015-03-01.
It may be incomplete as well as inconsistent.
See COPYING.legacy and README.history for details.


SVN Path:     http://gpitrsvn.gpi.uni-karlsruhe.de/repos/TFSoftware/trunk
SVN Revision: 2452
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent 094e0fd4
/*! \file regexx.h
* \brief provide regular expression functionality (prototypes)
*
* ----------------------------------------------------------------------------
*
* $Id: regexx.h,v 1.1 2007-12-05 12:03:03 tforb Exp $
* \author Thomas Forbriger
* \date 05/12/2007
*
* provide regular expression functionality (prototypes)
*
* Copyright (c) 2007 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
* - 05/12/2007 V1.0 Thomas Forbriger
*
* ============================================================================
*/
// include guard
#ifndef TF_REGEXX_H_VERSION
#define TF_REGEXX_H_VERSION \
"TF_REGEXX_H V1.0"
#define TF_REGEXX_H_CVSID \
"$Id: regexx.h,v 1.1 2007-12-05 12:03:03 tforb Exp $"
#include<string>
namespace tfxx {
namespace string {
class regexx {
//! create instance.
regexx();
//! create instance and set expression to \c e.
regexx(const std::string& e);
//! set expression to \c e.
void expression(const std::string& e);
//! return expression
std::string expression() const;
//! return true is \c s matches expression.
bool match(const std::string s);
}; // class regexx
} // namespace string
} // namespace tfxx
#endif // TF_REGEXX_H_VERSION (includeguard)
/* ----- END OF regexx.h ----- */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment