56ed44f0e3
io: instantiate slurp for unsigned char
2018-07-30 13:18:22 +10:00
c51673e421
io: add slurp for uint32_t
2018-05-03 21:21:45 +10:00
497d3ca970
build: update for gcc-8.1 warnings
2018-05-03 18:32:08 +10:00
9045e16476
io: expose only view style read/write from io module
...
Allow the destination file-like object to implement whatever style
writers and readers they want, but don't expose those directly via the
io module.
2018-01-31 19:30:48 +11:00
1d11f05918
cast: move casting functions into util::cast namespace
2018-01-16 15:11:15 +11:00
9bb2bdbaba
Merge remote-tracking branch 'origin/master'
2018-01-10 17:19:39 +11:00
2713da45f4
format: rework parser for currying support
2018-01-09 16:28:46 +11:00
77c88438d4
except: move posix/win32 exceptions to own units
2017-12-18 15:46:52 +11:00
c1aa0f7a3d
io: slurp should default to providing bytes, not chars
...
std::byte has less potential for abuse. if you want an array of chars
you should ask for it.
2017-09-12 14:18:34 +10:00
4050754ab4
preprocessor: use a script to create map/reduce
...
We need over 300 arguments for some projects and I'm not going to code
that shit by hand.
2017-09-12 14:17:30 +10:00
9a798446b5
build: remove unnecessary includes
...
discovered with include-what-you-use
2016-10-12 15:08:22 +11:00
e80c3c959c
io: return path object from path_error accessor
2016-10-08 17:28:06 +11:00
598c5d4e48
change const char paths to std::filesystem::path
2016-10-08 17:18:18 +11:00
48364cd227
build: use experimental::fs over boost::fs
2016-10-07 19:48:42 +11:00
98732179a7
io: add std::string overload to slurp
2016-10-07 18:08:41 +11:00
152a55ad78
Merge remote-tracking branch 'origin/master'
2016-10-02 16:13:31 +11:00
790728d3b1
posix/fd: extract file descriptor into own unit
2016-10-02 15:50:13 +11:00
798d3aac5a
io: add dup instance method to fd
2016-08-29 16:16:51 +10:00
1b118ff377
io: add static dup method to fd
2016-08-29 16:14:12 +10:00
25913ac885
io: bump copyright year
2016-04-27 17:06:25 +10:00
aa780963e0
io: support piped streams in slurp
2016-04-19 14:52:05 +10:00
80158b7343
io: remove our wrapper flag types
2016-04-05 11:07:23 +10:00
a73bf29e03
io: style
2016-03-17 18:07:45 +11:00
b864ffa00b
io: find the exact storage for the FILE overload
2016-03-17 18:07:08 +11:00
ecb97143cf
io: don't add a null terminator with slurp
2016-03-17 18:06:45 +11:00
a59844be98
don't pull in namespace std
2016-03-11 13:28:56 +11:00
18c3a1eaaf
io: record path in path_error
2016-02-12 13:36:03 +11:00
424e6e8701
cast: move types/casts to cast
2015-11-17 16:19:27 +11:00
620c2d3eb1
io: add FILE slurp overload
2015-10-29 17:52:19 +11:00
cb12d4fd1f
io: remove redundant write overloads
2015-10-29 10:51:42 +11:00
73720feceb
io: remove access_flag abstraction
2015-10-29 10:48:11 +11:00
0967c5252f
io: remove useless chdir wrapper
...
just use chdir directly.
2015-09-15 21:09:37 +10:00
2741cf6375
build: quiesce analyzer warnings
2015-09-09 18:45:23 +10:00
75a1f1e5e7
io: add more write overloads
2015-07-02 16:34:17 +10:00
653ada4bfd
io: change slurp return type to vector
2015-06-11 19:28:03 +10:00
33b3b48c74
io: rename fd_ref to fd
2015-06-11 19:27:42 +10:00
2658b41ea1
relicence under Apache-2.0
2015-04-13 18:05:28 +10:00
52f53caee5
debug: drop support for CHECK_HARD
...
HARD vs SOFT assertions were never very well defined or supported.
Currently they just imply a level of functionality that isn't present;
it's better to remove them instead of expending the effort at this
point.
2015-01-28 14:49:34 +11:00
3d3c1a5f2f
build: instantiate templates in declared namespace
2015-01-10 19:40:32 +11:00
1c009b9602
io: add permissions to fd_ref open call
2014-12-30 18:37:59 +11:00
46686dbc64
io: templatise write on output data type
2014-12-30 18:37:36 +11:00
debdd77610
io: add O_CREAT to flags with ACCESS_WRITE
2014-12-30 18:37:04 +11:00
7d5eac3f2f
io: move mapped_file to platform subfiles
2014-12-19 18:28:50 +11:00
b8ba95f365
io: use appropriate string types for windows
2014-12-05 13:20:44 +11:00
c9fae9f23a
io: rename mapped_file end/begin to cend/cbegin
2014-08-22 19:07:22 +10:00
503f5e2eff
io: require access flags for mapped_file
2014-07-29 02:20:02 +10:00
1a461eddf0
io: give mapped_file begin/end accessors
2014-07-15 19:48:59 +10:00
f559f3d912
io: use more appropriate exceptions in fd_ref
2014-07-15 19:48:34 +10:00
a9af10ec42
io: give fd_ref a flags argument
2014-07-15 19:47:15 +10:00
f46c090c72
io: allow mutable memory for mapped_file
2014-07-07 15:21:17 +10:00