diff options
| author | dgolear <[email protected]> | 2025-08-05 13:50:26 +0300 |
|---|---|---|
| committer | dgolear <[email protected]> | 2025-08-05 14:03:29 +0300 |
| commit | 54123d3ffd393903bd5211cfc76cecb51a0b671b (patch) | |
| tree | b509377fac592e5aa559cbb65abe720082380944 /library/cpp/yt/string/string.h | |
| parent | 986452bd918bcba07aff4fe904852a9893129408 (diff) | |
YT: Make trim helpers noncopying; lesser copies in rich ypath parsing
commit_hash:88244dc0263029f091579dd66bba1e03132449fe
Diffstat (limited to 'library/cpp/yt/string/string.h')
| -rw-r--r-- | library/cpp/yt/string/string.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/cpp/yt/string/string.h b/library/cpp/yt/string/string.h index 9e521204838..6758c25c022 100644 --- a/library/cpp/yt/string/string.h +++ b/library/cpp/yt/string/string.h @@ -148,8 +148,8 @@ TString UnderscoreCaseToCamelCase(TStringBuf str); void CamelCaseToUnderscoreCase(TStringBuilderBase* builder, TStringBuf str); TString CamelCaseToUnderscoreCase(TStringBuf str); -TString TrimLeadingWhitespaces(TStringBuf str); -TString Trim(TStringBuf str, TStringBuf whitespaces); +[[nodiscard]] TStringBuf TrimLeadingWhitespaces(TStringBuf str Y_LIFETIME_BOUND); +[[nodiscard]] TStringBuf Trim(TStringBuf str Y_LIFETIME_BOUND, TStringBuf whitespaces = " "); //////////////////////////////////////////////////////////////////////////////// |
