--- parser3/src/include/pa_string.h 2005/11/22 15:09:10 1.166 +++ parser3/src/include/pa_string.h 2007/04/20 10:19:12 1.168 @@ -8,7 +8,7 @@ #ifndef PA_STRING_H #define PA_STRING_H -static const char * const IDENT_STRING_H="$Date: 2005/11/22 15:09:10 $"; +static const char * const IDENT_STRING_H="$Date: 2007/04/20 10:19:12 $"; // includes #include "pa_types.h" @@ -501,7 +501,7 @@ public: const String& regexp, const String* options, Row_action row_action, void *info, - bool& just_matched) const; + int& matches_count) const; enum Change_case_kind { CC_UPPER, CC_LOWER @@ -512,6 +512,7 @@ public: const String& trim(Trim_kind kind=TRIM_BOTH, const char* chars=0) const; double as_double() const { return pa_atod(cstr(), this); } int as_int() const { return pa_atoi(cstr(), this); } + bool as_bool() const { return as_int()!=0; } private: //disabled