--- parser3/src/include/pa_string.h 2001/03/29 16:12:45 1.56 +++ parser3/src/include/pa_string.h 2001/03/30 09:58:58 1.59 @@ -5,7 +5,7 @@ Author: Alexander Petrosyan (http://design.ru/paf) - $Id: pa_string.h,v 1.56 2001/03/29 16:12:45 paf Exp $ + $Id: pa_string.h,v 1.59 2001/03/30 09:58:58 paf Exp $ */ #ifndef PA_STRING_H @@ -162,8 +162,10 @@ public: /// extracts [start, finish) piece of string String& piece(size_t start, size_t finish) const; - /// @return position of substr in string, -1 means "not found" - size_t pos(const String& substr) const; + /// @return position of substr in string, -1 means "not found" [String version] + int pos(const String& substr, size_t this_offset=0) const; + /// @return position of substr in string, -1 means "not found" [const char* version] + int String::pos(const char *substr, size_t result) const; #ifndef NO_STRING_ORIGIN /// origin of string. calculated by first row