diff --git a/Foundation/include/Poco/RegularExpression.h b/Foundation/include/Poco/RegularExpression.h index d4c38cc0b..638b99e11 100644 --- a/Foundation/include/Poco/RegularExpression.h +++ b/Foundation/include/Poco/RegularExpression.h @@ -35,7 +35,7 @@ class Foundation_API RegularExpression /// (see http://www.pcre.org). { public: - enum Options // These must match the corresponsing options in pcre.h! + enum Options // These must match the corresponding options in pcre.h! /// Some of the following options can only be passed to the constructor; /// some can be passed only to matching functions, and some can be used /// everywhere. @@ -173,19 +173,19 @@ public: /// Substitute in subject all matches of the pattern with replacement. /// If RE_GLOBAL is specified as option, all matches are replaced. Otherwise, /// only the first match is replaced. - /// Occurences of $ (for example, $1, $2, ...) in replacement are replaced + /// Occurrences of $ (for example, $1, $2, ...) in replacement are replaced /// with the corresponding captured string. $0 is the original subject string. - /// Returns the number of replaced occurences. + /// Returns the number of replaced occurrences. int subst(std::string& subject, std::string::size_type offset, const std::string& replacement, int options = 0) const; /// Substitute in subject all matches of the pattern with replacement, /// starting at offset. /// If RE_GLOBAL is specified as option, all matches are replaced. Otherwise, /// only the first match is replaced. - /// Unless RE_NO_VARS is specified, occurences of $ (for example, $0, $1, $2, ... $9) + /// Unless RE_NO_VARS is specified, occurrences of $ (for example, $0, $1, $2, ... $9) /// in replacement are replaced with the corresponding captured string. - /// $0 is the captured substring. $1 ... $n are the substrings maching the subpatterns. - /// Returns the number of replaced occurences. + /// $0 is the captured substring. $1 ... $n are the substrings matching the subpatterns. + /// Returns the number of replaced occurrences. static bool match(const std::string& subject, const std::string& pattern, int options = 0); /// Matches the given subject string against the regular expression given in pattern,