diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2024-03-29 21:13:23 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2024-04-01 17:45:55 +0300 |
commit | 6cb77d97d659441036fac18af6479eeac4127dcb (patch) | |
tree | 47e43d9919a0b90b45e76da1f46e0b736e1a3633 /mod/page.hxx | |
parent | 2b5bea3871d0ccc1b7da32929f195dc161bcc1ec (diff) |
Stash build toolchain in tenant object
Diffstat (limited to 'mod/page.hxx')
-rw-r--r-- | mod/page.hxx | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/mod/page.hxx b/mod/page.hxx index cac2b8b..7329e2d 100644 --- a/mod/page.hxx +++ b/mod/page.hxx @@ -82,21 +82,24 @@ namespace brep // Generate counter element. // - // It could be redunant to distinguish between singular and plural word forms - // if it wouldn't be so cheap in English, and phrase '1 Packages' wouldn't - // look that ugly. + // If the count argument is nullopt, then it is assumed that the count is + // unknown and the '?' character is printed instead of the number. + // + // Note that it could be redunant to distinguish between singular and plural + // word forms if it wouldn't be so cheap in English, and phrase '1 Packages' + // wouldn't look that ugly. // class DIV_COUNTER { public: - DIV_COUNTER (size_t c, const char* s, const char* p) + DIV_COUNTER (optional<size_t> c, const char* s, const char* p) : count_ (c), singular_ (s), plural_ (p) {} void operator() (xml::serializer&) const; private: - size_t count_; + optional<size_t> count_; const char* singular_; const char* plural_; }; |