| PPL
    1.2
    | 
All input/output operators are confined to this namespace. More...
| Functions | |
| std::string | wrap_string (const std::string &src_string, unsigned indent_depth, unsigned preferred_first_line_length, unsigned preferred_line_length) | 
| Utility function for the wrapping of lines of text.  More... | |
All input/output operators are confined to this namespace.
This is done so that the library's input/output operators do not interfere with those the user might want to define. In fact, it is highly unlikely that any predefined I/O operator will suit the needs of a client application. On the other hand, those applications for which the PPL I/O operator are enough can easily obtain access to them. For example, a directive like
would suffice for most uses. In more complex situations, such as
the Parma_Polyhedra_Library namespace must be suitably extended. This can be done as follows:
| std::string Parma_Polyhedra_Library::IO_Operators::wrap_string | ( | const std::string & | src_string, | 
| unsigned | indent_depth, | ||
| unsigned | preferred_first_line_length, | ||
| unsigned | preferred_line_length | ||
| ) | 
Utility function for the wrapping of lines of text.
| src_string | The source string holding the lines to wrap. | 
| indent_depth | The indentation depth. | 
| preferred_first_line_length | The preferred length for the first line of text. | 
| preferred_line_length | The preferred length for all the lines but the first one. |