OpenCV  3.0.0
Open Source Computer Vision
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Types | Public Member Functions | Static Public Attributes | Friends | List of all members
cv::String Class Reference

#include "cvstd.hpp"

Public Types

typedef const char * const_iterator
 
typedef const char * const_pointer
 
typedef const char & const_reference
 
typedef ptrdiff_t difference_type
 
typedef char * iterator
 
typedef char * pointer
 
typedef char & reference
 
typedef size_t size_type
 
typedef char value_type
 

Public Member Functions

 String ()
 
 String (const String &str)
 
 String (const String &str, size_t pos, size_t len=npos)
 
 String (const char *s)
 
 String (const char *s, size_t n)
 
 String (size_t n, char c)
 
 String (const char *first, const char *last)
 
template<typename Iterator >
 String (Iterator first, Iterator last)
 
 String (const FileNode &fn)
 
 String (const std::string &str)
 
 String (const std::string &str, size_t pos, size_t len=npos)
 
 ~String ()
 
const char * begin () const
 
const char * c_str () const
 
void clear ()
 
int compare (const char *s) const
 
int compare (const String &str) const
 
bool empty () const
 
const char * end () const
 
size_t find (const char *s, size_t pos, size_t n) const
 
size_t find (char c, size_t pos=0) const
 
size_t find (const String &str, size_t pos=0) const
 
size_t find (const char *s, size_t pos=0) const
 
size_t find_first_of (const char *s, size_t pos, size_t n) const
 
size_t find_first_of (char c, size_t pos=0) const
 
size_t find_first_of (const String &str, size_t pos=0) const
 
size_t find_first_of (const char *s, size_t pos=0) const
 
size_t find_last_of (const char *s, size_t pos, size_t n) const
 
size_t find_last_of (char c, size_t pos=npos) const
 
size_t find_last_of (const String &str, size_t pos=npos) const
 
size_t find_last_of (const char *s, size_t pos=npos) const
 
size_t length () const
 
 operator std::string () const
 
Stringoperator+= (const String &str)
 
Stringoperator+= (const char *s)
 
Stringoperator+= (char c)
 
Stringoperator+= (const std::string &str)
 
Stringoperator= (const String &str)
 
Stringoperator= (const char *s)
 
Stringoperator= (char c)
 
Stringoperator= (const std::string &str)
 
char operator[] (size_t idx) const
 
char operator[] (int idx) const
 
size_t rfind (const char *s, size_t pos, size_t n) const
 
size_t rfind (char c, size_t pos=npos) const
 
size_t rfind (const String &str, size_t pos=npos) const
 
size_t rfind (const char *s, size_t pos=npos) const
 
size_t size () const
 
String substr (size_t pos=0, size_t len=npos) const
 
void swap (String &str)
 
String toLowerCase () const
 

Static Public Attributes

static const size_t npos = size_t(-1)
 

Friends

String operator+ (const String &lhs, const String &rhs)
 
String operator+ (const String &lhs, const char *rhs)
 
String operator+ (const char *lhs, const String &rhs)
 
String operator+ (const String &lhs, char rhs)
 
String operator+ (char lhs, const String &rhs)
 
String operator+ (const String &lhs, const std::string &rhs)
 
String operator+ (const std::string &lhs, const String &rhs)
 

Related Functions

(Note that these are not member functions.)

String operator+ (const String &lhs, const String &rhs)
 
String operator+ (const String &lhs, const char *rhs)
 
String operator+ (const char *lhs, const String &rhs)
 
String operator+ (const String &lhs, char rhs)
 
String operator+ (char lhs, const String &rhs)
 
static bool operator== (const String &lhs, const String &rhs)
 
static bool operator== (const char *lhs, const String &rhs)
 
static bool operator== (const String &lhs, const char *rhs)
 
static bool operator!= (const String &lhs, const String &rhs)
 
static bool operator!= (const char *lhs, const String &rhs)
 
static bool operator!= (const String &lhs, const char *rhs)
 
static bool operator< (const String &lhs, const String &rhs)
 
static bool operator< (const char *lhs, const String &rhs)
 
static bool operator< (const String &lhs, const char *rhs)
 
static bool operator<= (const String &lhs, const String &rhs)
 
static bool operator<= (const char *lhs, const String &rhs)
 
static bool operator<= (const String &lhs, const char *rhs)
 
static bool operator> (const String &lhs, const String &rhs)
 
static bool operator> (const char *lhs, const String &rhs)
 
static bool operator> (const String &lhs, const char *rhs)
 
static bool operator>= (const String &lhs, const String &rhs)
 
static bool operator>= (const char *lhs, const String &rhs)
 
static bool operator>= (const String &lhs, const char *rhs)
 

Member Typedef Documentation

typedef const char* cv::String::const_iterator
typedef const char* cv::String::const_pointer
typedef const char& cv::String::const_reference
typedef ptrdiff_t cv::String::difference_type
typedef char* cv::String::iterator
typedef char* cv::String::pointer
typedef char& cv::String::reference
typedef char cv::String::value_type

Constructor & Destructor Documentation

