Article View: news.software.nntp
Article #44540Re: [NNTP Draft] 5. The WILDMAT format
From: Russ Allbery
Date: Sun, 27 Feb 2000 00:00
Date: Sun, 27 Feb 2000 00:00
28 lines
1917 bytes
1917 bytes
Andrew Gierth <andrew@erlenstar.demon.co.uk> writes: > I have a trial implementation of wildmat for UTF-8 strings; implementing > the character classes was not so bad (but I haven't tested it > extensively yet, so I may be premature in saying that :-) > Wildmat ranges are only single-character metacharacters which makes it > simple. The implementation is exactly the same as before, one simply > uses 32-bit variables rather than 8-bit ones (and UCS-4 only needs 31 > bits, so signed 32-bit is ok) and converts UTF-8 characters into UCS-4 > as they are read. How hard is the conversion to UCS-4? > OK, it doesn't really fit nicely in one hairy for() loop like the > current wildmat code, but... The for loop in the current wildmat code isn't even particularly hairy. One of the truly nice things about wildmat is that it's *simple*; the only thing complex about the current code is the fail fall-through optimization. (I've considered adding a bit more intelligence to the * code so that it doesn't get quite as recursive as it currently does, though.) -- Russ Allbery (rra@stanford.edu) <URL:http://www.eyrie.org/~eagle/>
Technical Details
Message-ID:
<yld7pjxd6h.fsf@windlord.stanford.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<87snyfd367.fsf@erlenstar.demon.co.uk> <ylaekn2l33.fsf@windlord.stanford.edu> <87bt5385y2.fsf@erlenstar.demon.co.uk>Show Full Headers
Complete Article Headers
Message-ID: <yld7pjxd6h.fsf@windlord.stanford.edu> Subject: Re: [NNTP Draft] 5. The WILDMAT format Date: Sun, 27 Feb 2000 00:00:00 +0000 From: Russ Allbery <rra@stanford.edu> References: <87snyfd367.fsf@erlenstar.demon.co.uk> <ylaekn2l33.fsf@windlord.stanford.edu> <87bt5385y2.fsf@erlenstar.demon.co.uk> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 590538302 Content-Type: text/plain; charset=us-ascii Organization: The Eyrie Mime-Version: 1.0 User-Agent: Gnus/5.0802 (Gnus v5.8.2) XEmacs/21.1 (Biscayne) Newsgroups: news.software.nntp