diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2017-08-15 23:21:05 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2017-08-16 16:27:42 +0200 |
commit | 5a01e5406660bc4f5a3cf68254510e867f89a457 (patch) | |
tree | 584f237f83754ac84c10a569e5dbecdb6e9bb77d /src/mm-error-helpers.c | |
parent | 1f2bb640284ef75e411658a3ff67f844bea8b260 (diff) |
charsets: simplify check to see if conversion to charset possible
Instead of having a method that returns the expected length after the
conversion and the amount of input UTF-8 characters that couldn't be
converted to the given charset, simplify the logic and just define a
method that returns a boolean specifying whether the conversion is
possible or not.
Also, include unit tests.
Diffstat (limited to 'src/mm-error-helpers.c')
0 files changed, 0 insertions, 0 deletions