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 String formatting and transformation
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 Nov 27 2003, 3:48 pm
Newsgroups: perl.perl6.internals
From: d...@sidhe.org (Dan Sugalski)
Date: Thu, 27 Nov 2003 15:04:47 -0500
Local: Thurs, Nov 27 2003 3:04 pm
Subject: String formatting and transformation
Well, this has been let slide far too long -- it's time to address
string formatting and transformations. I know some folks have nudged
on this stuff, so lets get it going.

Here's a list of the string transformation stuff I think we need:

upcase
downcase
swapcase
upcase first letter
downcase first letter

And yes, I know these are meaningless for a good chunk of the encoded
data, but that's fine. If there are reasonable text transforms for
non-latin alphabets we can see about getting those in. If there's a
reason that the sequence "downcase/upcase first" is insufficient to
turn a string lower-case except for the first character someone speak
up and we'll add in a specialty entry for that.

As for formatting, I think we can reasonably provide both
sprintf-style formatting and more traditional COBOL-style formatting.
(Which, yes, I know, is generally viewed as nasty, but being able to
throw an integer into a "$(999,990.00)" format and get a nicely done
money display is really handy) I'm not, however, sure whether it's
worth making an op for one or both of these, or throwing them into
the standard library. (I can see a good case for building the
standard library into the Parrot executable as well, though I'm not
sure I want to do that as it'll make it tough to upgrade)

So, anyway, opinions?
--
                                         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.