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

From: brandon_weaver@...
Date: 2016-04-17 00:07:35 UTC
List: ruby-core #74983
Issue #12294 has been reported by Brandon Weaver.

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

* Author: Brandon Weaver
* Status: Open
* 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
touth16  -> to_utf16
touth32  -> to_utf32
touth8   -> 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