aboutsummaryrefslogtreecommitdiff
path: root/CPP/Common/IntToString.h
diff options
context:
space:
mode:
authorIgor Pavlov <87184205+ip7z@users.noreply.github.com>2021-12-27 00:00:00 +0000
committerIgor Pavlov <87184205+ip7z@users.noreply.github.com>2022-03-18 15:35:13 +0500
commitf19f813537c7aea1c20749c914e756b54a9c3cf5 (patch)
tree816ba62ca7c0fa19f2eb46d9e9d6f7dd7c3a744d /CPP/Common/IntToString.h
parent98e06a519b63b81986abe76d28887f6984a7732b (diff)
download7zip-21.07.tar.gz
7zip-21.07.tar.bz2
7zip-21.07.zip
'21.07'21.07
Diffstat (limited to '')
-rw-r--r--CPP/Common/IntToString.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/CPP/Common/IntToString.h b/CPP/Common/IntToString.h
new file mode 100644
index 0000000..d0a96ef
--- /dev/null
+++ b/CPP/Common/IntToString.h
@@ -0,0 +1,30 @@
1// Common/IntToString.h
2
3#ifndef __COMMON_INT_TO_STRING_H
4#define __COMMON_INT_TO_STRING_H
5
6#include "MyTypes.h"
7
8// return: the pointer to the "terminating" null character after written characters
9
10char * ConvertUInt32ToString(UInt32 value, char *s) throw();
11char * ConvertUInt64ToString(UInt64 value, char *s) throw();
12
13wchar_t * ConvertUInt32ToString(UInt32 value, wchar_t *s) throw();
14wchar_t * ConvertUInt64ToString(UInt64 value, wchar_t *s) throw();
15
16void ConvertUInt64ToOct(UInt64 value, char *s) throw();
17
18void ConvertUInt32ToHex(UInt32 value, char *s) throw();
19void ConvertUInt64ToHex(UInt64 value, char *s) throw();
20void ConvertUInt32ToHex8Digits(UInt32 value, char *s) throw();
21// void ConvertUInt32ToHex8Digits(UInt32 value, wchar_t *s) throw();
22
23void ConvertInt64ToString(Int64 value, char *s) throw();
24void ConvertInt64ToString(Int64 value, wchar_t *s) throw();
25
26// use RawLeGuid only for RAW bytes that contain stored GUID as Little-endian.
27char *RawLeGuidToString(const Byte *guid, char *s) throw();
28char *RawLeGuidToString_Braced(const Byte *guid, char *s) throw();
29
30#endif