From: Reinhard Pfau Date: Mon, 7 Apr 2008 14:33:34 +0000 (+0000) Subject: libi2ncommon: (reinhard) disabled old to_lower/to_upper funcs and imported new ones... X-Git-Tag: v2.6~187 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=e5b21dbbb569ebed67b3c8af1482bcd899781c9b;p=libi2ncommon libi2ncommon: (reinhard) disabled old to_lower/to_upper funcs and imported new ones into global namespace for compatibility. --- 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);