convert: use skip_iprefix() in validate_encoding()
authorRené Scharfe <redacted>
Fri, 8 Nov 2019 20:27:34 +0000 (21:27 +0100)
committerJunio C Hamano <redacted>
Sun, 10 Nov 2019 07:04:48 +0000 (16:04 +0900)
commited283588330968dfefba37032980dfe2a8df63e4
tree1049339cb95a04d23bf986ae7b987f7c7d8765c3
parent89f8cabaf35f8a5f7e893f190764597ad5c44ef9
convert: use skip_iprefix() in validate_encoding()

Use skip_iprefix() to parse "UTF" case-insensitively instead of checking
with istarts_with(), building an upper-case version and then using
skip_prefix() on it.  This gets rid of duplicate code and of a small
allocation.

Signed-off-by: René Scharfe <redacted>
Signed-off-by: Junio C Hamano <redacted>
convert.c
git clone https://git.99rst.org/PROJECT