commit | 4d0639f560896aa386a5e6d02b5c951fbcfab989 | [log] [tgz] |
---|---|---|
author | Philippe Suter <psuter@us.ibm.com> | Wed Dec 07 14:04:10 2016 -0500 |
committer | Rodric Rabbah <rabbah@us.ibm.com> | Wed Dec 14 13:15:14 2016 -0500 |
tree | d53fe4c00db950304bc32dc4e96a163fcf32d288 | |
parent | fb2218c49e8a15985eb9fcf4e76b56b98124eb02 [diff] |
Measure bytesize of strings as if encoded in UTF-8. Previous implementation took the conservative estimate that every char is two bytes. While this may fit the JVM model, it violates user expectations that, for instance, base64-encoded binary files take 1 byte per character. Adapted tests to new way of measuring String sizes.