From: Yui NARUSE Date: 2010-01-26T17:06:48+09:00 Subject: [ruby-core:27845] [Feature #2645] Have a method in StringScanner which returns the position in characters rather than in bytes Issue #2645 has been updated by Yui NARUSE. Priority changed from Normal to Low StringScanner's pos is related to IO#pos. Feature#1159 is also about this. (but in Japanaese) A problem is: ss = StringScanner.new("������") ss.get_byte ss.char_pos #=> what is this result? And more, I doubt the use case. Can you tell us more detailed use case? >the documentation for StringScanner#pos states: > In the 'terminated' position (i.e. the string > is exhausted), this value is the length of the string. thanks, I fixed the doc. ---------------------------------------- http://redmine.ruby-lang.org/issues/show/2645 ---------------------------------------- http://redmine.ruby-lang.org