<i>Tcl [string match] and [glob] are exponential complexity for bad patterns, could be linear</i> status still Open with 3 other changes
by
.
D 2017-05-02T14:00:13.034
J icomment Agree\sregarding\s#3.\r\nRegarding\sthe\sother\sI\splan\sto\sread\sglob(3)\sfirst\sbefore\shaving\sa\sstrong\sopinion.\sMy\sweak\sopinion\sis\sto\sfollow\sglob(3).\r\n(Want\sto\ssee\sif\sthey\sgive\sa\sreason\sfor\s`malformed`\s=>\smatch\sas\sliteral)\r\n(And\ssee\show\sstrong\s`string\smatch`\salready\sfollows/deviates\sfrom\sthis).\r\nThe\soriginal\sblog\sarticle\swhich\sbrought\sthis\sto\smy\sattention\sunfortunately\sis\snot\slooking\sat\shandling\s`[...]`\sat\sall.\r\n\r\nAs\sa\sside\snote\smy\sfirst\sslap-dash\sattempt\sat\sthe\sfix\syesterday\slate\snight\swent\ssideways,\sbreaking\s`glob`,\sI\sbelieve\s(`package\srequire\stcltest`\sfailed,\swrongly\snot\sfinding\sthe\spackage\sanymore).\sGlad\sto\ssee\sthat\sI\scaught\syour\sinterest.\r\n\r\nNote,\stwo\sof\sthe\smatcher\svariants\s(TclUniChar(Case)Match)\sare\sin\stclUtf.c.\r\nThe\soverall\sstructure\sof\sall\svariants\sis\sthe\ssame,\swith\sdifferences\sin\s(1)\sthe\scharacter\stype\sused\sand\sassociated\sincrement\soperations,\sand\s(2)\s(non)handling\sof\s`nocase`.
J login aku
J mimetype text/plain
K a4a7f2abd376b2806073d2865f07b7d910b04574
U aku
Z 07fa0acb90735fad2f9d85e7ee1d1ab5