src/Utility/bstring.h File Reference

#include <iostream.h>
#include <ctype.h>
#include <string.h>
#include <stddef.h>
#include <stdlib.h>

Include dependency graph for bstring.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  string_char_baggage< charT >
struct  string_char_baggage< char >
class  basic_string_ref< charT >
class  basic_string< charT >

Defines

#define true   1
#define false   0
#define __BC401_const   const
#define _THROW_NONE
#define _THROW_DOMAIN
#define _THROW_INVALIDARG
#define _THROW_LENGTH
#define _THROW_OUTRANGE
#define _THROW_RANGE
#define _THROW_OVERFLOW
#define _THROW_ALLOC
#define _THROW_CAST
#define _THROW_TYPEID
#define _THROW_ALLOC_LENGTH
#define _THROW_ALLOC_OUTRANGE
#define _THROW_LENGTH_OUTRANGE
#define _THROW_ALLOC_LENGTH_OUTRANGE

Typedefs

typedef int bool
typedef basic_string< char > cstring
typedef basic_string< char > string

Enumerations

enum  capacity { default_size, reserve }

Functions

template<class charT>
bool operator== (const basic_string< charT > &lhs, const basic_string< charT > &rhs) _THROW_NONE
template<class charT>
bool operator== (const charT *lhs, const basic_string< charT > &rhs) _THROW_NONE
template<class charT>
bool operator== (charT lhs, const basic_string< charT > &rhs) _THROW_NONE
template<class charT>
bool operator== (const basic_string< charT > &lhs, const charT *rhs) _THROW_NONE
template<class charT>
bool operator== (const basic_string< charT > &lhs, charT rhs) _THROW_NONE
template<class charT>
bool operator!= (const charT *lhs, const basic_string< charT > &rhs) _THROW_NONE
template<class charT>
bool operator!= (charT lhs, const basic_string< charT > &rhs) _THROW_NONE
template<class charT>
bool operator!= (const basic_string< charT > &lhs, const charT *rhs) _THROW_NONE
template<class charT>
bool operator!= (const basic_string< charT > &lhs, charT rhs) _THROW_NONE
template<class charT>
bool operator< (const basic_string< charT > &lhs, const basic_string< charT > &rhs) _THROW_NONE
template<class charT>
bool operator< (const charT *lhs, const basic_string< charT > &rhs) _THROW_NONE
template<class charT>
bool operator< (charT lhs, const basic_string< charT > &rhs) _THROW_NONE
template<class charT>
bool operator< (const basic_string< charT > &lhs, const charT *rhs) _THROW_NONE
template<class charT>
bool operator< (const basic_string< charT > &lhs, charT rhs) _THROW_NONE
template<class charT>
bool operator> (const charT *lhs, const basic_string< charT > &rhs) _THROW_NONE
template<class charT>
bool operator> (charT lhs, const basic_string< charT > &rhs) _THROW_NONE
template<class charT>
bool operator> (const basic_string< charT > &lhs, const charT *rhs) _THROW_NONE
template<class charT>
bool operator> (const basic_string< charT > &lhs, charT rhs) _THROW_NONE
template<class charT>
bool operator>= (const charT *lhs, const basic_string< charT > &rhs) _THROW_NONE
template<class charT>
bool operator>= (charT lhs, const basic_string< charT > &rhs) _THROW_NONE
template<class charT>
bool operator>= (const basic_string< charT > &lhs, const charT *rhs) _THROW_NONE
template<class charT>
bool operator>= (const basic_string< charT > &lhs, charT rhs) _THROW_NONE
template<class charT>
bool operator<= (const charT *lhs, const basic_string< charT > &rhs) _THROW_NONE
template<class charT>
bool operator<= (charT lhs, const basic_string< charT > &rhs) _THROW_NONE
template<class charT>
bool operator<= (const basic_string< charT > &lhs, const charT *rhs) _THROW_NONE
template<class charT>
bool operator<= (const basic_string< charT > &lhs, charT rhs) _THROW_NONE
template<class charT>
basic_string< charT > operator+ (const basic_string< charT > &lhs, const basic_string< charT > &rhs) _THROW_ALLOC_LENGTH
template<class charT>
basic_string< charT > operator+ (const charT *lhs, const basic_string< charT > &rhs) _THROW_ALLOC_LENGTH
template<class charT>
basic_string< charT > operator+ (charT lhs, const basic_string< charT > &rhs) _THROW_ALLOC_LENGTH
template<class charT>
basic_string< charT > operator+ (const basic_string< charT > &lhs, const charT *rhs) _THROW_ALLOC_LENGTH
template<class charT>
basic_string< charT > operator+ (const basic_string< charT > &lhs, charT rhs) _THROW_ALLOC_LENGTH
template<class charT>
ostream & operator<< (ostream &o, const basic_string< charT > &s) _THROW_NONE
template<class charT>
istream & operator>> (istream &i, basic_string< charT > &s) _THROW_ALLOC_LENGTH
void destroy (string *pointer)

