commit | 989fc146aa5d398756dda6a7b75d071c400ba463 | [log] [tgz] |
---|---|---|
author | Sughosh Ganu <sughosh.ganu@linaro.org> | Wed May 06 22:12:41 2020 +0300 |
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | Sat May 09 09:30:28 2020 +0200 |
tree | b4d2c4524e761d23c23429ff49ac40a93ef2c52c | |
parent | a42e629d9eb29737e6b575a74ee7da15d58e18a5 [diff] |
charset: Add support for calculating bytes occupied by a u16 string The current code uses 'u16_strlen(x) + 1) * sizeof(u16)' in various places to calculate the number of bytes occupied by a u16 string. Let's introduce a wrapper around this. This wrapper is used on following patches Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org> Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>