1 /*************************************************************************
\r
3 * Licensed under the Apache License, Version 2.0 (the "License");
\r
4 * you may not use this file except in compliance with the License.
\r
5 * You may obtain a copy of the License at
\r
7 * http://www.apache.org/licenses/LICENSE-2.0
\r
9 * Unless required by applicable law or agreed to in writing, software
\r
10 * distributed under the License is distributed on an "AS IS" BASIS,
\r
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
12 * See the License for the specific language governing permissions and
\r
13 * limitations under the License.
\r
14 ***************************************************************************/
\r
16 #include "regxstring_impl.h"
\r
17 #include "regxstring.h"
\r
19 CRegxString::CRegxString(const char * regx)
\r
25 CRegxString::~CRegxString()
\r
31 void CRegxString::ParseRegx(const char * regx,const Config * config)
\r
36 impl_ = new REGXSTRING_NS::__CRegxString;
\r
37 impl_->ParseRegx(regx,config);
\r
40 const char * CRegxString::Regx() const
\r
42 return (impl_ ? impl_->Regx().c_str() : 0);
\r
45 const char * CRegxString::RandString()
\r
47 return (impl_ ? impl_->RandString().c_str() : 0);
\r
49 const char * CRegxString::LastString() const
\r
51 return (impl_ ? impl_->LastString().c_str() : 0);
\r
54 void CRegxString::Debug(std::ostream & out) const
\r