Variables

const size_t NPOS = (size_t)(-1)


Define Documentation

#define __BC401_const   const
 

Definition at line 67 of file bstring.h.

#define _THROW_ALLOC
 

Definition at line 88 of file bstring.h.

#define _THROW_ALLOC_LENGTH
 

Definition at line 91 of file bstring.h.

#define _THROW_ALLOC_LENGTH_OUTRANGE
 

Definition at line 94 of file bstring.h.

#define _THROW_ALLOC_OUTRANGE
 

Definition at line 92 of file bstring.h.

#define _THROW_CAST
 

Definition at line 89 of file bstring.h.

#define _THROW_DOMAIN
 

Definition at line 82 of file bstring.h.

#define _THROW_INVALIDARG
 

Definition at line 83 of file bstring.h.

#define _THROW_LENGTH
 

Definition at line 84 of file bstring.h.

#define _THROW_LENGTH_OUTRANGE
 

Definition at line 93 of file bstring.h.

#define _THROW_NONE
 

Definition at line 81 of file bstring.h.

#define _THROW_OUTRANGE
 

Definition at line 85 of file bstring.h.

#define _THROW_OVERFLOW
 

Definition at line 87 of file bstring.h.

#define _THROW_RANGE
 

Definition at line 86 of file bstring.h.

#define _THROW_TYPEID
 

Definition at line 90 of file bstring.h.

#define false   0
 

Definition at line 53 of file bstring.h.

#define true   1
 

Copyright (c) 1994-1995 Modena Software Inc.,

Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. Modena Software, Inc. makes no representations about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty.

Definition at line 52 of file bstring.h.


Typedef Documentation

typedef int bool
 

Definition at line 54 of file bstring.h.

typedef basic_string<char> cstring
 

Definition at line 2498 of file bstring.h.

typedef basic_string<char> string
 

Definition at line 2499 of file bstring.h.


Enumeration Type Documentation

enum capacity
 

Enumerator:
default_size 
reserve 

Definition at line 105 of file bstring.h.


Function Documentation

void destroy string pointer  )  [inline]
 

Definition at line 2507 of file bstring.h.

template<class charT>
bool operator!= const basic_string< charT > &  lhs,
charT  rhs
[inline]
 

Definition at line 924 of file bstring.h.

template<class charT>
bool operator!= const basic_string< charT > &  lhs,
const charT *  rhs
[inline]
 

Definition at line 917 of file bstring.h.

template<class charT>
bool operator!= charT  lhs,
const basic_string< charT > &  rhs
[inline]
 

Definition at line 910 of file bstring.h.

template<class charT>
bool operator!= const charT *  lhs,
const basic_string< charT > &  rhs
[inline]
 

Definition at line 903 of file bstring.h.

template<class charT>
basic_string<charT> operator+ const basic_string< charT > &  lhs,
charT  rhs
 

Definition at line 2446 of file bstring.h.

References assign().

Here is the call graph for this function:

template<class charT>
basic_string<charT> operator+ const basic_string< charT > &  lhs,
const charT *  rhs
 

Definition at line 2433 of file bstring.h.

References string_char_baggage< charT >::copy(), and string_char_baggage< charT >::length().

Here is the call graph for this function:

template<class charT>
basic_string<charT> operator+ charT  lhs,
const basic_string< charT > &  rhs
 

Definition at line 2421 of file bstring.h.

References string_char_baggage< charT >::copy().

Here is the call graph for this function:

template<class charT>
basic_string<charT> operator+ const charT *  lhs,
const basic_string< charT > &  rhs
 

Definition at line 2408 of file bstring.h.

References string_char_baggage< charT >::copy(), and string_char_baggage< charT >::length().

Here is the call graph for this function:

template<class charT>
basic_string<charT> operator+ const basic_string< charT > &  lhs,
const basic_string< charT > &  rhs
 

Definition at line 2395 of file bstring.h.

References string_char_baggage< charT >::copy().

Here is the call graph for this function:

