Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Strings internals
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
 
Dan Sugalski  
View profile  
 More options Jun 16 2004, 11:59 am
Newsgroups: perl.perl6.internals
From: d...@sidhe.org (Dan Sugalski)
Date: Wed, 16 Jun 2004 11:59:38 -0400
Local: Wed, Jun 16 2004 11:59 am
Subject: Strings internals
Okay, now that we've got the bytecode-visible stuff specified, I want
to spec the internals some, and start getting things migrated over to
it. (This should allow us to make ICU optional as well, for folks
that only want ASCII/Latin-x/EBCDIC enabled)

Once again, we're going with vtables, like the strings originally
had. Each string has two vtable pointers, one for encoding and one
for charset. Encodings and charsets'll be loadable libraries, in the
encodings/ and charset/ directories.

The encoding vtable needs to handle get/set codepoint, get/set byte,
and transform to another encoding. I don't think there's anything
else, but I could be wrong there.

The charset vtable needs to handle get/set grapheme, get/set
substring, up/down/titlecase, and (possibly) comparison. Charsets
also have a separate grapheme classification requirement (for
regexes) but we'll put that off for now.

I think those are it, but before we nail them down I'd like to have
folks squint at this a bit so we can make sure it's right. When it is
we can define the API directly and start implementing it.
--
                                Dan

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


 
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.