From e5b21dbbb569ebed67b3c8af1482bcd899781c9b Mon Sep 17 00:00:00 2001 From: Reinhard Pfau Date: Mon, 7 Apr 2008 14:33:34 +0000 Subject: [PATCH] libi2ncommon: (reinhard) disabled old to_lower/to_upper funcs and imported new ones into global namespace for compatibility. --- src/stringfunc.cpp | 2 ++ src/stringfunc.hxx | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletions(-) diff --git a/src/stringfunc.cpp b/src/stringfunc.cpp index 98fe5e1..7753d96 100644 --- a/src/stringfunc.cpp +++ b/src/stringfunc.cpp @@ -865,6 +865,7 @@ bool replace_all(string &base, const string &ist, const string &soll) return found_ist; } +#if 0 string to_lower(const string &src) { string dst = src; @@ -886,6 +887,7 @@ string to_upper(const string &src) return dst; } +#endif string nice_unit_format(int input) { diff --git a/src/stringfunc.hxx b/src/stringfunc.hxx index dffa81d..b211a17 100644 --- a/src/stringfunc.hxx +++ b/src/stringfunc.hxx @@ -181,9 +181,14 @@ std::string to_string(const T& v) } // eo namespace I2n - +#if 0 std::string to_lower(const std::string &src); std::string to_upper(const std::string &src); +#else +// compatibility: import lower/upper funcs from I2n: +using I2n::to_lower; +using I2n::to_upper; +#endif std::string nice_unit_format(int input); -- 1.7.1