diff options
author | arivkin <arivkin@yandex-team.ru> | 2022-02-10 16:50:49 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:49 +0300 |
commit | a17cede06970d9a290b04aac822afb40a7c2aa86 (patch) | |
tree | cafc8248e5e485600fad3b55cbbee92a5179de3d /library/cpp/yt/string | |
parent | cdd0799465ab07b2689e623e8db9cd333b01e0dc (diff) | |
download | ydb-a17cede06970d9a290b04aac822afb40a7c2aa86.tar.gz |
Restoring authorship annotation for <arivkin@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/yt/string')
-rw-r--r-- | library/cpp/yt/string/format.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/library/cpp/yt/string/format.h b/library/cpp/yt/string/format.h index 9708fe5906..d0cde5f08b 100644 --- a/library/cpp/yt/string/format.h +++ b/library/cpp/yt/string/format.h @@ -11,44 +11,44 @@ namespace NYT { * * Basically works as a type-safe analogue of |sprintf| and is expected to * be backwards-compatible with the latter. - * + * * Like Go's |Sprintf|, supports the ultimate format specifier |v| * causing arguments to be emitted in default format. * This is the default and preferred way of formatting things, * which should be used in newer code. - * + * * |Format| may currently invoke |sprintf| internally for emitting numeric and some other * types. You can always write your own optimized implementation, if you wish :) - * + * * In additional to the usual |sprintf|, supports a number of non-standard flags: - * + * * |q| Causes the argument to be surrounded with single quotes (|'|). * Applies to all types. - * + * * |Q| Causes the argument to be surrounded with double quotes (|"|). * Applies to all types. - * + * * |l| The argument is emitted in "lowercase" style. * Only applies to enums and bools. - * + * * The following argument types are supported: - * + * * Strings (including |const char*|, |TStringBuf|, and |TString|) and chars: * Emitted as is. Fast. - * + * * Numerics and pointers: * Emitted using |sprintf|. Maybe not that fast. - * + * * |bool|: * Emitted either as |True| and |False| or |true| and |false| (if lowercase mode is ON). - * + * * Enums: * Emitted in either camel (|SomeName|) or in lowercase-with-underscores style * (|some_name|, if lowercase mode is ON). - * + * * Nullables: * |std::nullopt| is emitted as |<null>|. - * + * * All others: * Emitted as strings by calling |ToString|. * |