| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_UNICODE_H_ | 5 #ifndef V8_UNICODE_H_ |
| 6 #define V8_UNICODE_H_ | 6 #define V8_UNICODE_H_ |
| 7 | 7 |
| 8 #include <sys/types.h> | 8 #include <sys/types.h> |
| 9 #include "src/globals.h" | 9 #include "src/globals.h" |
| 10 #include "src/utils.h" | 10 #include "src/utils.h" |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 | 171 |
| 172 struct Uppercase { | 172 struct Uppercase { |
| 173 static bool Is(uchar c); | 173 static bool Is(uchar c); |
| 174 }; | 174 }; |
| 175 struct Lowercase { | 175 struct Lowercase { |
| 176 static bool Is(uchar c); | 176 static bool Is(uchar c); |
| 177 }; | 177 }; |
| 178 struct Letter { | 178 struct Letter { |
| 179 static bool Is(uchar c); | 179 static bool Is(uchar c); |
| 180 }; | 180 }; |
| 181 struct ID_Start { | 181 struct V8_EXPORT_PRIVATE ID_Start { |
| 182 static bool Is(uchar c); | 182 static bool Is(uchar c); |
| 183 }; | 183 }; |
| 184 struct ID_Continue { | 184 struct V8_EXPORT_PRIVATE ID_Continue { |
| 185 static bool Is(uchar c); | 185 static bool Is(uchar c); |
| 186 }; | 186 }; |
| 187 struct WhiteSpace { | 187 struct V8_EXPORT_PRIVATE WhiteSpace { |
| 188 static bool Is(uchar c); | 188 static bool Is(uchar c); |
| 189 }; | 189 }; |
| 190 struct LineTerminator { | 190 struct V8_EXPORT_PRIVATE LineTerminator { |
| 191 static bool Is(uchar c); | 191 static bool Is(uchar c); |
| 192 }; | 192 }; |
| 193 struct ToLowercase { | 193 struct ToLowercase { |
| 194 static const int kMaxWidth = 3; | 194 static const int kMaxWidth = 3; |
| 195 static const bool kIsToLower = true; | 195 static const bool kIsToLower = true; |
| 196 static int Convert(uchar c, | 196 static int Convert(uchar c, |
| 197 uchar n, | 197 uchar n, |
| 198 uchar* result, | 198 uchar* result, |
| 199 bool* allow_caching_ptr); | 199 bool* allow_caching_ptr); |
| 200 }; | 200 }; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 224 static const int kMaxWidth = 1; | 224 static const int kMaxWidth = 1; |
| 225 static int Convert(uchar c, | 225 static int Convert(uchar c, |
| 226 uchar n, | 226 uchar n, |
| 227 uchar* result, | 227 uchar* result, |
| 228 bool* allow_caching_ptr); | 228 bool* allow_caching_ptr); |
| 229 }; | 229 }; |
| 230 | 230 |
| 231 } // namespace unibrow | 231 } // namespace unibrow |
| 232 | 232 |
| 233 #endif // V8_UNICODE_H_ | 233 #endif // V8_UNICODE_H_ |
| OLD | NEW |