Tom Christiansen wrote:
Patrick wrote:
: * Almost. E.g. isL would be nice to have as well.
:
: Those exist also:
:
: $ ./perl6
: say 'abCD34' ~~ / isL /
: a
: say 'abCD34' ~~ / isN /
: 3
:
They may exist, but I'm not certain it's a good idea to encourage
the Is_XXX approach on
The 'Is' prefix can be used on any property in 5.12 for which there is
no naming conflict. The only naming conflicts are certain of the block
properties, such as Arabic. IsArabic means the Arabic script. InArabic
means the base Arabic block. Personally, I find Is and In unintuitive,
and
Sorry if this is the wrong forum. I was wondering if there was a way to
specify unicode
categorieshttp://www.fileformat.info/info/unicode/category/index.htmin
a regular expression (and hence a grammar), or if there would be any
consideration for adding support for that (requiring some kind of
consideration for adding support for that (requiring some kind of special
syntax).
Unicode categories are done using assertion syntax with is followed by
the category name. Thus isLu (uppercase letter), isNd (decimal digit),
isZs (space separator), etc.
This even works in Rakudo today
That's exactly what I was looking for*. Awesome, thank you.
~Cheers
* Almost. E.g. isL would be nice to have as well.
On Wed, Nov 10, 2010 at 13:15, Patrick R. Michaud pmich...@pobox.comwrote:
Unicode
properties are always available with a prefix
On Wed, Nov 10, 2010 at 01:21:57PM -0500, Chase Albert wrote:
That's exactly what I was looking for*. Awesome, thank you.
* Almost. E.g. isL would be nice to have as well.
Those exist also:
$ ./perl6
say 'abCD34' ~~ / isL /
a
say 'abCD34' ~~ / isN /
3
Pm
Even awesomer, thank you again.
On Wed, Nov 10, 2010 at 13:28, Patrick R. Michaud pmich...@pobox.comwrote:
On Wed, Nov 10, 2010 at 01:21:57PM -0500, Chase Albert wrote:
That's exactly what I was looking for*. Awesome, thank you.
* Almost. E.g. isL would be nice to have as well.
Those
consideration for adding support for that (requiring some kind of special
syntax).
Unicode categories are done using assertion syntax with is followed by
the category name. Thus isLu (uppercase letter), isNd (decimal digit),
isZs (space separator), etc.
This even works in Rakudo today
Patrick wrote:
: * Almost. E.g. isL would be nice to have as well.
:
: Those exist also:
:
: $ ./perl6
: say 'abCD34' ~~ / isL /
: a
: say 'abCD34' ~~ / isN /
: 3
:
They may exist, but I'm not certain it's a good idea to encourage
the Is_XXX approach on *anything* except Script=XXX