Index: src/utils.h |
diff --git a/src/utils.h b/src/utils.h |
index 3604b0bf5f0df3e33cf3c262f67621904c4eb863..9a601416ffd837e48209a3bf5eec80d70d024346 100644 |
--- a/src/utils.h |
+++ b/src/utils.h |
@@ -37,6 +37,11 @@ inline int HexValue(uc32 c) { |
return -1; |
} |
+inline char HexCharOfValue(int value) { |
+ DCHECK(0 <= value && value <= 16); |
+ if (value < 10) return value + '0'; |
+ return value - 10 + 'A'; |
+} |
inline int BoolToInt(bool b) { return b ? 1 : 0; } |