diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-04-19 17:50:38 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-04-19 17:50:38 +0000 |
commit | 394d5dfa9ba625c99a1e6a411f81b628bfebd60a (patch) | |
tree | 22a788ad3df769fa9c3b4f5f81efde5b1cad87a4 /NEWS | |
parent | 57ffc79c4561b9249ef6b81101f1887f16f29e19 (diff) | |
download | ruby-394d5dfa9ba625c99a1e6a411f81b628bfebd60a.tar.gz |
* string.c (str_scrub): add ruby method String#scrub which verify and
fix invalid byte sequence.
* string.c (str_compat_and_valid): check given string is compatible
and valid with given encoding.
* transcode.c (str_transcode0): If invalid: :replace is specified for
String#encode, replace invalid byte sequence even if the destination
encoding equals to the source encoding.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40390 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -26,6 +26,14 @@ with all sufficient information, see the ChangeLog file. * misc * Mutex#owned? is no longer experimental. +* String + * New methods: + * added String#scrub to verify and fix invalid byte sequence. + * extended methods: + * If invalid: :replace is specified for String#encode, replace + invalid byte sequence even if the destination encoding equals to + the source encoding. + * pack/unpack (Array/String) * Q! and q! directives for long long type if platform has the type. |