[REBOL] Re: can't quite get it right...
From: carl:cybercraft at: 30-Dec-2002 16:05
On 30-Dec-02, Romano Paolo Tenca wrote:
>>> could this be trimmed further?
>> Yes. I think it would be best as a native that exposed the
>> operating system's equivalent of 'Uppercase? (and 'Lowercase? as
>> well) for maximum portability and speed.
> uppercase?: func [ch [char! string!] /local tmp] [
> all [char? ch ch: to-string ch]
> ch == uppercase copy ch
Very nice Romano! (I take it tmp's just a leftover from an earlier
Out of interest, are there any major overheads with a to-string
? Just wondering if it is best to avoid it if you can, like
you've done above.