X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=folly%2FFormatArg.h;h=c4d94736aa6b39c25896ee17c3dc673386c9702b;hb=140c62d25d930cdbdacaa337d254a2471875a4be;hp=bcf4c476602e3c4e7eac549b23e9e3e0535464db;hpb=275ca94d04e44f28cfa411668eb1c1dd8db90b80;p=folly.git diff --git a/folly/FormatArg.h b/folly/FormatArg.h index bcf4c476..c4d94736 100644 --- a/folly/FormatArg.h +++ b/folly/FormatArg.h @@ -48,6 +48,7 @@ struct FormatArg { thousandsSeparator(false), trailingDot(false), width(kDefaultWidth), + widthIndex(kNoIndex), precision(kDefaultPrecision), presentation(kDefaultPresentation), nextKeyMode_(NextKeyMode::NONE) { @@ -135,10 +136,13 @@ struct FormatArg { bool trailingDot; /** - * Field width + * Field width and optional argument index */ static constexpr int kDefaultWidth = -1; + static constexpr int kDynamicWidth = -2; + static constexpr int kNoIndex = -1; int width; + int widthIndex; /** * Precision