Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(455)

Side by Side Diff: third_party/re2/util/util.h

Issue 691783003: [WIP NOT FOR COMMIT] Switch Android to libc++ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove more unused stuff Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/re2/patches/re2-libcxx.patch ('k') | tools/android/run_pie/run_pie.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 11 matching lines...) Expand all
22 #include <vector> 22 #include <vector>
23 #include <string> 23 #include <string>
24 #include <algorithm> 24 #include <algorithm>
25 #include <iosfwd> 25 #include <iosfwd>
26 #include <map> 26 #include <map>
27 #include <stack> 27 #include <stack>
28 #include <ostream> 28 #include <ostream>
29 #include <utility> 29 #include <utility>
30 #include <set> 30 #include <set>
31 31
32 #include "build/build_config.h"
33 #include "base/third_party/dynamic_annotations/dynamic_annotations.h" 32 #include "base/third_party/dynamic_annotations/dynamic_annotations.h"
34 33
35 // Use std names. 34 // Use std names.
36 using std::set; 35 using std::set;
37 using std::pair; 36 using std::pair;
38 using std::vector; 37 using std::vector;
39 using std::string; 38 using std::string;
40 using std::min; 39 using std::min;
41 using std::max; 40 using std::max;
42 using std::ostream; 41 using std::ostream;
43 using std::map; 42 using std::map;
44 using std::stack; 43 using std::stack;
45 using std::sort; 44 using std::sort;
46 using std::swap; 45 using std::swap;
47 using std::make_pair; 46 using std::make_pair;
48 47
49 #if defined(__GNUC__) && !defined(USE_CXX0X) && !defined(OS_ANDROID) && \ 48 #if defined(__GNUC__) && !defined(USE_CXX0X) && !defined(_LIBCPP_ABI_VERSION)
50 !defined(_LIBCPP_ABI_VERSION)
51 49
52 #include <tr1/unordered_set> 50 #include <tr1/unordered_set>
53 using std::tr1::unordered_set; 51 using std::tr1::unordered_set;
54 52
55 #else 53 #else
56 54
57 #include <unordered_set> 55 #include <unordered_set>
58 #if defined(WIN32) || defined(OS_ANDROID) 56 #if defined(WIN32)
59 using std::tr1::unordered_set; 57 using std::tr1::unordered_set;
60 #else 58 #else
61 using std::unordered_set; 59 using std::unordered_set;
62 #endif 60 #endif
63 61
64 #endif 62 #endif
65 63
66 namespace re2 { 64 namespace re2 {
67 65
68 typedef int8_t int8; 66 typedef int8_t int8;
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 } 140 }
143 141
144 } // namespace re2 142 } // namespace re2
145 143
146 #include "util/arena.h" 144 #include "util/arena.h"
147 #include "util/logging.h" 145 #include "util/logging.h"
148 #include "util/mutex.h" 146 #include "util/mutex.h"
149 #include "util/utf.h" 147 #include "util/utf.h"
150 148
151 #endif // RE2_UTIL_UTIL_H__ 149 #endif // RE2_UTIL_UTIL_H__
OLDNEW
« no previous file with comments | « third_party/re2/patches/re2-libcxx.patch ('k') | tools/android/run_pie/run_pie.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698