fix doc typos

This commit is contained in:
Günter Obiltschnig 2018-02-17 20:53:49 +01:00
parent 5acd07cf34
commit 488d8e05c2

View File

@ -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 $<n> (for example, $1, $2, ...) in replacement are replaced
/// Occurrences of $<n> (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 $<n> (for example, $0, $1, $2, ... $9)
/// Unless RE_NO_VARS is specified, occurrences of $<n> (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,