We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa82111 commit 9851bceCopy full SHA for 9851bce
CMakeLists.txt
@@ -1,6 +1,6 @@
1
cmake_minimum_required(VERSION 3.05...3.30 FATAL_ERROR)
2
3
-set (LOGFAULT_VERSION 0.8.0)
+set (LOGFAULT_VERSION 0.8.1)
4
5
project(logfault
6
DESCRIPTION "Simple to use, header only C++ library for application-logging on all major platforms."
include/logfault/logfault.h
@@ -528,8 +528,8 @@ class fast_streambuf : public std::streambuf {
528
void JsonEscape(const T& msg, std::ostream& out) {
529
static constexpr std::array<char, 16> hex = {'0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F'};
530
static constexpr std::array<char, 93> table = {
531
- -1, -1, -1, -1, -1, -1, -1, -1, 'b', 't', 'n', -1, 'f', 'r', -1, -1, -1
532
- , -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0
+ 1, 1, 1, 1, 1, 1, 1, 1, 'b', 't', 'n', 1, 'f', 'r', 1, 1, 1
+ , 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0
533
, 0, '"', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
534
, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
535
@@ -593,7 +593,7 @@ class fast_streambuf : public std::streambuf {
593
putc_buffer(*p);
594
continue;
595
}
596
- if (tc > 0) {
+ if (tc != 1) {
597
putc_buffer('\\');
598
putc_buffer(tc);
599
0 commit comments