Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Character classes in Parrot
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Patrick R. Michaud  
View profile  
 More options Nov 11 2004, 9:24 am
Newsgroups: perl.perl6.internals
From: pmich...@pobox.com (Patrick R. Michaud)
Date: Thu, 11 Nov 2004 07:24:56 -0700
Local: Thurs, Nov 11 2004 9:24 am
Subject: Character classes in Parrot
Does Parrot have anything available (yet?) for testing membership in
character classes-- things like isspace, isupper, islower, etc?
I searched around a bit in the docs, online references, and P6PE
and found very little about it.

How about for creating and manipulating character classes?

Apologies in advance if I've simply overlooked something.

Pm


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Leopold Toetsch  
View profile  
 More options Nov 12 2004, 6:11 am
Newsgroups: perl.perl6.internals
From: l...@toetsch.at (Leopold Toetsch)
Date: Fri, 12 Nov 2004 12:11:26 +0100
Local: Fri, Nov 12 2004 6:11 am
Subject: Re: Character classes in Parrot
Patrick R. Michaud <pmich...@pobox.com> wrote:

> Does Parrot have anything available (yet?) for testing membership in
> character classes-- things like isspace, isupper, islower, etc?

RSN or when Dan's string stuff is merged.

> How about for creating and manipulating character classes?

There is an implementation of bit sets in imcc/sets.c. The old rx code
has some bitmap stuff in src/rx.c. But that's broken WRT memory leaks.
It uses a bitmap for chars < 256 and a linear string for anything bigger
- suboptimal.

So it's probably best to to create a BitSet PMC. That could use a bitset
for the "normal" range of the charset and an additional hash for other
values, which is searched only if it's there.

> Apologies in advance if I've simply overlooked something.

No problem, the source tree is huge.

> Pm

leo

    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dan Sugalski  
View profile  
 More options Nov 12 2004, 8:18 am
Newsgroups: perl.perl6.internals
From: d...@sidhe.org (Dan Sugalski)
Date: Fri, 12 Nov 2004 08:18:34 -0500
Local: Fri, Nov 12 2004 8:18 am
Subject: Re: Character classes in Parrot
At 7:24 AM -0700 11/11/04, Patrick R. Michaud wrote:

>Does Parrot have anything available (yet?) for testing membership in
>character classes-- things like isspace, isupper, islower, etc?
>I searched around a bit in the docs, online references, and P6PE
>and found very little about it.

Not yet. I've got some basic code in the new string branch to provide
a few checks (whitespace, alpha, number, and punctuation) but that's
it for now.

>How about for creating and manipulating character classes?

Nope, not yet. Character classes do need to be addressed, though,
since they're... interesting to handle.

--
                                Dan

--------------------------------------it's like this-------------------
Dan Sugalski                          even samurai
d...@sidhe.org                         have teddy bears and even
                                       teddy bears get drunk


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2010 Google