~ifolder-dev/simias/trunk-packaging

« back to all changes in this revision

Viewing changes to tools/gsoap/gsoap-linux-2.7/mod_gsoap/gsoap_win/isapi/gsoap/.svn/text-base/casecmpless.h.svn-base

  • Committer: Jorge O. Castro
  • Date: 2007-12-03 06:56:46 UTC
  • Revision ID: jorge@ubuntu.com-20071203065646-mupcnjcwgm5mnhyt
* Remove a bunch of .svn directories we no longer need.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/** Interface for the casecmpless struct
2
 
    @file casecmpless.h
3
 
  */
4
 
#ifndef CASECMPLESS_H
5
 
#define CASECMPLESS_H
6
 
 
7
 
/** helper for case-insensitive less<> operator for the map<> template.*/
8
 
struct casecmpless {
9
 
        bool operator()(const std::string &s1, const std::string &s2) const { 
10
 
#ifdef _WIN32
11
 
                return stricmp(s1.c_str(), s2.c_str()) < 0;
12
 
#else
13
 
                return strcasecmp(s1.c_str(), s2.c_str()) < 0;
14
 
#endif
15
 
        };
16
 
};
17
 
 
18
 
#endif //CASECMPLESS_H