Commit Graph

541 Commits (bafdefbe300d9c372e2a79090bf47fdd65eda117)

Author SHA1 Message Date
Roker bafdefbe30 rename branch to JSON-101 2018-08-08 10:59:14 +02:00
Roker 7f67dad613 Use the Logger class in ev_server 2018-08-05 17:38:51 +02:00
Roker b43edf229a use the Logger class in the JsonAdapter class incl. different log levels for debug/info/errors etc. 2018-08-01 14:19:17 +02:00
Roker 822a6293c3 add a pseudo unittest for the logger 2018-07-31 16:00:57 +02:00
Roker 48c26f5ca3 do the log to file & close the logfile on shutdown. 2018-07-31 14:49:07 +02:00
Roker 4254e659b5 implement wrapping/folding of overlong lines, incl. keeping UTF-8 sequences intact, marking the wrap with special signs and all that things. :-) 2018-07-24 11:41:20 +02:00
Roker 67e2ccf17e configurable clip and wrap lengths 2018-07-05 10:23:07 +02:00
Roker 30d05ca606 Multilinegelöt 2018-07-04 13:35:11 +02:00
Lars Rohwedder e433afeedf only create logfile when target == File 2018-06-21 15:53:42 +02:00
Lars Rohwedder 2f2466a8ca Less segfaults. More run. 2018-06-21 15:49:00 +02:00
Lars Rohwedder 41221140ca Let's the JsonAapter class use the new Logger. 2018-06-21 12:31:27 +02:00
Lars Rohwedder 67fb168d2e let's Logger::Stream working again. :-) 2018-06-21 12:31:00 +02:00
Roker 49225e318c will support multiline again. 2018-06-18 22:11:40 +02:00
Roker 3b0f931384 add good-old Logger class. 2018-06-18 13:59:19 +02:00
Roker d750c2ffaa start branch JSON-90 2018-06-15 12:37:18 +02:00
Roker f00925a991 merge JSON-95 into default branch. 2018-06-15 09:46:12 +02:00
Roker c5bf492c5e close branch before merge. :-) 2018-06-15 09:45:52 +02:00
Roker ebc53502c3 okay, MSVC still insits to have symbols that nobody needs, not even MSVC itself. Braindead. m( 2018-06-12 15:58:17 +02:00
Roker 25249d0475 okay, MSVC is unable or unwilling to compile that one-liner, so I make 3 lines out of it. Does it work now? 2018-06-12 15:18:21 +02:00
Roker c8d8c842a9 start branch JSON-95 2018-06-12 15:09:41 +02:00
Roker 4ca3b23ab2 I hope that change will convince MSVC to compile that code, too. 2018-06-11 22:11:19 +02:00
Roker 80ef2d744b add explicit static_cast to make Microsoft's compiler happier. 2018-06-11 22:07:50 +02:00
Roker 4a882ec785 merge JSON-93 (to support InLength<>) into "default" 2018-06-07 13:54:10 +02:00
Roker e104670801 close branch before merge. 2018-06-07 13:53:35 +02:00
Roker 6090159e2a and last but not least: document the new InLength<> feature. :-) 2018-06-07 13:53:16 +02:00
Roker 8fa78805c0 bump API version to 0.15.2 "(39) Gemünden" 2018-06-07 13:52:50 +02:00
Roker bdf8e1cbb8 fix hex encoding of the test string "Größe" in unittest expected values 2018-06-07 13:28:12 +02:00
Roker 445e47a193 JSON-94: add more checks to me more robust. Add unittest for illegal \u sequences 2018-06-07 13:24:12 +02:00
Roker 8d0c2a50b5 JSON-94: re-implement combining of UTF-16 surrogate pairs. the 1st implementation was nuts. :-9 2018-06-07 12:44:11 +02:00
Roker 7c4643e143 JSON-94: fix a bug in encode_utf() for Non-BMP characters. *sigh* 2018-06-07 12:42:43 +02:00
Roker a369e22504 JSON-94: implement recombining of \u-escaped UTF-16 surrogate pair 2018-06-07 12:09:53 +02:00
Roker 0f73bad45c JSON-94: create unit test for JSON reading, incl. the problematic and failing example data 2018-06-07 11:41:39 +02:00
Roker 3eba63f483 adding Non-ASCII input strings shows: I still have encoding problems in my JSON parser. -.- 2018-06-07 10:14:06 +02:00
Roker d0b149147d add tests for InLength<> feature 2018-06-07 09:56:55 +02:00
Roker cc6db68542 remove logging to stderr. be less chatty. 2018-06-07 09:56:08 +02:00
Roker 4c3c93978c add *~ 2018-06-07 09:55:31 +02:00
Roker d8596bc2ae be less chatty... remove logging to stdout/stderr 2018-06-07 09:55:07 +02:00
Lars Rohwedder 68a673e120 NULL context is no longer allowed 2018-06-05 13:18:15 +02:00
Lars Rohwedder eb0d7cb533 use a "DummyContext" to store the values in the unittest instead of NULL Context. 2018-06-05 13:15:40 +02:00
Lars Rohwedder 9f49972c0d remove 'check_security_token' parameter. it is useless and dangerous if misused. 2018-06-05 13:14:23 +02:00
Roker c8d7401de0 and now, finally: _USE_ the new shiny template InLength<> for real function calls. Yay! 2018-05-28 15:24:06 +02:00
Roker c60dbe9c18 simplify definition of InLength<>. Add Type2String<> specialization for it, because inheritance does not work here. :-( 2018-05-28 15:23:28 +02:00
Roker 625a9d8128 In<c_string> stores the length. InLength<> retrieves it. 2018-05-28 15:08:09 +02:00
Roker c84816bddf KISS principle: we only need size_t objects in the store, so only support this type, at the moment. 2018-05-28 15:07:19 +02:00
Roker eedc5ef7f7 enum -> enum class. requires a lot of class name prefixes. :-/ 2018-05-23 11:45:05 +02:00
Roker f43a30d614 store and retrieve objects in the Context 2018-05-23 11:27:57 +02:00
Roker 1b0956dc13 add comment why Out::Out() ignores the value. 2018-05-23 00:17:10 +02:00
Roker 5d91d197ab merge double head. 2018-05-23 00:12:06 +02:00
Roker 44293bb317 explain In<>, Out<>, InOut<> and InOutP<> 2018-05-23 00:11:30 +02:00
Lars Rohwedder d4c633ad0b adopt the test for augmented Out<> return types. correct return value of stringlist_add(): it does _not_ return the whole list, but the last element. m( 2018-05-17 17:16:28 +02:00