commit | 5cb72d21930bd23eac67f4c2888c688c3c5508d0 | [log] [tgz] |
---|---|---|
author | Emil Gydesen <emil.gydesen@nordicsemi.no> | Tue Dec 28 17:22:37 2021 +0100 |
committer | Carles CufĂ <carles.cufi@nordicsemi.no> | Tue Jan 11 11:50:15 2022 +0100 |
tree | 0fb495b0538504a2993fc81483dc4ecd9898dd5f | |
parent | 7e318b5e931161dd7a65b151e9d7ebc10e5e1ba8 [diff] |
zephyr: Add function to properly truncate UTF-8 strings Add a function that can properly truncate UTF-8 strings without leaving unterminated started characters, as UTF-8 characters can be 1-4 bytes long. Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>