Changeset 41045 in webkit for trunk/JavaScriptCore/parser/Lexer.h
- Timestamp:
- Feb 17, 2009, 4:14:30 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/parser/Lexer.h
r40214 r41045 28 28 #include "SourceCode.h" 29 29 #include <wtf/Vector.h> 30 #include <wtf/unicode/Unicode.h> 30 31 31 32 namespace JSC { … … 90 91 void clear(); 91 92 SourceCode sourceCode(int openBrace, int closeBrace, int firstLine) { return SourceCode(m_source->provider(), openBrace, closeBrace + 1, firstLine); } 93 94 static inline bool isWhiteSpace(int ch) 95 { 96 return ch == '\t' || ch == 0x0b || ch == 0x0c || WTF::Unicode::isSeparatorSpace(ch); 97 } 98 99 static inline bool isLineTerminator(int ch) 100 { 101 return ch == '\r' || ch == '\n' || ch == 0x2028 || ch == 0x2029; 102 } 92 103 93 104 private:
Note:
See TracChangeset
for help on using the changeset viewer.