iFun Engine API  1.0.0-b2936
Great Technology for Great Games
 All Classes Files Functions Variables Typedefs Macros
misc.h
Go to the documentation of this file.
1 // Copyright (C) 2013-2015 iFunFactory Inc. All Rights Reserved.
2 //
3 // This work is confidential and proprietary to iFunFactory Inc. and
4 // must not be used, disclosed, copied, or distributed without the prior
5 // consent of iFunFactory Inc.
6 
9 #ifndef INCLUDE_FUNAPI_UTILITY_MISC_H_
10 #define INCLUDE_FUNAPI_UTILITY_MISC_H_
11 
12 #include <boost/algorithm/string/predicate.hpp>
13 
14 
15 namespace fun {
16 
17 namespace impl {
18 namespace util {
19 
21 struct CaseInsensitiveLess {
26  inline bool operator()(const string& lhs, const string& rhs) const {
27  return boost::ilexicographical_compare(lhs, rhs);
28  }
29 };
30 
31 } // namespace util
32 } // namespace impl
33 
34 } // namespace fun
35 
36 #endif // INCLUDE_FUNAPI_UTILITY_MISC_H_