Project

General

Profile

Actions

Bug #12294

closed

String encoding methods rename

Added by baweaver (Brandon Weaver) about 8 years ago. Updated about 8 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
[ruby-core:74983]

Description

http://ruby-doc.org/stdlib-2.3.0/libdoc/nkf/rdoc/String.html

Most of the string encoding methods are named counter to the established pattern of other check and to_ methods.

Proposed changes:

iseuc    -> euc?
isjis    -> jis?
issjis   -> sjis?
toeuc    -> to_euc
tojus    -> to_jis
tolocale -> to_locale
tosjis   -> to_sjis
toutf16  -> to_utf16
toutf32  -> to_utf32
toutf8   -> to_utf8

Updated by baweaver (Brandon Weaver) about 8 years ago

  • Description updated (diff)

Updated by nobu (Nobuyoshi Nakada) about 8 years ago

  • Status changed from Open to Rejected

Use String#encode.

Actions

Also available in: Atom PDF

Like0
Like0Like0