From 577a38358b295379511ea8bb130ef1dcb7157c0f Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 8 Nov 2009 21:28:46 +0200 Subject: Implement HTML pages generation --- cli/context.hxx | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'cli/context.hxx') diff --git a/cli/context.hxx b/cli/context.hxx index 194c008..f6d53c3 100644 --- a/cli/context.hxx +++ b/cli/context.hxx @@ -63,14 +63,23 @@ public: string escape (string const&) const; - // Format the documentation string. + // Translate and format the documentation string. Translate converts + // the -style constructs to \i{arg}. Format converts the string + // to the output format. // enum output_type { - ot_plain + ot_plain, + ot_html }; static string + translate_arg (string const&, std::set&); + + static string + translate (string const&, std::set const&); + + static string format (string const&, output_type); public: -- cgit v1.1