summaryrefslogtreecommitdiffstats
path: root/Source/cmValue.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmValue.cxx')
-rw-r--r--Source/cmValue.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/cmValue.cxx b/Source/cmValue.cxx
index 59bf201..044db29 100644
--- a/Source/cmValue.cxx
+++ b/Source/cmValue.cxx
@@ -73,11 +73,21 @@ bool cmValue::IsOff(cm::string_view value) noexcept
return IsNOTFOUND(value);
}
+
bool cmValue::IsNOTFOUND(cm::string_view value) noexcept
{
return (value == "NOTFOUND"_s) || cmHasSuffix(value, "-NOTFOUND"_s);
}
+bool cmValue::IsInternallyOn(cm::string_view value) noexcept
+{
+ return (value.size() == 4) && //
+ (value[0] == 'I' || value[0] == 'i') && //
+ (value[1] == '_') && //
+ (value[2] == 'O' || value[2] == 'o') && //
+ (value[3] == 'N' || value[3] == 'n');
+}
+
int cmValue::Compare(cmValue value) const noexcept
{
if (this->Value == nullptr && !value) {