diff options
author | René Scharfe <l.s.r@web.de> | 2016-09-03 17:59:20 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-09-07 10:42:46 -0700 |
commit | d23309733a5b2a9e1adc304ee50c5a5ed7a087c2 (patch) | |
tree | c1555e8fce5bdf708b48fb43391c98002dcd3716 /builtin | |
parent | Git 2.9.3 (diff) | |
download | tgif-d23309733a5b2a9e1adc304ee50c5a5ed7a087c2.tar.xz |
introduce hex2chr() for converting two hexadecimal digits to a character
Add and use a helper function that decodes the char value of two
hexadecimal digits. It returns a negative number on error, avoids
running over the end of the given string and doesn't shift negative
values.
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin')
0 files changed, 0 insertions, 0 deletions