Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: src/parser.cc

Issue 11228: * No failures on our own tests.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/regexp2000/
Patch Set: Created 12 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 4007 matching lines...) Expand 10 before | Expand all | Expand 10 after
4018 *value = val; 4018 *value = val;
4019 return true; 4019 return true;
4020 } 4020 }
4021 4021
4022 4022
4023 uc32 RegExpParser::ParseClassCharacterEscape(bool* ok) { 4023 uc32 RegExpParser::ParseClassCharacterEscape(bool* ok) {
4024 ASSERT(current() == '\\'); 4024 ASSERT(current() == '\\');
4025 ASSERT(has_next() && !IsSpecialClassEscape(next())); 4025 ASSERT(has_next() && !IsSpecialClassEscape(next()));
4026 Advance(); 4026 Advance();
4027 switch (current()) { 4027 switch (current()) {
4028 case 'b':
4029 Advance();
4030 return '\b';
4028 // ControlEscape :: one of 4031 // ControlEscape :: one of
4029 // f n r t v 4032 // f n r t v
4030 case 'f': 4033 case 'f':
4031 Advance(); 4034 Advance();
4032 return '\f'; 4035 return '\f';
4033 case 'n': 4036 case 'n':
4034 Advance(); 4037 Advance();
4035 return '\n'; 4038 return '\n';
4036 case 'r': 4039 case 'r':
4037 Advance(); 4040 Advance();
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
4333 start_position, 4336 start_position,
4334 is_expression); 4337 is_expression);
4335 return result; 4338 return result;
4336 } 4339 }
4337 4340
4338 4341
4339 #undef NEW 4342 #undef NEW
4340 4343
4341 4344
4342 } } // namespace v8::internal 4345 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698