--- /dev/null
+/*************************************************************************\r
+*\r
+* Licensed under the Apache License, Version 2.0 (the "License");\r
+* you may not use this file except in compliance with the License.\r
+* You may obtain a copy of the License at\r
+*\r
+* http://www.apache.org/licenses/LICENSE-2.0\r
+*\r
+* Unless required by applicable law or agreed to in writing, software\r
+* distributed under the License is distributed on an "AS IS" BASIS,\r
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+* See the License for the specific language governing permissions and\r
+* limitations under the License.\r
+***************************************************************************/\r
+\r
+#ifndef DOZERG_REGXSTRING_H_20091012\r
+#define DOZERG_REGXSTRING_H_20091012\r
+\r
+namespace __DZ_Regx_String{\r
+ class __CRegxString;\r
+}\r
+\r
+struct Config\r
+{\r
+ static const int REPEAT_INFINITE = 3;\r
+ int repeatInfinite;\r
+ //functions:\r
+ Config():repeatInfinite(REPEAT_INFINITE){}\r
+};\r
+\r
+class CRegxString\r
+{\r
+ __DZ_Regx_String::__CRegxString * impl_;\r
+public:\r
+ CRegxString():impl_(0){}\r
+ explicit CRegxString(const char * regx);\r
+ ~CRegxString();\r
+ void ParseRegx(const char * regx,const Config * config = 0);\r
+ const char * Regx() const;\r
+ const char * RandString();\r
+ const char * LastString() const;\r
+ void Debug(std::ostream & out) const;\r
+};\r
+\r
+#endif\r