| OLD | NEW |
| 1 // Copyright 2007-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2007-2008 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 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 struct LineTerminator { | 231 struct LineTerminator { |
| 232 static bool Is(uchar c); | 232 static bool Is(uchar c); |
| 233 }; | 233 }; |
| 234 struct CombiningMark { | 234 struct CombiningMark { |
| 235 static bool Is(uchar c); | 235 static bool Is(uchar c); |
| 236 }; | 236 }; |
| 237 struct ConnectorPunctuation { | 237 struct ConnectorPunctuation { |
| 238 static bool Is(uchar c); | 238 static bool Is(uchar c); |
| 239 }; | 239 }; |
| 240 struct ToLowercase { | 240 struct ToLowercase { |
| 241 static const int kMaxWidth = 3; |
| 241 static int Convert(uchar c, | 242 static int Convert(uchar c, |
| 242 uchar n, | 243 uchar n, |
| 243 uchar* result, | 244 uchar* result, |
| 244 bool* allow_caching_ptr); | 245 bool* allow_caching_ptr); |
| 245 }; | 246 }; |
| 246 struct ToUppercase { | 247 struct ToUppercase { |
| 248 static const int kMaxWidth = 3; |
| 247 static int Convert(uchar c, | 249 static int Convert(uchar c, |
| 248 uchar n, | 250 uchar n, |
| 249 uchar* result, | 251 uchar* result, |
| 250 bool* allow_caching_ptr); | 252 bool* allow_caching_ptr); |
| 251 }; | 253 }; |
| 252 struct Ecma262Canonicalize { | 254 struct Ecma262Canonicalize { |
| 255 static const int kMaxWidth = 1; |
| 253 static int Convert(uchar c, | 256 static int Convert(uchar c, |
| 254 uchar n, | 257 uchar n, |
| 255 uchar* result, | 258 uchar* result, |
| 256 bool* allow_caching_ptr); | 259 bool* allow_caching_ptr); |
| 257 }; | 260 }; |
| 258 struct Ecma262UnCanonicalize { | 261 struct Ecma262UnCanonicalize { |
| 262 static const int kMaxWidth = 4; |
| 259 static int Convert(uchar c, | 263 static int Convert(uchar c, |
| 260 uchar n, | 264 uchar n, |
| 261 uchar* result, | 265 uchar* result, |
| 262 bool* allow_caching_ptr); | 266 bool* allow_caching_ptr); |
| 263 }; | 267 }; |
| 264 | 268 |
| 265 } // namespace unibrow | 269 } // namespace unibrow |
| 266 | 270 |
| 267 #endif // __UNIBROW_H__ | 271 #endif // __UNIBROW_H__ |
| OLD | NEW |