Project

General

Profile

Actions

Bug #12294

closed

String encoding methods rename

Bug #12294: String encoding methods rename

Added by baweaver (Brandon Weaver) over 9 years ago. Updated over 9 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) over 9 years ago Actions #1 [ruby-core:74984]

  • Description updated (diff)

Updated by nobu (Nobuyoshi Nakada) over 9 years ago Actions #2 [ruby-core:74986]

  • Status changed from Open to Rejected

Use String#encode.

Actions

Also available in: PDF Atom