Index

C++ Code Documentation

base::String

Derived from: std::string

File: BASE/base/String.H

public:
  • explicit String() : std::string();
    constructor
  • String (const base::String& str) : std::string(str);
  • String (const std::string& str) : std::string(str);
  • String (const std::string& str, size_type pos, size_type n = npos) : std::string( str, pos, n );
  • String (char const *s, size_type n);
  • : std::string();
  • : std::string( s, n );
  • String (char const *s);
  • : std::string();
  • : std::string( s );
  • String (size_type n, char c) : std::string( n, c );
  • template<class InputIterator> String(InputIterator __begin, InputIterator __end) : std::string(__begin, __end);
  • String(const_iterator __begin, const_iterator __end) : std::string(__begin, __end);
  • virtual ~String();
    destructor
  • String &operator=( base::String const &a );
    assignment operator
  • String &operator=( char const *s );
  • String &operator=( char a );
  • void strip( std::string const & );
  • void strip();
  • void uppercase( std::string const &s );
  • void uppercase();
  • void lowercase( std::string const &s );
  • void lowercase();
  • static int compare_nocase( std::string const &, std::string const & );
  • int find_nocase(base::vector<String> const &, std::string const &pattern);
  • int split( base::vector<String> &w ) const;
    splits s into whitespace-separated words
  • void to_number( int &x ) const;
  • void to_number( int unsigned &x ) const;
  • void to_number( int short &x ) const;
  • void to_number( int unsigned short &x ) const;
  • void to_number( int long &x ) const;
  • void to_number( int unsigned long &x ) const;
  • void to_number( float &x ) const;
  • void to_number( double &x ) const;
  • void to_number( double long &x ) const;
  • void to_string( int const &x );
  • void to_string( int unsigned const &x );
  • void to_string( int short const &x );
  • void to_string( int unsigned short const &x );
  • void to_string( int long const &x );
  • void to_string( int unsigned long const &x );
  • void to_string( float const &x );
  • void to_string( double const &x );
  • void to_string( double long const &x );
  • void to_string( std::complex<float> const &x );
  • void to_string( std::complex<double> const &x );
  • void to_string( std::complex<double long> const &x );
protected:
private:
  • template <class A> static char const *_format_string();
  • template <class A> static int sign( A a );
  • template <class A> void _to_long( A & ) const;
  • template <class A> void _to_ulong( A & ) const;
  • template <class A> void _to_double( A & ) const;
  • template <class A> void _to_string( A const &x );
  • template <class A> void _to_string( std::complex<A> const & );


base::String GANG