| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 static bool Is(uchar c); | 228 static bool Is(uchar c); |
| 229 }; | 229 }; |
| 230 struct CombiningMark { | 230 struct CombiningMark { |
| 231 static bool Is(uchar c); | 231 static bool Is(uchar c); |
| 232 }; | 232 }; |
| 233 struct ConnectorPunctuation { | 233 struct ConnectorPunctuation { |
| 234 static bool Is(uchar c); | 234 static bool Is(uchar c); |
| 235 }; | 235 }; |
| 236 struct ToLowercase { | 236 struct ToLowercase { |
| 237 static const int kMaxWidth = 3; | 237 static const int kMaxWidth = 3; |
| 238 static const bool kIsToLower = true; |
| 238 static int Convert(uchar c, | 239 static int Convert(uchar c, |
| 239 uchar n, | 240 uchar n, |
| 240 uchar* result, | 241 uchar* result, |
| 241 bool* allow_caching_ptr); | 242 bool* allow_caching_ptr); |
| 242 }; | 243 }; |
| 243 struct ToUppercase { | 244 struct ToUppercase { |
| 244 static const int kMaxWidth = 3; | 245 static const int kMaxWidth = 3; |
| 246 static const bool kIsToLower = false; |
| 245 static int Convert(uchar c, | 247 static int Convert(uchar c, |
| 246 uchar n, | 248 uchar n, |
| 247 uchar* result, | 249 uchar* result, |
| 248 bool* allow_caching_ptr); | 250 bool* allow_caching_ptr); |
| 249 }; | 251 }; |
| 250 struct Ecma262Canonicalize { | 252 struct Ecma262Canonicalize { |
| 251 static const int kMaxWidth = 1; | 253 static const int kMaxWidth = 1; |
| 252 static int Convert(uchar c, | 254 static int Convert(uchar c, |
| 253 uchar n, | 255 uchar n, |
| 254 uchar* result, | 256 uchar* result, |
| (...skipping 10 matching lines...) Expand all Loading... |
| 265 static const int kMaxWidth = 1; | 267 static const int kMaxWidth = 1; |
| 266 static int Convert(uchar c, | 268 static int Convert(uchar c, |
| 267 uchar n, | 269 uchar n, |
| 268 uchar* result, | 270 uchar* result, |
| 269 bool* allow_caching_ptr); | 271 bool* allow_caching_ptr); |
| 270 }; | 272 }; |
| 271 | 273 |
| 272 } // namespace unibrow | 274 } // namespace unibrow |
| 273 | 275 |
| 274 #endif // V8_UNICODE_H_ | 276 #endif // V8_UNICODE_H_ |
| OLD | NEW |