#ifndef _FG_STRX_HXX #define _FG_STRX_HXX #include #include /* toupper */ ///////////////////////////////////////////////////////// // Case insensitive comparison of strings class LeSsThAn{ public: bool operator() (const std::string& a, const std::string& b) const { size_t a_len = a.length(); size_t b_len = b.length(); size_t lim = a_len < b_len ? a_len : b_len; for (size_t i=0; i chb) return false; } // here if one is an extension of the other if ( a_len < b_len ) return true; return false; } }; #endif