]> git.stg.codes - stg.git/blobdiff - include/stg/user_property.h
Correcting case insensitive search
[stg.git] / include / stg / user_property.h
index 398c457914894ea083d8f31e3cde6756985f569d..f2421213bc6efbdc3dc3ccacc62dccd2588413d3 100644 (file)
@@ -392,7 +392,7 @@ else
 inline
 std::string USER_PROPERTIES::GetPropertyValue(const std::string & name) const
 {
-std::map<std::string, USER_PROPERTY_BASE*>::const_iterator it = properties.find(name);
+std::map<std::string, USER_PROPERTY_BASE*>::const_iterator it = properties.find(ToLower(name));
 if (it == properties.end())
     return "";
 return it->second->ToString();
@@ -401,7 +401,7 @@ return it->second->ToString();
 inline
 bool USER_PROPERTIES::Exists(const std::string & name) const
 {
-return properties.find(name) != properties.end();
+return properties.find(ToLower(name)) != properties.end();
 }
 //-------------------------------------------------------------------------
 //-------------------------------------------------------------------------