2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 07:07:42 +00:00

tons of database interface work

This commit is contained in:
Jack Andersen
2015-05-20 16:33:05 -10:00
parent 880c9f6c95
commit f02aa1ca8f
20 changed files with 874 additions and 101 deletions

View File

@@ -33,7 +33,7 @@ static void printHelp(const char* pname)
static const std::regex regOPEN("-o\\s*(\\S+)", std::regex::ECMAScript|std::regex::optimize);
static const std::regex regVERBOSE("-v(v*)", std::regex::ECMAScript|std::regex::optimize);
static const std::regex regFORCE("-f", std::regex::ECMAScript|std::regex::optimize);
static const std::regex regWS("\\S+", std::regex::ECMAScript|std::regex::optimize);
static const std::regex regNOWS("\\S+", std::regex::ECMAScript|std::regex::optimize);
/* Iterates string segments around matched arguments and
* filters args string accordingly */
@@ -101,7 +101,7 @@ int main(int argc, const char** argv)
}
/* Gather remaining args */
for (std::sregex_token_iterator it(args.begin(), args.end(), regWS);
for (std::sregex_token_iterator it(args.begin(), args.end(), regNOWS);
it != std::sregex_token_iterator() ; ++it)
{
const std::string& str = *it;