template<class charT>
bool operator< const basic_string< charT > &  lhs,
charT  rhs
[inline]
 

Definition at line 972 of file bstring.h.

template<class charT>
bool operator< const basic_string< charT > &  lhs,
const charT *  rhs
[inline]
 

Definition at line 962 of file bstring.h.

template<class charT>
bool operator< charT  lhs,
const basic_string< charT > &  rhs
[inline]
 

Definition at line 952 of file bstring.h.

template<class charT>
bool operator< const charT *  lhs,
const basic_string< charT > &  rhs
[inline]
 

Definition at line 942 of file bstring.h.

template<class charT>
bool operator< const basic_string< charT > &  lhs,
const basic_string< charT > &  rhs
[inline]
 

Definition at line 931 of file bstring.h.

template<class charT>
ostream& operator<< ostream &  o,
const basic_string< charT > &  s
 

Definition at line 2457 of file bstring.h.

template<class charT>
bool operator<= const basic_string< charT > &  lhs,
charT  rhs
[inline]
 

Definition at line 1089 of file bstring.h.

template<class charT>
bool operator<= const basic_string< charT > &  lhs,
const charT *  rhs
[inline]
 

Definition at line 1082 of file bstring.h.

template<class charT>
bool operator<= charT  lhs,
const basic_string< charT > &  rhs
[inline]
 

Definition at line 1075 of file bstring.h.

template<class charT>
bool operator<= const charT *  lhs,
const basic_string< charT > &  rhs
[inline]
 

Definition at line 1068 of file bstring.h.

template<class charT>
bool operator== const basic_string< charT > &  lhs,
charT  rhs
[inline]
 

Definition at line 886 of file bstring.h.

template<class charT>
bool operator== const basic_string< charT > &  lhs,
const charT *  rhs
[inline]
 

Definition at line 879 of file bstring.h.

template<class charT>
bool operator== charT  lhs,
const basic_string< charT > &  rhs
[inline]
 

Definition at line 872 of file bstring.h.

template<class charT>
bool operator== const charT *  lhs,
const basic_string< charT > &  rhs
[inline]
 

Definition at line 865 of file bstring.h.

template<class charT>
bool operator== const basic_string< charT > &  lhs,
const basic_string< charT > &  rhs
[inline]
 

Definition at line 857 of file bstring.h.

template<class charT>
bool operator> const basic_string< charT > &  lhs,
charT  rhs
[inline]
 

Definition at line 1013 of file bstring.h.

template<class charT>
bool operator> const basic_string< charT > &  lhs,
const charT *  rhs
[inline]
 

Definition at line 1006 of file bstring.h.

template<class charT>
bool operator> charT  lhs,
const basic_string< charT > &  rhs
[inline]
 

Definition at line 999 of file bstring.h.

template<class charT>
bool operator> const charT *  lhs,
const basic_string< charT > &  rhs
[inline]
 

Definition at line 992 of file bstring.h.

template<class charT>
bool operator>= const basic_string< charT > &  lhs,
charT  rhs
[inline]
 

Definition at line 1051 of file bstring.h.

template<class charT>
bool operator>= const basic_string< charT > &  lhs,
const charT *  rhs
[inline]
 

Definition at line 1044 of file bstring.h.

template<class charT>
bool operator>= charT  lhs,
const basic_string< charT > &  rhs
[inline]
 

Definition at line 1037 of file bstring.h.

template<class charT>
bool operator>= const charT *  lhs,
const basic_string< charT > &  rhs
[inline]
 

Definition at line 1030 of file bstring.h.

template<class charT>
istream& operator>> istream &  i,
basic_string< charT > &  s
 

Definition at line 2467 of file bstring.h.

References string_char_baggage< charT >::char_in(), and string_char_baggage< charT >::is_del().

Here is the call graph for this function:


Variable Documentation

const size_t NPOS = (size_t)(-1)
 

Definition at line 103 of file bstring.h.

Referenced by basic_string< charT >::append(), basic_string< charT >::assign(), basic_string< charT >::basic_string(), basic_string< charT >::compare(), basic_string< charT >::find(), basic_string< charT >::find_first_not_of(), basic_string< charT >::find_last_not_of(), basic_string< charT >::insert(), basic_string< charT >::operator+=(), basic_string< charT >::operator=(), basic_string< charT >::replace(), basic_string< charT >::reserve(), basic_string< charT >::resize(), and basic_string< charT >::rfind().


Generated on Mon Jan 16 14:23:23 2006 for IPPL by  doxygen 1.4.6