Re: RFC 165 (v1) Allow Varibles in tr///
[email protected] (Tom Christiansen)
| Newsgroups | perl.perl6.language.regex |
|---|---|
| Message-ID | <17048.967672271@chthon> |
>For the record, the UTF8 version of tr/// does not use a plain 256K
>table. It uses a data strcuture called a 'swash'; this is also the
>data structure that is used by the UTF8 versions of 'uc' etc., the
>\p{...} regex escapes, and the others. The swash is based on a hash,
>and the code is in utf8.c.
And is connected to a "swatch":
/usr/local/src/perl/utf8.c:/* a "swash" is a swatch hash */
--tom