Skip to content

Commit 3037180

Browse files
author
mordeth
committed
cc userver: add nodiscard to utils::text::Trim
commit_hash:07e3f2e91ceb5d0ec679664cdfabfe3b3eb548cb
1 parent 8b01fd5 commit 3037180

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

universal/include/userver/utils/text_light.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,15 @@ USERVER_NAMESPACE_BEGIN
1414
namespace utils::text {
1515

1616
/// Return trimmed copy of string.
17+
[[nodiscard]]
1718
std::string Trim(const std::string& str);
1819

1920
/// Trim string in-place.
21+
[[nodiscard]]
2022
std::string Trim(std::string&& str);
2123

2224
/// Return trimmed view of a string.
25+
[[nodiscard]]
2326
std::string_view TrimView(std::string_view str);
2427

2528
enum class SplitFlags {

0 commit comments

Comments
 (0)