diff --git a/src/CLI.cpp b/src/CLI.cpp index 28826e778..c05170acc 100644 --- a/src/CLI.cpp +++ b/src/CLI.cpp @@ -292,12 +292,12 @@ void CLI::analyze () categorize (); // Remove all the syntactic sugar. - unsweetenTags (); - unsweetenAttributes (); - unsweetenAttributeModifiers (); - unsweetenPatterns (); - unsweetenIDs (); - unsweetenUUIDs (); + desugarTags (); + desugarAttributes (); + desugarAttributeModifiers (); + desugarPatterns (); + desugarIDs (); + desugarUUIDs (); } //////////////////////////////////////////////////////////////////////////////// @@ -326,7 +326,7 @@ const std::string CLI::getFilter () } dump ("CLI::getFilter"); - return "(" + filter + ")"; + return "( " + filter + " )"; } //////////////////////////////////////////////////////////////////////////////// @@ -516,7 +516,7 @@ bool CLI::canonicalize ( //////////////////////////////////////////////////////////////////////////////// // +tag --> tags _hastag_ tag // -tag --> tags _notag_ tag -void CLI::unsweetenTags () +void CLI::desugarTags () { std::vector reconstructed; std::vector ::iterator a; @@ -560,7 +560,7 @@ void CLI::unsweetenTags () //////////////////////////////////////////////////////////////////////////////// // :['"][]['"] --> name = value -void CLI::unsweetenAttributes () +void CLI::desugarAttributes () { std::vector reconstructed; std::vector ::iterator a; @@ -651,7 +651,7 @@ void CLI::unsweetenAttributes () //////////////////////////////////////////////////////////////////////////////// // .[:=]['"]['"] --> name value -void CLI::unsweetenAttributeModifiers () +void CLI::desugarAttributeModifiers () { std::vector reconstructed; std::vector ::iterator a; @@ -823,7 +823,7 @@ void CLI::unsweetenAttributeModifiers () //////////////////////////////////////////////////////////////////////////////// // /pattern/ --> description ~ 'pattern' -void CLI::unsweetenPatterns () +void CLI::desugarPatterns () { std::vector reconstructed; std::vector ::iterator a; @@ -872,7 +872,7 @@ void CLI::unsweetenPatterns () // a range: 5-10 // or a combination: 1,3,5-10 12 // -void CLI::unsweetenIDs () +void CLI::desugarIDs () { std::vector reconstructed; std::vector ::iterator a; @@ -1063,7 +1063,7 @@ void CLI::unsweetenIDs () } //////////////////////////////////////////////////////////////////////////////// -void CLI::unsweetenUUIDs () +void CLI::desugarUUIDs () { std::vector reconstructed; std::vector ::iterator a; diff --git a/src/CLI.h b/src/CLI.h index 2a11dc6f5..4fd5c4af2 100644 --- a/src/CLI.h +++ b/src/CLI.h @@ -79,12 +79,12 @@ private: void categorize (); bool exactMatch (const std::string&, const std::string&) const; bool canonicalize (std::string&, const std::string&, const std::string&) const; - void unsweetenTags (); - void unsweetenAttributes (); - void unsweetenAttributeModifiers (); - void unsweetenPatterns (); - void unsweetenIDs (); - void unsweetenUUIDs (); + void desugarTags (); + void desugarAttributes (); + void desugarAttributeModifiers (); + void desugarPatterns (); + void desugarIDs (); + void desugarUUIDs (); void dump (const std::string&) const; public: