Changeset 45356 in webkit for trunk/JavaScriptCore/runtime/LiteralParser.cpp
- Timestamp:
- Jun 29, 2009, 3:33:55 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/runtime/LiteralParser.cpp
r44984 r45356 125 125 } 126 126 127 static inline bool isSafeStringCharacter(UChar c)127 template <LiteralParser::ParserMode mode> static inline bool isSafeStringCharacter(UChar c) 128 128 { 129 return (c >= ' ' && c <= 0xff&& c != '\\' && c != '"') || c == '\t';129 return (c >= ' ' && (mode == LiteralParser::StrictJSON || c <= 0xff) && c != '\\' && c != '"') || c == '\t'; 130 130 } 131 131 … … 137 137 do { 138 138 runStart = m_ptr; 139 while (m_ptr < m_end && isSafeStringCharacter (*m_ptr))139 while (m_ptr < m_end && isSafeStringCharacter<mode>(*m_ptr)) 140 140 ++m_ptr; 141 141 if (runStart < m_ptr)
Note:
See TracChangeset
for help on using the changeset viewer.