From 91f4eade509c01beedca21b3c30ca720249c8c18 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Mon, 27 Oct 2014 13:23:12 -0400 Subject: [PATCH] CLI - Implemented ::isRCOverride. --- src/CLI.cpp | 9 +++++++++ src/CLI.h | 1 + 2 files changed, 10 insertions(+) diff --git a/src/CLI.cpp b/src/CLI.cpp index 648a4b7bd..d508a3782 100644 --- a/src/CLI.cpp +++ b/src/CLI.cpp @@ -1691,6 +1691,15 @@ void CLI::decomposeModSubstitutions () } } +//////////////////////////////////////////////////////////////////////////////// +bool CLI::isRCOverride (const std::string& raw) const +{ + if (raw.length () > 3 && raw.substr (0, 3) == "rc:") + return true; + + return false; +} + //////////////////////////////////////////////////////////////////////////////// bool CLI::isUUID (const std::string& raw) const { diff --git a/src/CLI.h b/src/CLI.h index 009dfff0d..070a97234 100644 --- a/src/CLI.h +++ b/src/CLI.h @@ -98,6 +98,7 @@ private: void decomposeModTags (); void decomposeModSubstitutions (); + bool isRCOverride (const std::string&) const; bool isUUID (const std::string&) const; public: