Skip to content
Tcl Source Code Artifact [bdb795ed33]
Login

Artifact [bdb795ed33]

Artifact bdb795ed339de8b201384a8314532d1b56aeb93d:

Ticket change [bdb795ed33] - New ticket [218694ffffffffff|218694ffff] <i>regexp improvements</i>. by nobody on 2000-10-26 01:04:12.
D 2000-10-26T01:04:12
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s1772\sRFE\nVersion:\s8.1b3\nSubmitDate:\s'1999-04-09'\nLastModified:\s'1999-07-02'\nSeverity:\sLOW\nStatus:\sReleased\nSubmitter:\spat\nChangedBy:\sstanton\nOS:\sWindows\s98\nMachine:\sX86\nFixedDate:\s'1999-07-02'\nFixedInVersion:\s8.2\nClosedDate:\s'2000-10-25'\n\n\nName:\nFrederic\sBONNET\n\nCustomShell:\nApplied\spatch\sto\sthe\sregexp\sengine\s(the\sexec\spart)\n\nDesiredBehavior:\nAs\spreviously\srequested\sby\sDon\sLibes:\n\s\s\s\s\n\s\s\s\s>\sI\ssee\sno\sway\sfor\sTcl_RegExpExec\sto\sindicate\s"could\smatch"\smeaning\n\s\s\s\s>\s"could\smatch\sif\smore\scharacters\sarrive\sthat\swere\ssuitable\sfor\sa\n\s\s\s\s>\smatch".\s\sThis\sis\srequired\sfor\sa\sclass\sof\sapplications\sinvolving\n\s\s\s\s>\smatching\son\sa\sstream\srequired\sby\sExpect's\sinteract\scommand.\s\sHenry\n\s\s\s\s>\sassured\sme\sthat\sthis\sfacility\swould\sbe\sin\sthe\sengine\s(I'm\snot\sthe\sonly\n\s\s\s\s>\sone\sthat\sneeds\sit).\s\sNote\sthat\sit\sis\snot\ssufficient\sto\sadd\sone\smore\n\s\s\s\s>\sreturn\svalue\sto\sTcl_RegExpExec\s(i.e.,\s2)\sbecause\sone\sneeds\sto\sknow\n\s\s\s\s>\sboth\sif\ssomething\smatches\snow\sand\scan\smatch\slater.\s\sI\srecommend\n\s\s\s\s>\sanother\sargument\s(canMatch\s*int)\sbe\sadded\sto\sTcl_RegExpExec.\n\s\s\s\s\n\s\s\s\sThe\sfollowing\spatch\sadds\sthis\sfeature\sto\sthe\sTcl8.1\sregexp\sengine.\sTo\sdo\n\s\s\s\sso,\sit\schecks\sif\sthe\send\sof\sthe\sstring\sis\sreached\sduring\sthe\smatching.\n\s\s\s\sI've\salso\smodified\sTclRegExpExecUniChar\sso\sthat\sit\stakes\san\sextra\sflag\n\s\s\s\sto\sreport\ssuch\scases\sby\sreturning\s-2\s(previous\sreturn\svalues\swere\s-1,\s0\n\s\s\s\sand\s1).\sBut\sdirectly\scalling\sTclReExec\sallows\smore\sprecise\streatment.\n\s\s\s\s\n\s\s\s\sThe\sother\sfeature\sadded\sto\sthe\sregexp\sengine\sis\sa\sflag\sthat\slimits\sthe\n\s\s\s\ssearch\sto\sthe\sbeginning\sof\sthe\sstring.\sI\sneed\sit\sfor\smy\stcLex\sextension,\n\s\s\s\sand\sit\scan\sprove\suseful\sfor\sother\sstream-based\sstring\sprocessing\s(it\n\s\s\s\savoids\sthe\sinput\sto\sbe\sscanned\sto\sits\send).\sIt\sis\sdifferent\sfrom\susing\n\s\s\s\sanchored\sREs\s(ie\susing\s^\sat\sthe\sbeginning)\ssince\sthey\scan\shave\sdifferent\n\s\s\s\sbehavior\sin\snewline-sensitive\sand\sinsensitive\smodes,\sand\sthey\sare\n\s\s\s\sdefined\sat\scompilation\slevel\swhereas\sthe\sflag\sI've\sadded\scan\sbe\sset\sat\n\s\s\s\sexecution\slevel\s(thus\savoiding\sthe\sneed\sfor\sa\srecompilation).\n\s\s\s\s\n\s\s\s\sIn\sorder\sfor\sthese\sfeatures\sto\sbe\sfully\suseable,\seither\n\s\s\s\sTclRegExpExecUniChar\sor\n\s\s\s\sTclReExec\s(and\sall\sthe\sother\spublic\sfunctions\sfrom\sHenry\sSpencer's\n\s\s\s\sregexp\spackage)\sshould\sbe\smade\spublic\sand\sexported\sin\sthe\sstub\stable.\n\s\s\s\sAlso\sthe\sscript-level\sAPI\sneeds\sto\sbe\sdefined\s(probably\sthrough\san\sextra\n\s\s\s\sflag\sto\sregexp\sand\sregsub).\n\s\s\s\s\n\s\s\s\sI've\smade\ssimilar\smodifications\sto\sthe\sTcl8.0\sregexp\sengine.\sIf\ssomeone\n\s\s\s\sis\sinterested,\sI\scould\spost\sthe\spatch\sto\sScriptics'\sRequest\sForm.\n\s\s\s\s\n\s\s\s\sThis\spatch\shas\sbeen\sextensively\stested\sduring\sseveral\smonths\sas\spart\sof\n\s\s\s\smy\stcLex\sextension.\n\nPatch:\nhttp://www.multimania.com/fbonnet/pub/regexp81.patch\n\nPatchFiles:\ngeneric/rege_dfa.c\n\s\s\s\sgeneric/regex.h\n\s\s\s\sgeneric/regexec.c\n\s\s\s\sgeneric/tclRegexp.c\n\n\n\n07/02/1999\s10:49\s-\sstanton\s-\sMade\snumerous\schanges\sto\sthe\sregexp\sinterface\sthat\saddress\sall\sof\sFrederic\sand\sDon's\sconcerns.\n\n
J foundin obsolete:\s8.1b3
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 43.\sRegexp
J title regexp\simprovements
J type Bug
K 218694ffffffffffffffffffffffffffffffffff
U nobody
Z e70b114a5891aaa972524cff2eee13aa