OpenStructure
Public Member Functions
LPadded Struct Reference

#include <formatted_line.hh>

Inherits StringRef.

Public Member Functions

 LPadded (const char *s, size_t l)
 
 LPadded (const String &s)
 
 LPadded (const char *s)
 
- Public Member Functions inherited from StringRef
 StringRef (const char *begin, size_t len)
 
 StringRef ()
 
const char * begin () const
 
const char * end () const
 
const char * data () const
 
size_t size () const
 
size_t length () const
 
char front () const
 
const_iterator find (char p) const
 
StringRef substr (size_t pos, size_t n=std::string::npos) const
 
std::string str () const
 
char back () const
 
const char & operator[] (int index) const
 
bool operator== (const StringRef &rhs) const
 
bool operator!= (const StringRef &rhs) const
 
StringRef rtrim () const
 
StringRef ltrim () const
 
StringRef trim () const
 
std::pair< bool, int > to_int () const
 
std::pair< bool, float > to_float () const
 
bool empty () const
 
std::vector< StringRefsplit (char p) const
 
std::vector< StringRefsplit () const
 
std::string str_no_whitespace () const
 

Additional Inherited Members

- Public Types inherited from StringRef
typedef char * iterator
 
typedef const char * const_iterator
 
typedef char value_type
 

Detailed Description

Definition at line 20 of file formatted_line.hh.

Constructor & Destructor Documentation

◆ LPadded() [1/3]

LPadded ( const char *  s,
size_t  l 
)
inline

Definition at line 21 of file formatted_line.hh.

◆ LPadded() [2/3]

LPadded ( const String s)
inlineexplicit

Definition at line 25 of file formatted_line.hh.

◆ LPadded() [3/3]

LPadded ( const char *  s)
inlineexplicit

Definition at line 28 of file formatted_line.hh.


The documentation for this struct was generated from the following file: