Commit Graph

67 Commits (065e730d87c4f7b0878f0296d06db6759d2931f7)
 

Author SHA1 Message Date
roker 065e730d87 unrelated, but still not commited.
2 years ago
roker 5cdb6e3bdc add additional explicit template instantiations. :-/
2 years ago
roker f914202788 add identity_list* Wrapper<::identity_list*>::copy_out()
2 years ago
roker 7973a9638b okay, we allow copying for all Wrapper where copy_out() is implemented.
2 years ago
roker d965b3115b allow non-const access to wrapped type. Can be dangerous! USE WITH CAUTION!
2 years ago
roker af5720bed0 add copy_out() to get a copy of the wrapped value.
2 years ago
roker 8f7f181899 oh, the missing comma confuses libetpan, letting it reject the whole Cc: line. pEpMIME parses 4 entries here. Who is rignt?
2 years ago
roker 5c399ab820 fix Wrapper<::message*>::_new() to use mime_decode_message() instead of a dummy.
2 years ago
roker 8306edaf09 resort the test to see what is working and what not, yet.
2 years ago
roker 0c82dcc5dc add an EXPECT_NE() to check for nullptr before derefencing it. Avoids segfault. But the test is still red.
2 years ago
roker 1da02a1eb2 add more comprehensive test for message parser. And... it segfaults. :-(
2 years ago
heck b536dac898 Build: Add local.conf.example
2 years ago
roker 5ffd66f169 fix the unittests for UTF-16 NFC tests
2 years ago
roker 1d1575e971 copy unittest_nfc.cc to unittest_nfc16.cc
2 years ago
roker 6e1f680ec5 use string_view in unittest_nfc. That avoids copying and makes compiler happy, too!
2 years ago
roker d3747a8b1f add UTF-16 stuff, and try to re-use as much code as possible.
2 years ago
roker 1a9c3fc1a8 implement parseUtf16().
2 years ago
roker b9a0dde181 add u16string_view.
2 years ago
roker 57ee30017d test the wrapper for message.
2 years ago
roker 2348e3a080 inherit from std::iterator<> to add some typedefs that make GNU G++ happy. Unfortunately, std::iterator<> is deprecated in C++17, for whatever reason. :-/
2 years ago
roker fea6876528 remove warning. :-D
2 years ago
roker d36141f3b1 forgot Wrapper<pEp_identity*>::_new() and ~::free().
2 years ago
roker 9278dd9e9b add unittest for identity & identity_list
2 years ago
roker 8dd301c251 fix cut & paste errors, so the compiler is happy again. :)
2 years ago
roker 9f2d01a2bf add identity & identity_list.
2 years ago
roker 2e1241bb5f okay, ListWrapper<bloblist_t*, void> is a full specialization, so its members don't need "template<>". Clang++ did not tell me that, g++ did. But still bizarre somehow...
2 years ago
roker 23d25ef428 G++ does not like "non-template functions as friends of class templates. So I change the operator== into member function. :-|
2 years ago
roker 176d649476 add bloblist specialization. DOES NOT COMPILE, YET.
2 years ago
roker 76ead4b179 add identity.cc I had fogotten.
2 years ago
roker 801f23a746 uuuh... a const_cast would silent the compiler. hmm.
2 years ago
roker 392662b981 unittest to show how the intended usage will be.
2 years ago
roker cbbd03ae01 okay, if I change the value_type from 'char*' to 'const char*' I got other troubles there... *sigh*
2 years ago
roker 16cf6ce9c3 add stringlist wrapper.
2 years ago
roker b8529ff268 change return type.
2 years ago
roker 39e8dd2d10 Yay, all tests are green now! \o/
2 years ago
roker 555c3acd88 fix member functions
2 years ago
roker 450acba1bc now the unittests compile. \o/ All declared functions & variables are defined.
2 years ago
roker 8f86913011 implement missing member functions for StringPair and StringPairList.
2 years ago
roker 999052db8b externalize zhe initializer_list<> to get better compiler error messages. might be reverted sometimes later.
2 years ago
roker 2b41928f54 define a separate iterator type which can be copied easily and does not own the pointee. Add weird member pointer. \o/
2 years ago
roker 8c2cef7b27 okay, it does not work this way: iterators are copied often, but the main Wrapper<T> shall not be copyable.
2 years ago
roker 680a19bcc8 find() -> find_if() etc. to make it compile. *sigh*
2 years ago
roker 68f3006e37 fix unittests. but there is still a lot to do...
2 years ago
roker 0f8cdd048a add ListWrapper<T,E>. define StringPairList.
2 years ago
roker 1a270a0106 add comprehensive test for pEp::StringPairList
2 years ago
roker 63cc9909a2 add default goal in Makefile.
2 years ago
roker 377074baf8 make 'all' a PONY target.
2 years ago
roker d52ed09280 add unittest_stringpair; fix linker errors.
2 years ago
roker b8b855e075 add wrapper for stringpair_t
2 years ago
roker 2a8fbafbb8 add operator""_sv().
2 years ago