cv::String::String ( )
explicit
cv::String::String ( const String str)
cv::String::String ( const String str,
size_t  pos,
size_t  len = npos 
)
cv::String::String ( const char *  s)
cv::String::String ( const char *  s,
size_t  n 
)
cv::String::String ( size_t  n,
char  c 
)
cv::String::String ( const char *  first,
const char *  last 
)
template<typename Iterator >
cv::String::String ( Iterator  first,
Iterator  last 
)
cv::String::String ( const FileNode fn)
explicit
cv::String::~String ( )
cv::String::String ( const std::string &  str)
cv::String::String ( const std::string &  str,
size_t  pos,
size_t  len = npos 
)

Member Function Documentation

const char* cv::String::begin ( ) const
const char* cv::String::c_str ( ) const
void cv::String::clear ( )
int cv::String::compare ( const char *  s) const
int cv::String::compare ( const String str) const
bool cv::String::empty ( ) const
const char* cv::String::end ( ) const
size_t cv::String::find ( const char *  s,
size_t  pos,
size_t  n 
) const
size_t cv::String::find ( char  c,
size_t  pos = 0 
) const
size_t cv::String::find ( const String str,
size_t  pos = 0 
) const
size_t cv::String::find ( const char *  s,
size_t  pos = 0 
) const
size_t cv::String::find_first_of ( const char *  s,
size_t  pos,
size_t  n 
) const
size_t cv::String::find_first_of ( char  c,
size_t  pos = 0 
) const
size_t cv::String::find_first_of ( const String str,
size_t  pos = 0 
) const
size_t cv::String::find_first_of ( const char *  s,
size_t  pos = 0 
) const
size_t cv::String::find_last_of ( const char *  s,
size_t  pos,
size_t  n 
) const
size_t cv::String::find_last_of ( char  c,
size_t  pos = npos 
) const
size_t cv::String::find_last_of ( const String str,
size_t  pos = npos 
) const
size_t cv::String::find_last_of ( const char *  s,
size_t  pos = npos 
) const
size_t cv::String::length ( ) const
cv::String::operator std::string ( ) const
String& cv::String::operator+= ( const String str)
String& cv::String::operator+= ( const char *  s)
String& cv::String::operator+= ( char  c)
String& cv::String::operator+= ( const std::string &  str)
String& cv::String::operator= ( const String str)
String& cv::String::operator= ( const char *  s)
String& cv::String::operator= ( char  c)
String& cv::String::operator= ( const std::string &  str)
char cv::String::operator[] ( size_t  idx) const
char cv::String::operator[] ( int  idx) const
size_t cv::String::rfind ( const char *  s,
size_t  pos,
size_t  n 
) const
size_t cv::String::rfind ( char  c,
size_t  pos = npos 
) const
size_t cv::String::rfind ( const String str,
size_t  pos = npos 
) const
size_t cv::String::rfind ( const char *  s,
size_t  pos = npos 
) const
size_t cv::String::size ( ) const
String cv::String::substr ( size_t  pos = 0,
size_t  len = npos 
) const
void cv::String::swap ( String str)
String cv::String::toLowerCase ( ) const

Friends And Related Function Documentation

static bool operator!= ( const String lhs,
const String rhs 
)
related
static bool operator!= ( const char *  lhs,
const String rhs 
)
related
static bool operator!= ( const String lhs,
const char *  rhs 
)
related
String operator+ ( const String lhs,
const String rhs 
)
friend
String operator+ ( const String lhs,
const char *  rhs 
)
friend
String operator+ ( const char *  lhs,
const String rhs 
)
friend
String operator+ ( const String lhs,
char  rhs 
)
friend
String operator+ ( char  lhs,
const String rhs 
)
friend
String operator+ ( const String lhs,
const std::string &  rhs 
)
friend
String operator+ ( const std::string &  lhs,
const String rhs 
)
friend
String operator+ ( const String lhs,
const String rhs 
)
related
String operator+ ( const String lhs,
const char *  rhs 
)
related
String operator+ ( const char *  lhs,
const String rhs 
)
related
String operator+ ( const String lhs,
char  rhs 
)
related
String operator+ ( char  lhs,
const String rhs 
)
related
static bool operator< ( const String lhs,
const String rhs 
)
related
static bool operator< ( const char *  lhs,
const String rhs 
)
related
static bool operator< ( const String lhs,
const char *  rhs 
)
related
static bool operator<= ( const String lhs,
const String rhs 
)
related
static bool operator<= ( const char *  lhs,
const String rhs 
)
related
static bool operator<= ( const String lhs,
const char *  rhs 
)
related
static bool operator== ( const String lhs,
const String rhs 
)
related
static bool operator== ( const char *  lhs,
const String rhs 
)
related
static bool operator== ( const String lhs,
const char *  rhs 
)
related
static bool operator> ( const String lhs,
const String rhs 
)
related
static bool operator> ( const char *  lhs,
const String rhs 
)
related
static bool operator> ( const String lhs,
const char *  rhs 
)
related
static bool operator>= ( const String lhs,
const String rhs 
)
related
static bool operator>= ( const char *  lhs,
const String rhs 
)
related
static bool operator>= ( const String lhs,
const char *  rhs 
)
related

Member Data Documentation

const size_t cv::String::npos = size_t(-1)
static

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