Clipper
Public Member Functions | Static Public Member Functions | List of all members
clipper::String Class Reference

String extension with simple parsing methods. More...

#include <clipper_types.h>

Inheritance diagram for clipper::String:

Public Member Functions

 String ()
 null constructor
 
 String (const std::string str)
 constructor: from string
 
 String (const char *str)
 constructor: from char*
 
 String (const char *str, const int l)
 constructor: from char*
 
 String (const int i, const int w=4)
 constructor: from int
 
 String (const long i, const int w=4)
 constructor: from long
 
 String (const float f, const int w=6, const int p=6)
 constructor: from float
 
 String (const double f, const int w=6, const int p=6)
 constructor: from double
 
std::vector< Stringsplit (const String sep) const
 String splitter - a very simple parser component.
 
String trim () const
 Return copy of string without leading and trailing blanks.
 
String tail () const
 get trailing path element
 
String head () const
 remove trailing path element
 
String nohead () const
 get leading path element
 
String notail () const
 remove leading path element
 
int i () const
 convert to int
 
long l () const
 convert to long
 
ftype32 f32 () const
 convert to float
 
ftype64 f64 () const
 convert to double
 
ftype f () const
 convert to ftype
 
ftype rational () const
 convert from rational to ftype
 

Static Public Member Functions

static String rational (const double f, const int b, const bool sign=false)
 construct string from rational f using base b
 

Detailed Description

String extension with simple parsing methods.

String extension with primitive 'split' operation for parsing and pathname processing operations.


The documentation for this class was generated from the following files: