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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 class Utf8InputBuffer : public InputBuffer<Utf8, Buffer<const char*>, s> { | 204 class Utf8InputBuffer : public InputBuffer<Utf8, Buffer<const char*>, s> { |
205 public: | 205 public: |
206 inline Utf8InputBuffer() { } | 206 inline Utf8InputBuffer() { } |
207 inline Utf8InputBuffer(const char* data, unsigned length); | 207 inline Utf8InputBuffer(const char* data, unsigned length); |
208 inline void Reset(const char* data, unsigned length) { | 208 inline void Reset(const char* data, unsigned length) { |
209 InputBuffer<Utf8, Buffer<const char*>, s>::Reset( | 209 InputBuffer<Utf8, Buffer<const char*>, s>::Reset( |
210 Buffer<const char*>(data, length)); | 210 Buffer<const char*>(data, length)); |
211 } | 211 } |
212 }; | 212 }; |
213 | 213 |
| 214 |
214 struct Uppercase { | 215 struct Uppercase { |
215 static bool Is(uchar c); | 216 static bool Is(uchar c); |
216 }; | 217 }; |
217 struct Lowercase { | 218 struct Lowercase { |
218 static bool Is(uchar c); | 219 static bool Is(uchar c); |
219 }; | 220 }; |
220 struct Letter { | 221 struct Letter { |
221 static bool Is(uchar c); | 222 static bool Is(uchar c); |
222 }; | 223 }; |
223 struct Space { | 224 struct Space { |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 static const int kMaxWidth = 1; | 271 static const int kMaxWidth = 1; |
271 static int Convert(uchar c, | 272 static int Convert(uchar c, |
272 uchar n, | 273 uchar n, |
273 uchar* result, | 274 uchar* result, |
274 bool* allow_caching_ptr); | 275 bool* allow_caching_ptr); |
275 }; | 276 }; |
276 | 277 |
277 } // namespace unibrow | 278 } // namespace unibrow |
278 | 279 |
279 #endif // V8_UNICODE_H_ | 280 #endif // V8_UNICODE_H_ |
OLD | NEW |