Project

General

Profile

Actions

Feature #1159

closed

StringScanner に文字ベースでのインデックスを返すメソッドがほしい

Feature #1159: StringScanner に文字ベースでのインデックスを返すメソッドがほしい

Added by matsuda (Akira Matsuda) over 16 years ago. Updated over 14 years ago.

Status:
Rejected
Target version:
-

Description

=begin
松田と申します。

Ruby 1.9の StringScanner#pos (pointer) が現在はバイト単位
でのインデックスを返してくれるのですが、
文字列ベースでのインデックスを返すメソッドが欲しい、
または、posが文字列ベースでのインデックスを返すように
変更して欲しいです。
=end


Related issues 3 (0 open3 closed)

Related to Ruby - Bug #3482: StringScanner#pos returns wrong character position if used with multibyte charsRejectedActions
Related to Ruby - Bug #7442: StringScanner#charpos vs StringScanner#posClosedActions
Has duplicate Ruby - Feature #2645: Have a method in StringScanner which returns the position in characters rather than in bytesRejectednaruse (Yui NARUSE)Actions
Actions

Also available in: PDF Atom