C
Caio Chassot
Hi all,
Earlier today I posted this question to Stack Overflow:
http://stackoverflow.com/questions/1899999
Basically, it boils down to this:
While I welcome answers to that question here, I'm posting to ask
something else:
Should this be considered a bug in StringScanner? Wouldn't it make more
sense for it to use character indexes?
Earlier today I posted this question to Stack Overflow:
http://stackoverflow.com/questions/1899999
Basically, it boils down to this:
I'm working with UTF-8 strings in Ruby 1.9. I need to get a slice using byte-based indexes, not char-based, because StringScanner's internal pointers are byte-based.
While I welcome answers to that question here, I'm posting to ask
something else:
Should this be considered a bug in StringScanner? Wouldn't it make more
sense for it to use character indexes?