/* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/** *FileName:RegExp/octal-003.js *ECMASection:15.7.1 *Description:BasedonECMA2Draft7February1999 *SimpletestcasesformatchingOctalEscapeSequences. *Author:christine@netscape.com *Date:19February1999 * *Revised:02August2002 *Author:pschwartau@netscape.com * *WHY:theoriginaltestexpectedtheregexp/.\011/ *tomatch'a'+String.fromCharCode(0)+'11' * *Thisisincorrect:thestringisa4-characterstringconsistingof *thecharacters<'a'>,<nul>,<'1'>,<'1'>.Bycontrast,the\011inthe *regexpshouldbeparsedasasingletoken:itistheoctalescapesequence *forthehorizontaltabcharacter'\t'==='\u0009'==='\x09'==='\011'. * *Sotheregexpconsistsof2characters:<any-character>,<'\t'>. *Thereisnomatchbetweentheregexpandthestring. * *Seethetestcasenon262/RegExp/octal-002.jsforanelaboration. *
*/ var SECTION = "RegExp/octal-003.js"; var TITLE = "RegExp patterns that contain OctalEscapeSequences"; var BUGNUMBER="http://scopus/bugsplat/show_bug.cgi?id=346132";
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.