forked from boostorg/regex
Fixed typos (mainly in comments)
This commit is contained in:
@ -99,7 +99,7 @@ void test_deprecated(const char&, const test_regex_search_tag&)
|
||||
BOOST_REGEX_TEST_ERROR("Expression : \"" << expression.c_str() << "\" did not compile with the POSIX C API.", char);
|
||||
return;
|
||||
}
|
||||
// try and find the first occurance:
|
||||
// try and find the first occurrence:
|
||||
static const unsigned max_subs = 100;
|
||||
boost::regmatch_t matches[max_subs];
|
||||
if(boost::regexecA(&re, search_text.c_str(), max_subs, matches, posix_match_options) == 0)
|
||||
@ -227,7 +227,7 @@ void test_deprecated(const wchar_t&, const test_regex_search_tag&)
|
||||
BOOST_REGEX_TEST_ERROR("Expression : \"" << expression.c_str() << "\" did not compile with the POSIX C API.", wchar_t);
|
||||
return;
|
||||
}
|
||||
// try and find the first occurance:
|
||||
// try and find the first occurrence:
|
||||
static const unsigned max_subs = 100;
|
||||
boost::regmatch_t matches[max_subs];
|
||||
if(boost::regexecW(&re, search_text.c_str(), max_subs, matches, posix_match_options) == 0)
|
||||
|
@ -98,7 +98,7 @@ void test_replace()
|
||||
TEST_REGEX_REPLACE("(?<one>a+)|(?<two>b+)", perl, "...aaabb,,,ab*abbb?", match_default|format_all, "(?{one}A:B)C", "...ACBC,,,ACBC*ACBC?");
|
||||
TEST_REGEX_REPLACE("(?<one>a+)|(?<two>b+)", perl, "...aaabb,,,ab*abbb?", match_default|format_all, "?{one}:B", "...B,,,B*B?");
|
||||
|
||||
// move to copying unmatched data, but replace first occurance only:
|
||||
// move to copying unmatched data, but replace first occurrence only:
|
||||
TEST_REGEX_REPLACE("a+", perl, "...aaa,,,", match_default|format_all|format_first_only, "bbb", "...bbb,,,");
|
||||
TEST_REGEX_REPLACE("a+(b+)", perl, "...aaabb,,,", match_default|format_all|format_first_only, "$1", "...bb,,,");
|
||||
TEST_REGEX_REPLACE("a+(b+)", perl, "...aaabb,,,ab*abbb?", match_default|format_all|format_first_only, "$1", "...bb,,,ab*abbb?");
|
||||
|
Reference in New Issue
Block a user