util/charset: Rename utf16_len() to utf16_null_terminated_len()
commit16996d145b15ad5f41b1ffd73434d7c984645d7e
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Wed, 8 Nov 2023 23:36:21 +0000 (9 12:36 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 15 Nov 2023 22:07:36 +0000 (15 22:07 +0000)
treed49508bcdbef489d8333a72ed0415a6f752ba824
parent542e5a3039a0121646f2e4f108854e1ca4136a56
util/charset: Rename utf16_len() to utf16_null_terminated_len()

The new name indicates that — contrary to functions such as strnlen() —
the length may include the terminator.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/util/charset/charset.h
lib/util/charset/util_unistr.c