From: austin_hasti...@yahoo.com (Austin Hastings)
Date: Mon, 28 Jun 2004 11:27:34 -0700 (PDT)
Local: Mon, Jun 28 2004 2:27 pm
Subject: Re: The .bytes/.codepoints/.graphemes methods
--- Dan Sugalski <d...@sidhe.org> wrote:
> On Mon, 28 Jun 2004, Juerd wrote:Hmm. Suppose that I have a system that is friendly to 80 byte records.
> > Dave Whipp skribis 2004-06-28 9:55 (-0700):
> > substr($string, 2 but graphemes, 4 but bytes);
> > I think "but" even makes sense, if substr defaults to something.
> I think mixing strings, bytes, graphemes, and code points together
I want to output "meaningful" strings, so I want to partition a buffer
into 80-ish byte substrings, but preserve any graphemes (i.e., store
the data in a legible format).
How would I do that?
The obvious answer is a gnarly little loop, but I think I'd like to
$cout << $output << nl; # :-)
and get some dwimmery?
> If, as a programmer, you *really* want to run with scissors then
> --------------------------------------"it's like
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.