mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-09-10 04:00:37 +02:00
Cleanup
- Renamed RegX to RX. Got sick of the RegX name - looked too much like GenX.
This commit is contained in:
parent
03dbf7f468
commit
a7d6b91ad3
9 changed files with 52 additions and 52 deletions
|
@ -29,7 +29,7 @@
|
|||
#include <sstream>
|
||||
#include <algorithm>
|
||||
#include <stdlib.h>
|
||||
#include <RegX.h>
|
||||
#include <RX.h>
|
||||
#include <Context.h>
|
||||
#include <util.h>
|
||||
#include <cmake.h>
|
||||
|
@ -223,7 +223,7 @@ int CmdDiagnostics::execute (std::string& output)
|
|||
char* p = fgets (buffer, 1023, fp);
|
||||
pclose (fp);
|
||||
|
||||
RegX r ("usage", false);
|
||||
RX r ("usage", false);
|
||||
if (p)
|
||||
out << " scp: "
|
||||
<< (r.match (buffer) ? "found" : "n/a")
|
||||
|
@ -238,7 +238,7 @@ int CmdDiagnostics::execute (std::string& output)
|
|||
// rsync version 2.6.9 protocol version 29
|
||||
if (p)
|
||||
{
|
||||
RegX r ("version ([0-9]+\\.[0-9]+\\.[0-9]+)", false);
|
||||
RX r ("version ([0-9]+\\.[0-9]+\\.[0-9]+)", false);
|
||||
matches.clear ();
|
||||
r.match (matches, buffer);
|
||||
out << " rsync: "
|
||||
|
@ -255,7 +255,7 @@ int CmdDiagnostics::execute (std::string& output)
|
|||
// curl 7.19.7 (universal-apple-darwin10.0) libcurl/7.19.7 OpenSSL/0.9.8l zlib/1.2.3
|
||||
if (p)
|
||||
{
|
||||
RegX r ("curl ([0-9]+\\.[0-9]+\\.[0-9]+)", false);
|
||||
RX r ("curl ([0-9]+\\.[0-9]+\\.[0-9]+)", false);
|
||||
matches.clear ();
|
||||
r.match (matches, buffer);
|
||||
out << " curl: "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue