summaryrefslogtreecommitdiff
path: root/mailinfo.h
diff options
context:
space:
mode:
authorLibravatar René Scharfe <l.s.r@web.de>2019-11-08 21:27:34 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-11-10 16:04:48 +0900
commited283588330968dfefba37032980dfe2a8df63e4 (patch)
tree1049339cb95a04d23bf986ae7b987f7c7d8765c3 /mailinfo.h
parentutf8: use skip_iprefix() in same_utf_encoding() (diff)
downloadtgif-ed283588330968dfefba37032980dfe2a8df63e4.tar.xz
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 <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'mailinfo.h')
0 files changed, 0 insertions, 0 deletions