aboutsummaryrefslogtreecommitdiff
path: root/CPP/Common/StringToInt.h
diff options
context:
space:
mode:
authorIgor Pavlov <87184205+ip7z@users.noreply.github.com>2024-05-14 00:00:00 +0000
committerIgor Pavlov <87184205+ip7z@users.noreply.github.com>2024-05-15 23:55:04 +0500
commitfc662341e6f85da78ada0e443f6116b978f79f22 (patch)
tree1be1cc402a7a9cbc18d4eeea6b141354c2d559e3 /CPP/Common/StringToInt.h
parent5b39dc76f1bc82f941d5c800ab9f34407a06b53a (diff)
download7zip-fc662341e6f85da78ada0e443f6116b978f79f22.tar.gz
7zip-fc662341e6f85da78ada0e443f6116b978f79f22.tar.bz2
7zip-fc662341e6f85da78ada0e443f6116b978f79f22.zip
24.0524.05
Diffstat (limited to 'CPP/Common/StringToInt.h')
-rw-r--r--CPP/Common/StringToInt.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/CPP/Common/StringToInt.h b/CPP/Common/StringToInt.h
index c9dce7d..31ab274 100644
--- a/CPP/Common/StringToInt.h
+++ b/CPP/Common/StringToInt.h
@@ -19,4 +19,20 @@ UInt64 ConvertOctStringToUInt64(const char *s, const char **end) throw();
19UInt32 ConvertHexStringToUInt32(const char *s, const char **end) throw(); 19UInt32 ConvertHexStringToUInt32(const char *s, const char **end) throw();
20UInt64 ConvertHexStringToUInt64(const char *s, const char **end) throw(); 20UInt64 ConvertHexStringToUInt64(const char *s, const char **end) throw();
21 21
22#define Z7_PARSE_HEX_DIGIT(c, err_op) \
23{ c -= '0'; \
24 if (c > 9) { \
25 c -= 'A' - '0'; \
26 c &= ~0x20u; \
27 if (c > 5) { err_op } \
28 c += 10; \
29 } \
30}
31
32const char *FindNonHexChar(const char *s) throw();
33
34// in: (dest != NULL)
35// returns: pointer in dest array after last written byte
36Byte *ParseHexString(const char *s, Byte *dest) throw();
37
22#endif 38#endif