[ruby-core:74986] [Ruby trunk Bug#12294][Rejected] String encoding methods rename

From: nobu@...
Date: 2016-04-17 01:49:15 UTC
List: ruby-core #74986
Issue #12294 has been updated by Nobuyoshi Nakada.

Status changed from Open to Rejected

Use `String#encode`.

----------------------------------------
Bug #12294: String encoding methods rename
https://bugs.ruby-lang.org/issues/12294#change-58113

* Author: Brandon Weaver
* Status: Rejected
* Priority: Normal
* Assignee: 
* ruby -v: 
* Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN
----------------------------------------
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
~~~



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next