From e4138b5bdc0a5f1e57a7c0780a54df0dad2d8f99 Mon Sep 17 00:00:00 2001 From: John Maddock Date: Mon, 7 Jan 2002 13:02:37 +0000 Subject: [PATCH] Added members RegEx::Match and RegEx::npos. [SVN r12243] --- include/boost/cregex.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/boost/cregex.hpp b/include/boost/cregex.hpp index a5701921..f280a2c6 100644 --- a/include/boost/cregex.hpp +++ b/include/boost/cregex.hpp @@ -271,11 +271,14 @@ public: // unsigned int Position(int i = 0)const; unsigned int Length(int i = 0)const; + bool Matched(int i = 0)const; unsigned int Line()const; unsigned int Marks()const; std::string What(int i = 0)const; std::string operator[](int i)const { return What(i); } + static const unsigned int npos; + friend struct re_detail::pred1; friend struct re_detail::pred2; friend struct re_detail::pred3;