Front page | perl.perl5.porters |
Postings from March 2001
use re 'asciir'; ???
Thread Next
From:
Nick Ing-Simmons
Date:
March 28, 2001 04:24
Subject:
use re 'asciir'; ???
Message ID:
200103281223.NAA00450@mikado.tiuk.ti.com
I have just coined a new hints flag HINT_RE_ASCIIR to help out
on EBCDIC. It causes "ranges" like [!-~] to be interpreted in
ASCII/Unicode space.
i.e. in C world:
start = NATIVE_TO_ASCII('!');
end = NATIVE_TO_ASCII('~');
for (i = start; i <= end; i++)
{
match_if_ch(ASCII_TO_NATIVE(i));
}
Something like that is needed to avoid having to re-write
MIME::QuotedPrint and similar things. Instead of a re-write one adds
use re 'asciir';
tr/// should probably honour same hint.
Vetos and/or name-change requests ASAP please...
--
Nick Ing-Simmons <nik@tiuk.ti.com>
Via, but not speaking for: Texas Instruments Ltd.
Thread Next
-
use re 'asciir'; ???
by Nick Ing-Simmons