Pieter Wuille
e7d2fbda63
Use std::string_view throughout util strencodings/string
2022-04-27 14:13:39 +02:00
Sebastian Falbesoner
9cc8e876e4
refactor: introduce single-separator split helper SplitString
...
This helper uses spanparsing::Split internally and enables to replace
all calls to boost::split where only a single separator is passed.
Co-authored-by: Martin Ankerl <Martin.Ankerl@gmail.com>
Co-authored-by: MarcoFalke <falke.marco@gmail.com>
2022-04-11 22:19:46 +02:00
Hennadii Stepanov
f47dda2c58
scripted-diff: Bump copyright headers
...
-BEGIN VERIFY SCRIPT-
./contrib/devtools/copyright_header.py update ./
-END VERIFY SCRIPT-
Commits of previous years:
* 2020: fa0074e2d8
* 2019: aaaaad6ac9
2021-12-30 19:36:57 +02:00
MarcoFalke
fa44237d76
doc: Fix typos in endif header comments
2021-11-16 09:56:45 +01:00
Hennadii Stepanov
77a90f03ac
refactor: Move MakeUnorderedList into util/string.h to make it reusable
2021-08-06 22:08:24 +03:00
practicalswift
b4511e2e2e
log: Prefix log messages with function name if -logsourcelocations is set
2021-01-15 09:57:32 +00:00
practicalswift
4848e71107
scripted-diff: Use [[nodiscard]] (C++17) instead of NODISCARD
...
-BEGIN VERIFY SCRIPT-
sed -i "s/NODISCARD/[[nodiscard]]/g" $(git grep -l "NODISCARD" ":(exclude)src/bench/nanobench.h" ":(exclude)src/attributes.h")
-END VERIFY SCRIPT-
2020-11-26 09:05:59 +00:00
Vasil Dimov
d2bb681f96
util: move HasPrefix() so it can be reused
...
Move the function `HasPrefix()` from `netaddress.cpp` to `util/string.h`
so it can be reused by `CNetAddr` methods (and possibly others).
2020-09-11 13:35:39 +02:00
Hennadii Stepanov
4c9b9a4882
util: Enhance Join()
2020-05-10 18:00:19 +03:00
MarcoFalke
fa488f131f
scripted-diff: Bump copyright headers
...
-BEGIN VERIFY SCRIPT-
./contrib/devtools/copyright_header.py update ./
-END VERIFY SCRIPT-
2020-04-16 13:33:09 -04:00
Ben Woosley
d056df033a
Replace std::to_string with locale-independent alternative
2020-03-14 12:23:01 -07:00
practicalswift
32e27129ff
util: Move TrimString(...). Introduce default pattern (trims whitespace). Add NODISCARD.
2019-12-16 22:50:49 +00:00
practicalswift
d945c6f5e6
util: Don't allow base58-decoding of std::string:s containing non-base58 characters
2019-12-12 11:01:56 +00:00
practicalswift
084e17cebd
Remove unused includes
2019-10-15 22:56:43 +00:00
MarcoFalke
fa8cd6f9c1
util: Add Join helper to join a list of strings
2019-08-20 16:51:41 -04:00