Commit Graph

1191 Commits

Author SHA1 Message Date
Martchus 789b9e9184 Add macro to auto init resources of static deps
The actual generation of the macro code is done
in qtutilities
2017-02-11 02:03:02 +01:00
Martchus 9087e8da7e Fix dependency of res file for built-in translations 2017-02-09 16:22:33 +01:00
Martchus af1ab16d77 Use CPPUNIT_ASSERT_EQUAL where possible 2017-02-06 18:35:20 +01:00
Martchus c4cf107de2 Make cast in binary reader explicit 2017-02-06 18:32:27 +01:00
Martchus c4d73b0d7d Use C++14 string literal 2017-02-06 18:32:27 +01:00
Martchus 06af1c4a73 Use std::make_unique provided by C++14 2017-02-05 21:00:52 +01:00
Martchus 96c4e24b6c Require C++14 2017-02-05 19:19:59 +01:00
Martchus c13eee6fcc Add workingCopyPathMode() to be able to skip actual copy 2017-02-04 20:16:50 +01:00
Martchus cb3b50c28c Allow overriding default CXX_STANDARD
to ease using newer C++ features in further
projects without setting the standard manually
for each target
2017-02-04 17:44:46 +01:00
Martchus 6115933756 Add convenience function to read entire file at once 2017-02-03 01:06:38 +01:00
Martchus 94a6b47811 Improve documentation 2017-02-03 00:54:44 +01:00
Martchus 1ace53533a string builder: Remove unused code 2017-01-30 00:40:31 +01:00
Martchus 17fe42e0ad string builder: Support integral types directly
Not only convenient but also performance improvement
2017-01-30 00:11:33 +01:00
Martchus df1605c9b1 Add trait to detect template specialization
Useful to check for std::tuple
2017-01-30 00:08:35 +01:00
Martchus 39960ccef1 Add simple benachmark for string builder 2017-01-27 22:16:29 +01:00
Martchus 33d368397f Make use of newly introduced string builder 2017-01-27 18:51:54 +01:00
Martchus 5c004015ce string builder: Fix ambiguity issues 2017-01-27 18:50:51 +01:00
Martchus 5eec3c3c9b traits: Fix Any and add Enable-/DisableIfAny 2017-01-27 18:49:53 +01:00
Martchus a772cdf30b Add conveniently usable string builder
which allows fast string building without multiple heap allocations
2017-01-26 22:16:18 +01:00
Martchus f23c381da4 Support dylib extension used under macOS 2017-01-15 17:44:23 +01:00
Martchus 1bff266fa9 Add missing #endif in platform detection 2017-01-14 02:24:36 +01:00
Martchus 8d95b4497f Clean io/path.h 2017-01-14 00:33:02 +01:00
Martchus c4ed080b34 Fix platform detection
* Consider macOS a UNIX system
* Remove compiler conditions for PLATFORM_MAC
2017-01-14 00:29:43 +01:00
Martchus 640d20c463 Make Qt translations of dependencies available in config.h 2017-01-07 16:07:03 +01:00
Martchus 81913922a6 Merge pull request #3 from svnpenn/master
io/nativefilestream.cpp: proper catchiofailure.h include
2016-12-30 09:54:58 +01:00
Steven Penny 025be1e54e io/nativefilestream.cpp: proper catchiofailure.h include
1. Using <> makes no sense if cpp-utilities is being built for first time

2. Again, search in <prefix>/c++utilities/io makes no sense if cpp-utilities is
   being built for first time
2016-12-29 22:16:38 -06:00
Martchus 737f73e71a Make forcing UTF-8 codepage optional 2016-12-24 16:08:09 +01:00
Martchus 28d2063d33 Fix Bash completion for abbreviations 2016-12-24 16:07:43 +01:00
Martchus cab332bcad Refactor reading arguments
Replace ArgumentParser::readSpecifiedArgs() with
ArgumentReader class to simplify argument list
2016-12-23 22:40:33 +01:00
Martchus 9d91cfca07 Add NativeFileStream to support unicode filenames under Windows 2016-12-21 00:29:57 +01:00
Martchus 59a8dfe833 Convert args to UTF-8 under Windows 2016-12-19 23:44:34 +01:00
Martchus 89cb027786 Ensure console output is UTF-8 under Windows 2016-12-19 23:43:24 +01:00
Martchus 36246d3895 Allow adding files for documentation only 2016-12-11 17:09:02 +01:00
Martchus 939a43e348 Clean argument parser tests 2016-12-07 21:06:21 +01:00
Martchus 416008da1a Set compile definitions for tests 2016-11-26 13:06:27 +01:00
Martchus 82b5bf3f1d Fix Bash completion when last pre-defined value matches 2016-11-26 00:14:45 +01:00
Martchus 70869f24a8 Add method to reset arguments recursively 2016-11-26 00:11:48 +01:00
Martchus d8b9845d15 Document building and linking with static libs 2016-11-23 00:39:43 +01:00
Martchus 116ab9a238 Add note about Cygwin in README.md 2016-11-21 20:39:01 +01:00
Martchus 4503f3fd9d Include imported targets actually 2016-11-21 20:14:10 +01:00
Martchus ade4565e0c Make Windows icon optional 2016-11-21 19:54:53 +01:00
Martchus 9c97d8722d Merge pull request #2 from Martchus/cygwin_fix
Fix compilation on Cygwin
2016-11-19 00:46:58 +01:00
Martchus d18c7dc9f7 Improve README.md 2016-11-18 18:31:48 +01:00
Martchus c1e18fcbf5 Fix compilation on Cygwin 2016-11-18 16:41:46 +01:00
Martchus 9f3ca443e4 Make ArgumentParser::verifyArgs() more strict 2016-11-15 22:02:40 +01:00
Martchus bbb884da30 Don't imply args which can't be combined
Leads to more useful error messages if an unknown
argument has been specified.
2016-11-15 21:44:23 +01:00
Martchus 4c0a1d1169 Fix minor mistake in argument parser 2016-11-14 22:38:21 +01:00
Martchus 2be349856f Make numberToString/stringToNumber work with u16string
Don't rely on std::basic_stringstream at least for
integral types.
2016-11-13 23:06:03 +01:00
Martchus bd9cdfccb2 Add traits for exploiting SFINAE 2016-11-13 22:51:09 +01:00
Martchus 722e9ae590 Improve install-mingw-w64-strip target 2016-11-12 02:06:52 +01:00