Project

General

Profile

Actions

Feature #1159

closed

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

Added by matsuda (Akira Matsuda) about 15 years ago. Updated almost 13 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 master - Bug #3482: StringScanner#pos returns wrong character position if used with multibyte charsRejected06/26/2010Actions
Related to Ruby master - Bug #7442: StringScanner#charpos vs StringScanner#posClosed11/27/2012Actions
Has duplicate Ruby master - Feature #2645: Have a method in StringScanner which returns the position in characters rather than in bytesRejectednaruse (Yui NARUSE)01/25/2010Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0