Max Kellermann
|
3796247d6d
|
util/Stringview: use const_pointer instead of hard-coding const char *
Fixes Windows build failure.
|
2020-03-13 19:43:23 +01:00 |
|
Max Kellermann
|
a63d0ee8fc
|
util/StringView: add method substr()
|
2020-03-13 18:48:40 +01:00 |
|
Max Kellermann
|
4937d77cb6
|
util/{Const,Writable}Buffer: drop "_type" from type names
Behave like STL.
|
2020-01-03 15:55:06 +01:00 |
|
Max Kellermann
|
53f8053188
|
util/StringView: use using instead of typedef
|
2020-01-03 15:55:05 +01:00 |
|
Max Kellermann
|
c9590db188
|
util/StringView: enable string_view support only on C++17
|
2019-09-25 21:34:48 +02:00 |
|
Max Kellermann
|
0b956cf968
|
util/StringAPI: add memrchr() wrapper
|
2019-09-07 23:59:59 +02:00 |
|
Max Kellermann
|
79d1004544
|
util/StringView: add method Compare()
|
2019-08-16 13:32:00 +02:00 |
|
Max Kellermann
|
0f1e13d9ff
|
util/StringView: add StartsWithIgnoreCase(), EndsWithIgnoreCase()
|
2019-08-14 11:36:21 +02:00 |
|
Max Kellermann
|
91fb91d89c
|
util/StringView: prepare the transition to std::string_view
Unfortunately, we need to disable this for GCC versions older than 7,
because it doesn't have <string_view> yet.
|
2019-08-05 10:23:05 +02:00 |
|
Max Kellermann
|
76eb550011
|
util/StringView: add method Split()
|
2019-06-06 12:54:42 +02:00 |
|
Max Kellermann
|
05aa9f72a9
|
util/StringView: add SkipPrefix(), RemoveSuffix()
|
2019-02-19 11:51:32 +01:00 |
|
Max Kellermann
|
fe6de14faf
|
util/StringView: add ConstBuffer cast constructors
|
2018-08-20 15:34:07 +02:00 |
|
Max Kellermann
|
49784513b1
|
util/{Const,Writable}Buffer, ...: rename IsEmpty() to empty(), imitating STL
|
2017-11-10 19:24:33 +01:00 |
|
Max Kellermann
|
e4f62483ff
|
util/StringView: add default constructors
It was implicitly deleted since commit
db23c2f27b
|
2017-09-13 12:59:31 +02:00 |
|
Max Kellermann
|
eff821c1ca
|
Util/StringView: move struct WStringView to separate header
|
2017-09-13 11:22:59 +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
|
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
|
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
|
cdd2d4cc1d
|
util/StringView: add method EndsWith()
|
2017-05-17 12:39:01 +02:00 |
|
Max Kellermann
|
86a0a42a8d
|
util/StringView: add "noexcept"
|
2017-05-16 10:27:14 +02:00 |
|
Max Kellermann
|
6eea56861b
|
AUTHORS, ...: update my email address
|
2017-01-17 11:54:55 +01:00 |
|
Max Kellermann
|
b1becddf11
|
util/StringView: add method Strip()
|
2016-03-18 15:40:49 +01:00 |
|
Max Kellermann
|
b4e75bedf0
|
util/StringView: make nullptr_t constructor "constexpr"
|
2016-03-18 14:11:50 +01:00 |
|
Max Kellermann
|
b9a8b0d146
|
util/StringView: add method Literal()
|
2015-11-06 10:03:45 +01:00 |
|
Max Kellermann
|
27a40a9843
|
util/StringView: add methods StripLeft(), StripRight()
|
2015-10-16 08:59:47 +02:00 |
|
Max Kellermann
|
356c829b76
|
util/StringView: new utility class
|
2015-09-30 22:21:46 +02:00 |
|