aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext/bigdecimal_test.rb
diff options
context:
space:
mode:
authorJeremy Daer <jeremydaer@gmail.com>2016-12-09 11:34:35 -0700
committerJeremy Daer <jeremydaer@gmail.com>2018-02-18 00:14:51 -0800
commit4940cc49ddb361d584d51bc3eb4675ff8ece4a2b (patch)
treeef8c912363d354b379eb56bc8b2bd1bb7cea83dc /activesupport/test/core_ext/bigdecimal_test.rb
parent8454aeeb2b8e7d1255acbaaec4e0ae3c97d55f49 (diff)
downloadrails-4940cc49ddb361d584d51bc3eb4675ff8ece4a2b.tar.gz
rails-4940cc49ddb361d584d51bc3eb4675ff8ece4a2b.tar.bz2
rails-4940cc49ddb361d584d51bc3eb4675ff8ece4a2b.zip
String#truncate_bytes: limit to N bytes without breaking multibyte chars
This faithfully preserves grapheme clusters (characters composed of other characters and combining marks) and other multibyte characters.
Diffstat (limited to 'activesupport/test/core_ext/bigdecimal_test.rb')
0 files changed, 0 insertions, 0 deletions