Project

General

Profile

Actions

Feature #1667

closed

IO#codepoints, IO#each_codepoint, and StringIO

Added by marcandre (Marc-Andre Lafortune) almost 15 years ago. Updated over 8 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:23949]

Description

Almost all "iterators" of String are present in IO and StringIO: #each_char, #each_byte, #each_line and their corresponding #chars, #bytes, #lines. Only #each_codepoint and #codepoints are not defined in IO and StringIO.

Unless there is a compelling reason not to, it would be useful if these were defined. This would mirror the coherence with all other each_* methods that exist in both String, IO and StringIO.


Related issues 1 (0 open1 closed)

Related to Ruby master - Bug #11444: STDIN.each_codepoint hangs indefinitely on certain codepointsClosedActions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0