summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.cxx
diff options
context:
space:
mode:
authorBill Lorensen <lorensen@crd.ge.com>2001-09-12 21:09:02 (GMT)
committerBill Lorensen <lorensen@crd.ge.com>2001-09-12 21:09:02 (GMT)
commit1e9fbdc38cad9519024a7302fabefd0d792aa039 (patch)
tree8c6c22f1a77bdca088da7d433ec105e4c9f8e22b /Source/cmSystemTools.cxx
parentaac4e8eb3cdd05b865aadeddfcca332967affc1a (diff)
downloadCMake-1e9fbdc38cad9519024a7302fabefd0d792aa039.zip
CMake-1e9fbdc38cad9519024a7302fabefd0d792aa039.tar.gz
CMake-1e9fbdc38cad9519024a7302fabefd0d792aa039.tar.bz2
ENH: Added LowerCase method.
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r--Source/cmSystemTools.cxx13
1 files changed, 13 insertions, 0 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index fb2f297..4d9bf11 100644
--- a/Source/cmSystemTools.cxx
+++ b/Source/cmSystemTools.cxx
@@ -417,6 +417,19 @@ std::string cmSystemTools::Capitalized(const std::string& s)
}
+// Return a lower case string
+std::string cmSystemTools::LowerCase(const std::string& s)
+{
+ std::string n;
+ n.resize(s.size());
+ for (size_t i = 0; i < s.size(); i++)
+ {
+ n[i] = tolower(s[i]);
+ }
+ return n;
+}
+
+
// convert windows slashes to unix slashes \ with /
const char *cmSystemTools::ConvertToUnixSlashes(std::string& path)
{