Clean up #includes.

This commit is contained in:
jzmaddock
2024-04-10 12:28:57 +01:00
parent b4f600e910
commit fbfdda66fd
19 changed files with 89 additions and 15 deletions
+4
View File
@@ -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)
+4
View File
@@ -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("<[^>]*>");
+4
View File
@@ -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; }
+4
View File
@@ -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})");
+4
View File
@@ -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
+4
View File
@@ -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
+4
View File
@@ -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
+4
View File
@@ -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;
+4
View File
@@ -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;
+4
View File
@@ -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
+4
View File
@@ -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
+4
View File
@@ -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
+4
View File
@@ -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)
{
+4
View File
@@ -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;
+4 -2
View File
@@ -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);