| 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_CHAR_PREDICATES_H_ | 5 #ifndef V8_CHAR_PREDICATES_H_ | 
| 6 #define V8_CHAR_PREDICATES_H_ | 6 #define V8_CHAR_PREDICATES_H_ | 
| 7 | 7 | 
| 8 #include "src/unicode.h" | 8 #include "src/unicode.h" | 
| 9 | 9 | 
| 10 namespace v8 { | 10 namespace v8 { | 
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 72 | 72 | 
| 73 | 73 | 
| 74 // WhiteSpace and LineTerminator according to ES6 draft section 11.2 and 11.3 | 74 // WhiteSpace and LineTerminator according to ES6 draft section 11.2 and 11.3 | 
| 75 // This consists of \000a, \000d, \u2028, and \u2029. | 75 // This consists of \000a, \000d, \u2028, and \u2029. | 
| 76 struct WhiteSpaceOrLineTerminator { | 76 struct WhiteSpaceOrLineTerminator { | 
| 77   static inline bool Is(uc32 c) { | 77   static inline bool Is(uc32 c) { | 
| 78     return WhiteSpace::Is(c) || unibrow::LineTerminator::Is(c); | 78     return WhiteSpace::Is(c) || unibrow::LineTerminator::Is(c); | 
| 79   } | 79   } | 
| 80 }; | 80 }; | 
| 81 | 81 | 
| 82 } }  // namespace v8::internal | 82 }  // namespace internal | 
|  | 83 }  // namespace v8 | 
| 83 | 84 | 
| 84 #endif  // V8_CHAR_PREDICATES_H_ | 85 #endif  // V8_CHAR_PREDICATES_H_ | 
| OLD | NEW | 
|---|