summaryrefslogtreecommitdiff
path: root/cli/txt.hxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-04-08 14:51:57 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2020-04-27 11:38:53 +0300
commit720c5a33b6a49cf328fdd7611f49153cf8f60247 (patch)
tree9725f3d1f42ec90fde84520f49647edea013ce5e /cli/txt.hxx
parent3183f3bb927a90783ae0aeaf190a0919377aabe4 (diff)
Separate tests and examples into individual packages
Also make cli module to be explicitly enabled via the config.cli configuration variable.
Diffstat (limited to 'cli/txt.hxx')
-rw-r--r--cli/txt.hxx46
1 files changed, 0 insertions, 46 deletions
diff --git a/cli/txt.hxx b/cli/txt.hxx
deleted file mode 100644
index cde31c9..0000000
--- a/cli/txt.hxx
+++ /dev/null
@@ -1,46 +0,0 @@
-// file : cli/txt.hxx
-// author : Boris Kolpackov <boris@codesynthesis.com>
-// license : MIT; see accompanying LICENSE file
-
-#ifndef CLI_TXT_HXX
-#define CLI_TXT_HXX
-
-#include <iosfwd> // ostream
-#include <string>
-#include <cstddef> // size_t
-
-#include <cli/context.hxx>
-
-void
-generate_txt (context&);
-
-// Return the number of "text characters", ignoring any escape sequences
-// (e.g., ANSI color).
-//
-std::size_t
-txt_size (const std::string&,
- std::size_t p = 0,
- std::size_t n = std::string::npos);
-
-// This function assumes that the initial opening part has already been
-// written with the 'first' argument being the number of characters already
-// written in the first line (e.g., an option name). The 'indent' argument
-// specified how many spaces to indent each line. The 'escape' argument is
-// the optional escape function (e.g., for the string literal output). The
-// line_{start, end, blank} arguments specify optional extra text for the
-// start/end of the non-empty line as well as for the blank (empty) line.
-//
-// Note that the funtion modifies the passed string in order to translate
-// notes.
-//
-void
-txt_wrap_lines (std::ostream& os,
- std::string&,
- std::size_t indent = 0,
- std::size_t first = 0,
- const char* line_start = "",
- const char* line_end = "",
- const char* line_blank = "",
- std::string (*escape) (std::string const&) = 0);
-
-#endif // CLI_TXT_HXX