Max Kellermann
|
034bb13e1c
|
util/HugeAllocator: add missing "static inline"
Fixes the non-Linux build.
|
2017-10-26 09:01:06 +02:00 |
|
Max Kellermann
|
c8a2a557db
|
util/HugeAllocator: remove obsolete class HugeAllocation
|
2017-09-21 21:52:08 +02:00 |
|
Max Kellermann
|
7b2b965415
|
util/SliceBuffer: use class HugeArray
|
2017-09-21 21:48:08 +02:00 |
|
Max Kellermann
|
c3cfa18ebe
|
util/HugeAllocator: add template class HugeArray
|
2017-09-21 21:47:52 +02:00 |
|
Max Kellermann
|
b46835e15e
|
util/HugeAllocator: HugeAllocator() returns WritableBuffer<void>
|
2017-09-21 21:47:49 +02:00 |
|
Max Kellermann
|
3e5ce3c92c
|
util/{Const,Writable}Buffer: add static method FromVoidFloor()
|
2017-09-21 21:45:39 +02:00 |
|
Max Kellermann
|
e5c9b4cd75
|
util/{Const,Writable}Buffer: add operator==(nullptr_t)
|
2017-09-21 20:34:36 +02:00 |
|
Max Kellermann
|
8753e558f2
|
util/HugeAllocator: move MADV_DONTFORK setting to HugeForkCow()
Enforcing MADV_DONTFORK is a surprising limitation for this library
which aims to be generic.
|
2017-09-21 19:36:33 +02:00 |
|
Max Kellermann
|
56a9bf459d
|
util/SliceBuffer: use C++11 initializers
|
2017-09-19 19:48:04 +02:00 |
|
Max Kellermann
|
11dbba3503
|
util/HugeAllocator: document std::bad_alloc
|
2017-09-19 19:45:52 +02:00 |
|
Max Kellermann
|
8662427d48
|
util/HugeAllocator: use std::exchange()
|
2017-09-19 19:42:21 +02:00 |
|
Max Kellermann
|
821480d329
|
util/HugeAllocator: make constructor explicit
|
2017-09-19 19:42:19 +02:00 |
|
Max Kellermann
|
c196710fae
|
util/WStringCompare: relicense to BSD-2
|
2017-09-13 16:43:41 +02:00 |
|
Max Kellermann
|
e4f62483ff
|
util/StringView: add default constructors
It was implicitly deleted since commit
db23c2f27b3df1e1ace4f0301a67519f6c5e9047
|
2017-09-13 12:59:31 +02:00 |
|
Max Kellermann
|
8d9347edc5
|
Util/WStringCompare: use struct WStringView
|
2017-09-13 11:47:48 +02:00 |
|
Max Kellermann
|
eff821c1ca
|
Util/StringView: move struct WStringView to separate header
|
2017-09-13 11:22:59 +02:00 |
|
Max Kellermann
|
3bcd6ecbad
|
util/Exception: update API documentation
|
2017-09-13 10:49:34 +02:00 |
|
Max Kellermann
|
e76f4c2ae9
|
util/DeleteDisposer: convert struct to class
|
2017-09-13 10:35:51 +02:00 |
|
Max Kellermann
|
f46ac45d69
|
util/*: update include guards
|
2017-09-13 10:35:11 +02:00 |
|
Max Kellermann
|
1d1259a86d
|
util/AllocatedString: add method data()
|
2017-09-13 10:34:12 +02:00 |
|
Max Kellermann
|
101f08ca75
|
util/Cast: make the "member" pointer const
|
2017-09-13 10:32:55 +02:00 |
|
Max Kellermann
|
3b7f9827ab
|
Util/IterableSplitString: add wchar_t specialization
|
2017-09-12 19:12:09 +02:00 |
|
Max Kellermann
|
f98bf39005
|
Util/IterableSplitString: add template class BasicIterableSplitString
|
2017-09-12 19:12:09 +02:00 |
|
Max Kellermann
|
9e7df54ccd
|
Util/StringView: add struct TStringView
|
2017-09-12 19:12:09 +02:00 |
|
Max Kellermann
|
db23c2f27b
|
util/StringView: allow casting from BasicStringView to StringView
|
2017-09-12 19:08:47 +02:00 |
|
Max Kellermann
|
9744f437d8
|
Util/CharUtil: add wchar_t overloads
Needed for WStringView.
|
2017-09-12 18:22:02 +02:00 |
|
Max Kellermann
|
01f84b0e53
|
util/StringView: add struct WStringView
|
2017-09-12 17:17:13 +02:00 |
|
Max Kellermann
|
5dbdd36263
|
util/StringView: add struct BasicStringView
|
2017-09-12 17:17:13 +02:00 |
|
Max Kellermann
|
96b557c1f0
|
util/StringView: remove methods SetEmpty(), Empty()
|
2017-09-12 17:17:13 +02:00 |
|
Max Kellermann
|
ebdb7c8de2
|
util/WStringAPI: add StringIsEqualIgnoreCase() overload
|
2017-09-12 17:17:13 +02:00 |
|
Max Kellermann
|
1fda842ee6
|
util/StringView: use StringAPI.hxx
|
2017-09-12 17:00:42 +02:00 |
|
Max Kellermann
|
f71e20d0ce
|
util/StringView: use value_type
|
2017-09-12 17:00:38 +02:00 |
|
Max Kellermann
|
988680de33
|
util/StringView: remove unnecessary operator= overloads
These will be generated by the compiler automatically.
|
2017-09-12 17:00:02 +02:00 |
|
Max Kellermann
|
cdf92c6300
|
util/StringView: remove redundant template parameters
|
2017-09-12 16:57:19 +02:00 |
|
Max Kellermann
|
be5b726c0a
|
util/StringView: remove Literal()
This is not necessary, because a strlen() on a literal gets optimized
away by the compiler.
|
2017-09-12 16:55:10 +02:00 |
|
Max Kellermann
|
fe9ffcb9d2
|
Merge branch 'v0.20.x'
|
2017-08-08 19:30:30 +02:00 |
|
Max Kellermann
|
a4019cb6aa
|
util/StringBuffer: use std::array::const_iterator
|
2017-08-07 16:18:43 +02:00 |
|
Max Kellermann
|
b0703b92c3
|
util/FormatString: pass the allocated buffer to AllocatedString::Donate()
.. and not the stack buffer. This made the AllocatedString destructor
crash.
Closes #52
|
2017-08-03 00:25:30 +02:00 |
|
Max Kellermann
|
501a4af914
|
util/StringUtil: move strip functions to StringStrip.cxx
|
2017-07-05 17:20:02 +02:00 |
|
Max Kellermann
|
dad7d7e798
|
util/TruncateString: rename CopyString() to CopyTruncateString()
|
2017-07-05 17:15:58 +02:00 |
|
Max Kellermann
|
4b94ae8040
|
util/StringUtil: move CopyString() to TruncateString.cxx
|
2017-07-05 17:11:34 +02:00 |
|
Max Kellermann
|
b04679b429
|
util/WritableBuffer: add method MoveFront()
|
2017-07-05 17:10:59 +02:00 |
|
Max Kellermann
|
19358d1c42
|
util/Exception: add more utility functions
|
2017-07-05 17:08:26 +02:00 |
|
Max Kellermann
|
8679074be7
|
util/Exception: move code to AppendNestedMessage()
|
2017-07-05 17:07:43 +02:00 |
|
Max Kellermann
|
ba09e22c30
|
util/Exception: add GetFullMessage(std::exception)
|
2017-07-05 17:07:41 +02:00 |
|
Max Kellermann
|
6515b9727d
|
util/Exception: catch std::nested_exception
|
2017-07-05 17:07:40 +02:00 |
|
Max Kellermann
|
4af8e5bdb5
|
util/Exception: include cleanup
|
2017-07-05 17:07:39 +02:00 |
|
Max Kellermann
|
2db8cf477b
|
util/Exception: add "fallback" and "separator" parameters
|
2017-07-05 16:59:40 +02:00 |
|
Max Kellermann
|
3cfefa53f7
|
util/Exception: rename FullMessage() to GetFullMessage()
|
2017-07-05 12:25:55 +02:00 |
|
Max Kellermann
|
bce89feb13
|
util/Manual: drop prefix from include guard
|
2017-07-05 12:25:32 +02:00 |
|