OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 // This file was generated at 2014-10-08 15:25:47.940335 | 5 // This file was generated at 2014-10-08 15:25:47.940335 |
6 | 6 |
7 #include "src/unicode.h" | 7 #include "src/unicode.h" |
8 #include "src/unicode-inl.h" | 8 #include "src/unicode-inl.h" |
9 #include <stdio.h> | 9 #include <stdio.h> |
10 #include <stdlib.h> | 10 #include <stdlib.h> |
(...skipping 1266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1277 case 7: | 1277 case 7: |
1278 return LookupPredicate(kID_ContinueTable7, kID_ContinueTable7Size, c); | 1278 return LookupPredicate(kID_ContinueTable7, kID_ContinueTable7Size, c); |
1279 default: return false; | 1279 default: return false; |
1280 } | 1280 } |
1281 } | 1281 } |
1282 | 1282 |
1283 | 1283 |
1284 // WhiteSpace: (point.category == 'Zs') or ('JS_White_Space' in | 1284 // WhiteSpace: (point.category == 'Zs') or ('JS_White_Space' in |
1285 // point.properties) | 1285 // point.properties) |
1286 | 1286 |
1287 static const uint16_t kWhiteSpaceTable0Size = 7; | 1287 static const uint16_t kWhiteSpaceTable0Size = 6; |
1288 static const int32_t kWhiteSpaceTable0[7] = {9, 1073741835, 12, 32, | 1288 static const int32_t kWhiteSpaceTable0[6] = {9, 1073741835, 12, |
1289 160, 5760, 6158}; // NOLINT | 1289 32, 160, 5760}; // NOLINT |
1290 static const uint16_t kWhiteSpaceTable1Size = 5; | 1290 static const uint16_t kWhiteSpaceTable1Size = 5; |
1291 static const int32_t kWhiteSpaceTable1[5] = { | 1291 static const int32_t kWhiteSpaceTable1[5] = { |
1292 1073741824, 10, 47, 95, 4096 }; // NOLINT | 1292 1073741824, 10, 47, 95, 4096 }; // NOLINT |
1293 static const uint16_t kWhiteSpaceTable7Size = 1; | 1293 static const uint16_t kWhiteSpaceTable7Size = 1; |
1294 static const int32_t kWhiteSpaceTable7[1] = {7935}; // NOLINT | 1294 static const int32_t kWhiteSpaceTable7[1] = {7935}; // NOLINT |
1295 bool WhiteSpace::Is(uchar c) { | 1295 bool WhiteSpace::Is(uchar c) { |
1296 int chunk_index = c >> 13; | 1296 int chunk_index = c >> 13; |
1297 switch (chunk_index) { | 1297 switch (chunk_index) { |
1298 case 0: return LookupPredicate(kWhiteSpaceTable0, | 1298 case 0: return LookupPredicate(kWhiteSpaceTable0, |
1299 kWhiteSpaceTable0Size, | 1299 kWhiteSpaceTable0Size, |
(...skipping 2203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3503 sizeof(MultiCharacterSpecialCase<1>) // NOLINT | 3503 sizeof(MultiCharacterSpecialCase<1>) // NOLINT |
3504 + | 3504 + |
3505 kCanonicalizationRangeMultiStrings1Size * | 3505 kCanonicalizationRangeMultiStrings1Size * |
3506 sizeof(MultiCharacterSpecialCase<1>) // NOLINT | 3506 sizeof(MultiCharacterSpecialCase<1>) // NOLINT |
3507 + | 3507 + |
3508 kCanonicalizationRangeMultiStrings7Size * | 3508 kCanonicalizationRangeMultiStrings7Size * |
3509 sizeof(MultiCharacterSpecialCase<1>); // NOLINT | 3509 sizeof(MultiCharacterSpecialCase<1>); // NOLINT |
3510 } | 3510 } |
3511 | 3511 |
3512 } // namespace unibrow | 3512 } // namespace unibrow |
OLD | NEW |