OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 // The skip methods return whether they actually skipped something. | 115 // The skip methods return whether they actually skipped something. |
116 bool Skip(uint32_t c) { | 116 bool Skip(uint32_t c) { |
117 if (ch_ == c) { | 117 if (ch_ == c) { |
118 Next(); | 118 Next(); |
119 return true; | 119 return true; |
120 } | 120 } |
121 return false; | 121 return false; |
122 } | 122 } |
123 | 123 |
124 bool SkipWhiteSpace() { | 124 bool SkipWhiteSpace() { |
125 if (unicode_cache_->IsWhiteSpace(ch_)) { | 125 if (unicode_cache_->IsWhiteSpaceOrLineTerminator(ch_)) { |
126 Next(); | 126 Next(); |
127 return true; | 127 return true; |
128 } | 128 } |
129 return false; | 129 return false; |
130 } | 130 } |
131 | 131 |
132 bool SkipParentheses() { | 132 bool SkipParentheses() { |
133 if (ch_ != '(') return false; | 133 if (ch_ != '(') return false; |
134 int balance = 0; | 134 int balance = 0; |
135 do { | 135 do { |
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
400 DateStringTokenizer<Char>* scanner, | 400 DateStringTokenizer<Char>* scanner, |
401 DayComposer* day, | 401 DayComposer* day, |
402 TimeComposer* time, | 402 TimeComposer* time, |
403 TimeZoneComposer* tz); | 403 TimeZoneComposer* tz); |
404 }; | 404 }; |
405 | 405 |
406 | 406 |
407 } } // namespace v8::internal | 407 } } // namespace v8::internal |
408 | 408 |
409 #endif // V8_DATEPARSER_H_ | 409 #endif // V8_DATEPARSER_H_ |
OLD | NEW |