![]()  | 
  
    Vcsn
    2.3
    
   Be Rational 
   | 
 
An input/output format for valuesets. More...
#include <format.hh>
Public Types | |
| enum | format_t {  latex, raw, sname, text, utf8, deflt = text }  | 
| Type of format.  More... | |
| using | self_t = format | 
Public Member Functions | |
| format (format_t f=deflt) | |
| format (const std::string &f) | |
| format | for_labels () const | 
| A copy of this format, but to print labels.  More... | |
| format | for_weights () const | 
| A copy of this format, but to print weights.  More... | |
| bool | delimit () const | 
Whether we should delimit: (1, 2) instead of 1, 2.  More... | |
| format | delimit (bool d) const | 
Set whether we should delimit: (1, 2) instead of 1, 2.  More... | |
| const char * | meta () const | 
| Characters that need to be escaped.  More... | |
| format | meta (const char *m) const | 
| Set the list of additional meta characters that need to be escaped.  More... | |
| bool | is_for_labels () const | 
| Whether to use the syntax for labels (e.g., "a|x").  More... | |
| bool | is_for_weights () const | 
| Whether to use the syntax for weights (e.g., "(1, 1/2)").  More... | |
| format_t | kind () const | 
| bool | operator< (self_t that) const | 
| bool | operator== (self_t that) const | 
| bool | operator!= (self_t that) const | 
Private Attributes | |
| format_t | format_ | 
| bool | label_ = false | 
Whether printed as a label (e.g., a|x), or as a weight (e.g., (1, 1/2)).  More... | |
| bool | delimit_ = false | 
Whether we should delimit. E.g., 1, 2 or (1, 2).  More... | |
| const char * | meta_ = nullptr | 
| Additional characters to escape.  More... | |
An input/output format for valuesets.
For instance, whether text or latex, and other syntactic issues.
| using vcsn::format::self_t = format | 
| vcsn::format::format | ( | const std::string & | f | ) | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
A copy of this format, but to print labels.
Definition at line 42 of file format.hh.
References vcsn::res.
Referenced by vcsn::rat::dot_printer< ExpSet >::print_(), and vcsn::detail::polynomialset_impl< Context, Kind >::print_with_classes_().
      
  | 
  inline | 
A copy of this format, but to print weights.
Definition at line 50 of file format.hh.
References vcsn::res.
Referenced by vcsn::rat::printer< ExpSet >::print_(), and vcsn::rat::dot_printer< ExpSet >::print_().
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
Definition at line 98 of file format.hh.
References format_.
Referenced by vcsn::detail::tupleset_impl< ValueSets >::print_set_(), and vcsn::to_string().
      
  | 
  inline | 
      
  | 
  inline | 
Definition at line 113 of file format.hh.
References operator==().
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  private | 
      
  | 
  private | 
Definition at line 119 of file format.hh.
Referenced by format(), kind(), operator<(), and operator==().
      
  | 
  private | 
Whether printed as a label (e.g., a|x), or as a weight (e.g., (1, 1/2)). 
Definition at line 122 of file format.hh.
Referenced by is_for_labels(), and is_for_weights().
      
  | 
  private |