Public Member Functions | List of all members
BtlString Class Reference

#include <btl.hh>

Inheritance diagram for BtlString:
Inheritance graph
[legend]

Public Member Functions

bool beginsWith (const BtlString &str) const
 
 BtlString ()
 
 BtlString (const BtlString &str)
 
 BtlString (const std::string &str)
 
 BtlString (const char *str)
 
bool contains (const BtlString &str) const
 
void decomposePathAndFile (BtlString &path, BtlString &filename) const
 
bool endsWith (const BtlString &str) const
 
bool isEquiv (const BtlString &str) const
 
 operator const char * () const
 
std::vector< BtlStringsplit (const BtlString &delims="\t\n ") const
 
BtlString toLowerCase (void)
 
BtlString toUpperCase (void)
 
void trim (bool left=true, bool right=true)
 

Detailed Description

Enhanced std::string

Definition at line 57 of file btl.hh.

Constructor & Destructor Documentation

BtlString::BtlString ( )
inline

Definition at line 60 of file btl.hh.

BtlString::BtlString ( const BtlString str)
inline

Definition at line 61 of file btl.hh.

BtlString::BtlString ( const std::string &  str)
inline

Definition at line 62 of file btl.hh.

BtlString::BtlString ( const char *  str)
inline

Definition at line 63 of file btl.hh.

Member Function Documentation

bool BtlString::beginsWith ( const BtlString str) const
inline

Definition at line 118 of file btl.hh.

bool BtlString::contains ( const BtlString str) const
inline

Definition at line 114 of file btl.hh.

void BtlString::decomposePathAndFile ( BtlString path,
BtlString filename 
) const
inline

Decompose the current string as a path and a file. For instance: "dir1/dir2/file.ext" leads to path="dir1/dir2/" and filename="file.ext"

Definition at line 150 of file btl.hh.

bool BtlString::endsWith ( const BtlString str) const
inline

Definition at line 108 of file btl.hh.

bool BtlString::isEquiv ( const BtlString str) const
inline

Case insensitive comparison.

Definition at line 138 of file btl.hh.

BtlString::operator const char * ( ) const
inline

Definition at line 65 of file btl.hh.

std::vector<BtlString> BtlString::split ( const BtlString delims = "\t\n ") const
inline

Definition at line 81 of file btl.hh.

BtlString BtlString::toLowerCase ( void  )
inline

Definition at line 125 of file btl.hh.

BtlString BtlString::toUpperCase ( void  )
inline

Definition at line 130 of file btl.hh.

void BtlString::trim ( bool  left = true,
bool  right = true 
)
inline

Definition at line 67 of file btl.hh.


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


gtsam
Author(s):
autogenerated on Sat May 8 2021 02:51:47