Open ConnyOnny opened 7 years ago
The buffer size is calculated correctly, even for a complicated unicode padchar. I also added a test for that (the debug_assert_eq will be used when the tests are run but not if the library is used in release mode). The added code has comments.
debug_assert_eq
The buffer size is calculated correctly, even for a complicated unicode padchar. I also added a test for that (the
debug_assert_eq
will be used when the tests are run but not if the library is used in release mode). The added code has comments.