diff options
author | amatanhead <amatanhead@yandex-team.ru> | 2022-02-10 16:50:04 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:04 +0300 |
commit | b6f3a80f7c2c8b7dbb0c01b056fdc1fd8cd820e9 (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/getopt/small/wrap.h | |
parent | 8879605a63ac17539be5b3bd41b529791f4d4b02 (diff) | |
download | ydb-b6f3a80f7c2c8b7dbb0c01b056fdc1fd8cd820e9.tar.gz |
Restoring authorship annotation for <amatanhead@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/getopt/small/wrap.h')
-rw-r--r-- | library/cpp/getopt/small/wrap.h | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/library/cpp/getopt/small/wrap.h b/library/cpp/getopt/small/wrap.h index 223c21e720..e98028688d 100644 --- a/library/cpp/getopt/small/wrap.h +++ b/library/cpp/getopt/small/wrap.h @@ -1,16 +1,16 @@ -#pragma once - -#include <util/generic/fwd.h> -#include <util/generic/strbuf.h> - -namespace NLastGetopt { - /** - * Split text to multiple lines so that each line fits the given width. - * Can work with UTF8, understands ANSI escape codes. - * - * @param indent will print this string after each newline. - * @param lastLineLen output: will set to number of unicode codepoints in the last printed line. - * @param hasParagraphs output: will set to true if there are two consecutive newlines in the text. - */ - TString Wrap(ui32 width, TStringBuf text, TStringBuf indent = "", size_t* lastLineLen = nullptr, bool* hasParagraphs = nullptr); -} +#pragma once + +#include <util/generic/fwd.h> +#include <util/generic/strbuf.h> + +namespace NLastGetopt { + /** + * Split text to multiple lines so that each line fits the given width. + * Can work with UTF8, understands ANSI escape codes. + * + * @param indent will print this string after each newline. + * @param lastLineLen output: will set to number of unicode codepoints in the last printed line. + * @param hasParagraphs output: will set to true if there are two consecutive newlines in the text. + */ + TString Wrap(ui32 width, TStringBuf text, TStringBuf indent = "", size_t* lastLineLen = nullptr, bool* hasParagraphs = nullptr); +} |