On Wed, Jul 14, 2010 at 12:00:58PM +0930, James Moschou wrote:
Hello, Is there a convenient way to convert from a byte index in a string to its character offset and vice-versa? I know string has pointer_to_offset(string pos), but that's for pointers, I have the value of a byte index, i.e. an int/uint/long value, not a pointer.
Maybe you're looking for: yourstring+index -- http://www.debian.org - The Universal Operating System
Attachment:
signature.asc
Description: Digital signature