.TH "shevek::regexp" 3 "Wed Jul 9 2014" "libshevek" \" -*- nroff -*- .ad l .nh .SH NAME shevek::regexp \- .PP Use regular expressions\&. .SH SYNOPSIS .br .PP .PP \fC#include \fP .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBregexp\fP (std::string const &\fBpattern\fP=std::string(), bool \fBcase_sensitive\fP=false)" .br .RI "\fICreate a new object, and optionally fill it with a pattern\&. \fP" .ti -1c .RI "\fBregexp\fP & \fBoperator=\fP (std::string const &\fBpattern\fP)" .br .RI "\fISet a pattern, removing the previous one\&. \fP" .ti -1c .RI "\fBregexp\fP (\fBregexp\fP const &that)" .br .RI "\fICopy a regexp\&. \fP" .ti -1c .RI "\fBregexp\fP & \fBoperator=\fP (\fBregexp\fP const &that)" .br .RI "\fICopy a regexp\&. \fP" .ti -1c .RI "void \fBcase_sensitive\fP (bool value=true)" .br .RI "\fISet whether the evaluation should be case sensitive\&. \fP" .ti -1c .RI "\fB~regexp\fP ()" .br .RI "\fIDestructor, this cleans up internal structures\&. \fP" .ti -1c .RI "bool \fBoperator()\fP (std::string const &data)" .br .RI "\fICheck whether the pattern matches a string, and fill internal match structures if it does\&. \fP" .ti -1c .RI "std::string \fBoperator[]\fP (unsigned idx) const " .br .RI "\fIRetrieve the value of a subexpression from the last matched string\&. \fP" .ti -1c .RI "bool \fBvalid\fP (unsigned idx) const " .br .RI "\fITest whether a subexpression was filled by the last matching string\&. \fP" .ti -1c .RI "unsigned \fBsize\fP () const " .br .RI "\fIGet the number of subexpression\&. \fP" .ti -1c .RI "std::string \fBtransform\fP (std::string const &data) const " .br .RI "\fITransform a string with -codes according to the last matching string\&. \fP" .ti -1c .RI "std::string const & \fBpattern\fP () const " .br .RI "\fIGet the current pattern\&. \fP" .in -1c .SH "Detailed Description" .PP Use regular expressions\&. .SH "Member Function Documentation" .PP .SS "std::string shevek::regexp::operator[] (unsignedidx) const" .PP Retrieve the value of a subexpression from the last matched string\&. This throws an exception if the subexpression is not valid\&. .SH "Author" .PP Generated automatically by Doxygen for libshevek from the source code\&.