enh(NumberFormatter): Introduce backward compatible options for formatHex functions (#4333)

* enh(NumberFormatter): Introduce backward compatible options for formatHex functions.

* enh(NumberFormatter): Corrections and improvements suggested in code review.

* fix(ci): disable testEncryptDecryptGCM on macOS which often fails.

* enh(NumberFormatter): Improved naming.
This commit is contained in:
Matej Kenda
2023-12-15 18:30:55 +01:00
committed by GitHub
parent a464a4eabf
commit 111fe90dd9
6 changed files with 532 additions and 198 deletions

View File

@@ -46,8 +46,8 @@ typedef Poco::Int64 intmax_t;
#pragma warning(disable : 4146)
#endif // POCO_COMPILER_MSVC
// binary numbers are supported, thus 64 (bits) + 1 (string terminating zero)
#define POCO_MAX_INT_STRING_LEN 65
// binary numbers are supported, thus 64 (bits) + 1 (string terminating zero) + 2 (hex prefix)
#define POCO_MAX_INT_STRING_LEN (67)
// value from strtod.cc (double_conversion::kMaxSignificantDecimalDigits)
#define POCO_MAX_FLT_STRING_LEN 780