forked from boostorg/regex
Clean up #includes.
This commit is contained in:
@@ -25,7 +25,11 @@ import std.core;
|
||||
#include <iostream>
|
||||
#endif
|
||||
|
||||
#ifdef TEST_HEADERS
|
||||
#include <boost/regex.hpp>
|
||||
#else
|
||||
import boost.regex;
|
||||
#endif
|
||||
|
||||
|
||||
bool validate_card_format(const std::string& s)
|
||||
|
||||
@@ -28,7 +28,11 @@ import std.core;
|
||||
#include <cstring>
|
||||
#endif
|
||||
|
||||
#ifdef TEST_HEADERS
|
||||
#include <boost/regex.hpp>
|
||||
#else
|
||||
import boost.regex;
|
||||
#endif
|
||||
|
||||
// match some kind of html tag:
|
||||
boost::regex e("<[^>]*>");
|
||||
|
||||
@@ -28,7 +28,11 @@ import std.core;
|
||||
#include <cstring>
|
||||
#endif
|
||||
|
||||
#ifdef TEST_HEADERS
|
||||
#include <boost/regex.hpp>
|
||||
#else
|
||||
import boost.regex;
|
||||
#endif
|
||||
|
||||
#ifdef BOOST_NO_STDC_NAMESPACE
|
||||
namespace std{ using ::memmove; }
|
||||
|
||||
@@ -28,7 +28,11 @@ import std.core;
|
||||
#include <iostream>
|
||||
#endif
|
||||
|
||||
#ifdef TEST_HEADERS
|
||||
#include <boost/regex.hpp>
|
||||
#else
|
||||
import boost.regex;
|
||||
#endif
|
||||
|
||||
boost::regex e("(\\d{3,4})[- ]?(\\d{4})[- ]?(\\d{4})[- ]?(\\d{4})");
|
||||
|
||||
|
||||
@@ -28,7 +28,11 @@ import std.core;
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef TEST_HEADERS
|
||||
#include <boost/regex.hpp>
|
||||
#else
|
||||
import boost.regex;
|
||||
#endif
|
||||
|
||||
// purpose:
|
||||
// takes the contents of a file in the form of a string
|
||||
|
||||
@@ -28,7 +28,11 @@ import std.core;
|
||||
#include <iostream>
|
||||
#endif
|
||||
|
||||
#ifdef TEST_HEADERS
|
||||
#include <boost/regex.hpp>
|
||||
#else
|
||||
import boost.regex;
|
||||
#endif
|
||||
|
||||
// purpose:
|
||||
// takes the contents of a file in the form of a string
|
||||
|
||||
@@ -29,7 +29,11 @@ import std.core;
|
||||
#include <fstream>
|
||||
#endif
|
||||
|
||||
#ifdef TEST_HEADERS
|
||||
#include <boost/regex.hpp>
|
||||
#else
|
||||
import boost.regex;
|
||||
#endif
|
||||
|
||||
// purpose:
|
||||
// takes the contents of a file in the form of a string
|
||||
|
||||
@@ -29,7 +29,11 @@ import std.core;
|
||||
#include <algorithm>
|
||||
#endif
|
||||
|
||||
#ifdef TEST_HEADERS
|
||||
#include <boost/regex.hpp>
|
||||
#else
|
||||
import boost.regex;
|
||||
#endif
|
||||
|
||||
using namespace std;
|
||||
|
||||
|
||||
@@ -27,7 +27,11 @@ import std.core;
|
||||
#include <iostream>
|
||||
#endif
|
||||
|
||||
#ifdef TEST_HEADERS
|
||||
#include <boost/regex.hpp>
|
||||
#else
|
||||
import boost.regex;
|
||||
#endif
|
||||
|
||||
using namespace std;
|
||||
using namespace boost;
|
||||
|
||||
@@ -31,7 +31,11 @@ import std.core;
|
||||
#include <iostream>
|
||||
#endif
|
||||
|
||||
#ifdef TEST_HEADERS
|
||||
#include <boost/regex.hpp>
|
||||
#else
|
||||
import boost.regex;
|
||||
#endif
|
||||
|
||||
// purpose:
|
||||
// takes the contents of a file and transform to
|
||||
|
||||
@@ -31,7 +31,11 @@ import std.core;
|
||||
#include <iostream>
|
||||
#endif
|
||||
|
||||
#ifdef TEST_HEADERS
|
||||
#include <boost/regex.hpp>
|
||||
#else
|
||||
import boost.regex;
|
||||
#endif
|
||||
|
||||
// purpose:
|
||||
// takes the contents of a file and transform to
|
||||
|
||||
@@ -27,7 +27,11 @@ import std.core;
|
||||
#include <fstream>
|
||||
#endif
|
||||
|
||||
#ifdef TEST_HEADERS
|
||||
#include <boost/regex.hpp>
|
||||
#else
|
||||
import boost.regex;
|
||||
#endif
|
||||
|
||||
// purpose:
|
||||
// takes the contents of a file in the form of a string
|
||||
|
||||
@@ -27,7 +27,11 @@ import std.core;
|
||||
#include <iostream>
|
||||
#endif
|
||||
|
||||
#ifdef TEST_HEADERS
|
||||
#include <boost/regex.hpp>
|
||||
#else
|
||||
import boost.regex;
|
||||
#endif
|
||||
|
||||
unsigned tokenise(std::list<std::string>& l, std::string& s)
|
||||
{
|
||||
|
||||
@@ -28,7 +28,11 @@ import std.core;
|
||||
#include <iterator>
|
||||
#endif
|
||||
|
||||
#ifdef TEST_HEADERS
|
||||
#include <boost/regex.hpp>
|
||||
#else
|
||||
import boost.regex;
|
||||
#endif
|
||||
|
||||
boost::regex e("<\\s*A\\s+[^>]*href\\s*=\\s*\"([^\"]*)\"",
|
||||
boost::regex::normal | boost::regex::icase);
|
||||
|
||||
@@ -26,7 +26,11 @@ import std.core;
|
||||
#include <string>
|
||||
#endif
|
||||
|
||||
#ifdef TEST_HEADERS
|
||||
#include <boost/regex.hpp>
|
||||
#else
|
||||
import boost.regex;
|
||||
#endif
|
||||
|
||||
using namespace std;
|
||||
|
||||
|
||||
@@ -16,8 +16,11 @@
|
||||
* DESCRIPTION: regex_token_iterator example: spit out linked URL's.
|
||||
*/
|
||||
|
||||
|
||||
#ifdef TEST_HEADERS
|
||||
#include <boost/regex.hpp>
|
||||
#else
|
||||
import boost.regex;
|
||||
#endif
|
||||
|
||||
#ifdef __cpp_lib_modules
|
||||
import std;
|
||||
@@ -28,7 +31,6 @@ import std.core;
|
||||
#include <iostream>
|
||||
#include <iterator>
|
||||
#endif
|
||||
|
||||
boost::regex e("<\\s*A\\s+[^>]*href\\s*=\\s*\"([^\"]*)\"",
|
||||
boost::regex::normal | boost::regex::icase);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user