Quoth [EMAIL PROTECTED] (Dan Sugalski):
> Okay, here's a question for everyone to hash out.
> 
> Assuming I have a parrot string which is explicitly marked as a 
> binary string...
> 
> What should happen when it's told to upcase/downcase/titlecase 
> itself? (You may assume that we have strings which are explicitly 
> marked at least Unicode, so there is a difference between STRING* 
> which are text and binary)

Error. Case is a property of characters, and a binary string doesn't
consist of characters, so the operation is meaningless.

If you want to change the case, you have to decode it (specifying the
encoding) into a text string, and case-change that.

Ben

-- 
For the last month, a large number of PSNs in the Arpa[Inter-]net have been
reporting symptoms of congestion ... These reports have been accompanied by an
increasing number of user complaints ... As of June,... the Arpanet contained
47 nodes and 63 links. [ftp://rtfm.mit.edu/pub/arpaprob.txt] * [EMAIL PROTECTED]

Reply via email to