forked from boostorg/regex
Change detail namespace.
Big search and replace to change name of internal namepace so it's mangled with the Boost version number - the aim is to reduce the chances of mixing different header and library versions.
This commit is contained in:
@ -150,24 +150,24 @@ void print_sort_syntax(const traits& pt, const char* name)
|
||||
std::cout << "Sort Key Syntax for type " << name << ":\n";
|
||||
typedef typename traits::char_type char_type;
|
||||
char_type delim;
|
||||
unsigned result = ::boost::re_detail::find_sort_syntax(&pt, &delim);
|
||||
unsigned result = ::boost::BOOST_REGEX_DETAIL_NS::find_sort_syntax(&pt, &delim);
|
||||
std::cout << " ";
|
||||
switch(result)
|
||||
{
|
||||
case boost::re_detail::sort_C:
|
||||
case boost::BOOST_REGEX_DETAIL_NS::sort_C:
|
||||
std::cout << "sort_C";
|
||||
break;
|
||||
case boost::re_detail::sort_fixed:
|
||||
case boost::BOOST_REGEX_DETAIL_NS::sort_fixed:
|
||||
std::cout << "sort_fixed" << " " << static_cast<int>(delim);
|
||||
break;
|
||||
case boost::re_detail::sort_delim:
|
||||
case boost::BOOST_REGEX_DETAIL_NS::sort_delim:
|
||||
{
|
||||
std::cout << "sort_delim" << " ";
|
||||
std::basic_string<char_type> s(1, delim);
|
||||
print_string(s);
|
||||
}
|
||||
break;
|
||||
case boost::re_detail::sort_unknown:
|
||||
case boost::BOOST_REGEX_DETAIL_NS::sort_unknown:
|
||||
std::cout << "sort_unknown";
|
||||
break;
|
||||
default:
|
||||
|
@ -86,7 +86,7 @@ void compare_result(const MR1& w1, const MR2& w2, boost::mpl::int_<2> const*)
|
||||
{
|
||||
BOOST_REGEX_TEST_ERROR("Matched mismatch in match_results class", UChar32);
|
||||
}
|
||||
if((w1.position(i) != boost::re_detail::distance(iterator_type(w2.prefix().first), iterator_type(w2[i].first))) || (w1.length(i) != boost::re_detail::distance(iterator_type(w2[i].first), iterator_type(w2[i].second))))
|
||||
if((w1.position(i) != boost::BOOST_REGEX_DETAIL_NS::distance(iterator_type(w2.prefix().first), iterator_type(w2[i].first))) || (w1.length(i) != boost::BOOST_REGEX_DETAIL_NS::distance(iterator_type(w2[i].first), iterator_type(w2[i].second))))
|
||||
{
|
||||
BOOST_REGEX_TEST_ERROR("Iterator mismatch in match_results class", UChar32);
|
||||
}
|
||||
@ -116,7 +116,7 @@ void compare_result(const MR1& w1, const MR2& w2, boost::mpl::int_<1> const*)
|
||||
{
|
||||
BOOST_REGEX_TEST_ERROR("Matched mismatch in match_results class", UChar32);
|
||||
}
|
||||
if((w1.position(i) != boost::re_detail::distance(iterator_type(w2.prefix().first), iterator_type(w2[i].first))) || (w1.length(i) != boost::re_detail::distance(iterator_type(w2[i].first), iterator_type(w2[i].second))))
|
||||
if((w1.position(i) != boost::BOOST_REGEX_DETAIL_NS::distance(iterator_type(w2.prefix().first), iterator_type(w2[i].first))) || (w1.length(i) != boost::BOOST_REGEX_DETAIL_NS::distance(iterator_type(w2[i].first), iterator_type(w2[i].second))))
|
||||
{
|
||||
BOOST_REGEX_TEST_ERROR("Iterator mismatch in match_results class", UChar32);
|
||||
}
|
||||
|
@ -170,21 +170,21 @@ void test_mfc(const char&, const test_regex_search_tag&)
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable:4244)
|
||||
#endif
|
||||
if(boost::re_detail::distance(s.GetString(), tstart2->first) != last_end2)
|
||||
if(boost::BOOST_REGEX_DETAIL_NS::distance(s.GetString(), tstart2->first) != last_end2)
|
||||
{
|
||||
BOOST_REGEX_TEST_ERROR(
|
||||
"Error in location of start of field split, found: "
|
||||
<< boost::re_detail::distance(s.GetString(), tstart2->first)
|
||||
<< boost::BOOST_REGEX_DETAIL_NS::distance(s.GetString(), tstart2->first)
|
||||
<< ", expected: "
|
||||
<< last_end2
|
||||
<< ".", char);
|
||||
}
|
||||
int expected_end = static_cast<int>(answer_table[0] < 0 ? s.GetLength() : answer_table[0]);
|
||||
if(boost::re_detail::distance(s.GetString(), tstart2->second) != expected_end)
|
||||
if(boost::BOOST_REGEX_DETAIL_NS::distance(s.GetString(), tstart2->second) != expected_end)
|
||||
{
|
||||
BOOST_REGEX_TEST_ERROR(
|
||||
"Error in location of end2 of field split, found: "
|
||||
<< boost::re_detail::distance(s.GetString(), tstart2->second)
|
||||
<< boost::BOOST_REGEX_DETAIL_NS::distance(s.GetString(), tstart2->second)
|
||||
<< ", expected: "
|
||||
<< expected_end
|
||||
<< ".", char);
|
||||
@ -348,21 +348,21 @@ void test_mfc(const wchar_t&, const test_regex_search_tag&)
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable:4244)
|
||||
#endif
|
||||
if(boost::re_detail::distance(s.GetString(), tstart2->first) != last_end2)
|
||||
if(boost::BOOST_REGEX_DETAIL_NS::distance(s.GetString(), tstart2->first) != last_end2)
|
||||
{
|
||||
BOOST_REGEX_TEST_ERROR(
|
||||
"Error in location of start of field split, found: "
|
||||
<< boost::re_detail::distance(s.GetString(), tstart2->first)
|
||||
<< boost::BOOST_REGEX_DETAIL_NS::distance(s.GetString(), tstart2->first)
|
||||
<< ", expected: "
|
||||
<< last_end2
|
||||
<< ".", wchar_t);
|
||||
}
|
||||
int expected_end = static_cast<int>(answer_table[0] < 0 ? s.GetLength() : answer_table[0]);
|
||||
if(boost::re_detail::distance(s.GetString(), tstart2->second) != expected_end)
|
||||
if(boost::BOOST_REGEX_DETAIL_NS::distance(s.GetString(), tstart2->second) != expected_end)
|
||||
{
|
||||
BOOST_REGEX_TEST_ERROR(
|
||||
"Error in location of end2 of field split, found: "
|
||||
<< boost::re_detail::distance(s.GetString(), tstart2->second)
|
||||
<< boost::BOOST_REGEX_DETAIL_NS::distance(s.GetString(), tstart2->second)
|
||||
<< ", expected: "
|
||||
<< expected_end
|
||||
<< ".", wchar_t);
|
||||
|
@ -47,18 +47,18 @@ void test_sub_match(const boost::sub_match<BidirectionalIterator>& sub, Bidirect
|
||||
}
|
||||
else
|
||||
{
|
||||
if(boost::re_detail::distance(base, sub.first) != answer_table[2*i])
|
||||
if(boost::BOOST_REGEX_DETAIL_NS::distance(base, sub.first) != answer_table[2*i])
|
||||
{
|
||||
BOOST_REGEX_TEST_ERROR(
|
||||
"Error in start location of sub-expression "
|
||||
<< i << ", found " << boost::re_detail::distance(base, sub.first)
|
||||
<< i << ", found " << boost::BOOST_REGEX_DETAIL_NS::distance(base, sub.first)
|
||||
<< ", expected " << answer_table[2*i] << ".", charT);
|
||||
}
|
||||
if(boost::re_detail::distance(base, sub.second) != answer_table[1+ 2*i])
|
||||
if(boost::BOOST_REGEX_DETAIL_NS::distance(base, sub.second) != answer_table[1+ 2*i])
|
||||
{
|
||||
BOOST_REGEX_TEST_ERROR(
|
||||
"Error in end location of sub-expression "
|
||||
<< i << ", found " << boost::re_detail::distance(base, sub.second)
|
||||
<< i << ", found " << boost::BOOST_REGEX_DETAIL_NS::distance(base, sub.second)
|
||||
<< ", expected " << answer_table[1 + 2*i] << ".", charT);
|
||||
}
|
||||
}
|
||||
@ -238,21 +238,21 @@ void test_regex_token_iterator(boost::basic_regex<charT, traits>& r)
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable:4244)
|
||||
#endif
|
||||
if(boost::re_detail::distance(search_text.begin(), start2->first) != last_end2)
|
||||
if(boost::BOOST_REGEX_DETAIL_NS::distance(search_text.begin(), start2->first) != last_end2)
|
||||
{
|
||||
BOOST_REGEX_TEST_ERROR(
|
||||
"Error in location of start of field split, found: "
|
||||
<< boost::re_detail::distance(search_text.begin(), start2->first)
|
||||
<< boost::BOOST_REGEX_DETAIL_NS::distance(search_text.begin(), start2->first)
|
||||
<< ", expected: "
|
||||
<< last_end2
|
||||
<< ".", charT);
|
||||
}
|
||||
int expected_end = static_cast<int>(answer_table[0] < 0 ? search_text.size() : answer_table[0]);
|
||||
if(boost::re_detail::distance(search_text.begin(), start2->second) != expected_end)
|
||||
if(boost::BOOST_REGEX_DETAIL_NS::distance(search_text.begin(), start2->second) != expected_end)
|
||||
{
|
||||
BOOST_REGEX_TEST_ERROR(
|
||||
"Error in location of end2 of field split, found: "
|
||||
<< boost::re_detail::distance(search_text.begin(), start2->second)
|
||||
<< boost::BOOST_REGEX_DETAIL_NS::distance(search_text.begin(), start2->second)
|
||||
<< ", expected: "
|
||||
<< expected_end
|
||||
<< ".", charT);
|
||||
|
@ -55,18 +55,18 @@ void test_sub_match(const boost::sub_match<BidirectionalIterator>& sub, Bidirect
|
||||
}
|
||||
else
|
||||
{
|
||||
if(boost::re_detail::distance(base, sub.first) != answer_table[2*i])
|
||||
if(boost::BOOST_REGEX_DETAIL_NS::distance(base, sub.first) != answer_table[2*i])
|
||||
{
|
||||
BOOST_REGEX_TEST_ERROR(
|
||||
"Error in start location of sub-expression "
|
||||
<< i << ", found " << boost::re_detail::distance(base, sub.first)
|
||||
<< i << ", found " << boost::BOOST_REGEX_DETAIL_NS::distance(base, sub.first)
|
||||
<< ", expected " << answer_table[2*i] << ".", charT);
|
||||
}
|
||||
if(boost::re_detail::distance(base, sub.second) != answer_table[1+ 2*i])
|
||||
if(boost::BOOST_REGEX_DETAIL_NS::distance(base, sub.second) != answer_table[1+ 2*i])
|
||||
{
|
||||
BOOST_REGEX_TEST_ERROR(
|
||||
"Error in end location of sub-expression "
|
||||
<< i << ", found " << boost::re_detail::distance(base, sub.second)
|
||||
<< i << ", found " << boost::BOOST_REGEX_DETAIL_NS::distance(base, sub.second)
|
||||
<< ", expected " << answer_table[1 + 2*i] << ".", charT);
|
||||
}
|
||||
}
|
||||
@ -291,21 +291,21 @@ void test_regex_token_iterator(boost::basic_regex<charT, traits>& r)
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable:4244)
|
||||
#endif
|
||||
if(boost::re_detail::distance(search_text.begin(), start2->first) != last_end2)
|
||||
if(boost::BOOST_REGEX_DETAIL_NS::distance(search_text.begin(), start2->first) != last_end2)
|
||||
{
|
||||
BOOST_REGEX_TEST_ERROR(
|
||||
"Error in location of start of field split, found: "
|
||||
<< boost::re_detail::distance(search_text.begin(), start2->first)
|
||||
<< boost::BOOST_REGEX_DETAIL_NS::distance(search_text.begin(), start2->first)
|
||||
<< ", expected: "
|
||||
<< last_end2
|
||||
<< ".", charT);
|
||||
}
|
||||
int expected_end = static_cast<int>(answer_table[0] < 0 ? search_text.size() : answer_table[0]);
|
||||
if(boost::re_detail::distance(search_text.begin(), start2->second) != expected_end)
|
||||
if(boost::BOOST_REGEX_DETAIL_NS::distance(search_text.begin(), start2->second) != expected_end)
|
||||
{
|
||||
BOOST_REGEX_TEST_ERROR(
|
||||
"Error in location of end2 of field split, found: "
|
||||
<< boost::re_detail::distance(search_text.begin(), start2->second)
|
||||
<< boost::BOOST_REGEX_DETAIL_NS::distance(search_text.begin(), start2->second)
|
||||
<< ", expected: "
|
||||
<< expected_end
|
||||
<< ".", charT);
|
||||
@ -350,21 +350,21 @@ void test_regex_token_iterator(boost::basic_regex<charT, traits>& r)
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable:4244)
|
||||
#endif
|
||||
if(boost::re_detail::distance(search_text.begin(), start2->first) != last_end2)
|
||||
if(boost::BOOST_REGEX_DETAIL_NS::distance(search_text.begin(), start2->first) != last_end2)
|
||||
{
|
||||
BOOST_REGEX_TEST_ERROR(
|
||||
"Error in location of start of field split, found: "
|
||||
<< boost::re_detail::distance(search_text.begin(), start2->first)
|
||||
<< boost::BOOST_REGEX_DETAIL_NS::distance(search_text.begin(), start2->first)
|
||||
<< ", expected: "
|
||||
<< last_end2
|
||||
<< ".", charT);
|
||||
}
|
||||
int expected_end = static_cast<int>(answer_table[0] < 0 ? search_text.size() : answer_table[0]);
|
||||
if(boost::re_detail::distance(search_text.begin(), start2->second) != expected_end)
|
||||
if(boost::BOOST_REGEX_DETAIL_NS::distance(search_text.begin(), start2->second) != expected_end)
|
||||
{
|
||||
BOOST_REGEX_TEST_ERROR(
|
||||
"Error in location of end2 of field split, found: "
|
||||
<< boost::re_detail::distance(search_text.begin(), start2->second)
|
||||
<< boost::BOOST_REGEX_DETAIL_NS::distance(search_text.begin(), start2->second)
|
||||
<< ", expected: "
|
||||
<< expected_end
|
||||
<< ".", charT);
|
||||
|
Reference in New Issue
Block a user