OLD | NEW |
1 // Copyright 2009 The RE2 Authors. All Rights Reserved. | 1 // Copyright 2009 The RE2 Authors. All Rights Reserved. |
2 // Use of this source code is governed by a BSD-style | 2 // Use of this source code is governed by a BSD-style |
3 // license that can be found in the LICENSE file. | 3 // license that can be found in the LICENSE file. |
4 | 4 |
5 #ifndef RE2_UTIL_UTIL_H__ | 5 #ifndef RE2_UTIL_UTIL_H__ |
6 #define RE2_UTIL_UTIL_H__ | 6 #define RE2_UTIL_UTIL_H__ |
7 | 7 |
8 // C | 8 // C |
9 #include <stdio.h> | 9 #include <stdio.h> |
10 #include <string.h> | 10 #include <string.h> |
(...skipping 27 matching lines...) Expand all Loading... |
38 using std::string; | 38 using std::string; |
39 using std::min; | 39 using std::min; |
40 using std::max; | 40 using std::max; |
41 using std::ostream; | 41 using std::ostream; |
42 using std::map; | 42 using std::map; |
43 using std::stack; | 43 using std::stack; |
44 using std::sort; | 44 using std::sort; |
45 using std::swap; | 45 using std::swap; |
46 using std::make_pair; | 46 using std::make_pair; |
47 | 47 |
48 #if defined(__GNUC__) && !defined(USE_CXX0X) && !defined(OS_ANDROID) | 48 #if defined(__GNUC__) && !defined(USE_CXX0X) && !defined(OS_ANDROID) && !defined
(_LIBCPP_VERSION) |
49 | 49 |
50 #include <tr1/unordered_set> | 50 #include <tr1/unordered_set> |
51 using std::tr1::unordered_set; | 51 using std::tr1::unordered_set; |
52 | 52 |
53 #else | 53 #else |
54 | 54 |
55 #include <unordered_set> | 55 #include <unordered_set> |
56 #if defined(WIN32) || defined(OS_ANDROID) | 56 #if defined(WIN32) || defined(OS_ANDROID) |
57 using std::tr1::unordered_set; | 57 using std::tr1::unordered_set; |
58 #else | 58 #else |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 } | 115 } |
116 | 116 |
117 } // namespace re2 | 117 } // namespace re2 |
118 | 118 |
119 #include "util/arena.h" | 119 #include "util/arena.h" |
120 #include "util/logging.h" | 120 #include "util/logging.h" |
121 #include "util/mutex.h" | 121 #include "util/mutex.h" |
122 #include "util/utf.h" | 122 #include "util/utf.h" |
123 | 123 |
124 #endif // RE2_UTIL_UTIL_H__ | 124 #endif // RE2_UTIL_UTIL_H__ |
OLD | NEW |