Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages  

MString.cxx File Reference

#include <cstdio>
#include <cstdlib>
#include <cstring>
#include "CalRecon/Midnight.h"

Go to the source code of this file.

Defines

#define changeBlockSize   realloc
#define freeBlock   free
#define allocateBlock   malloc
#define MINIMUM(a, b)   ((a)<(b)?a:b)

Functions

int operator== (const MString &a1,const MString &a2)
 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//. More...

int operator!= (const MString &a1,const MString &a2)
 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//. More...

int operator== (const MString &a1,const char *a2)
 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//. More...

int operator!= (const MString &a1,const char *a2)
 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//. More...


Define Documentation

#define allocateBlock   malloc
 

Definition at line 19 of file MString.cxx.

#define changeBlockSize   realloc
 

Definition at line 17 of file MString.cxx.

#define freeBlock   free
 

Definition at line 18 of file MString.cxx.

#define MINIMUM a,
     ((a)<(b)?a:b)
 

Definition at line 26 of file MString.cxx.

Referenced by MString::operator()(), and MString::replace().


Function Documentation

int operator!= const MString   a1,
const char *    a2
 

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//.

Definition at line 290 of file MString.cxx.

00296 {
00297   return (a1==a2 ? 0 : 1);
00298 }

int operator!= const MString   a1,
const MString   a2
 

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//.

Definition at line 268 of file MString.cxx.

00274 {
00275   return (a1==a2 ? 0 : 1);
00276 }

int operator== const MString   a1,
const char *    a2
 

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//.

Definition at line 278 of file MString.cxx.

00284 {
00285   if( a1.fString ==  a2) return 1; 
00286   if( (a1.fString==NULL) || (a2==NULL) ) return 0; 
00287   return (strcmp(a1.fString,a2)==0 ? 1: 0); 
00288 }

int operator== const MString   a1,
const MString   a2
 

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//.

Definition at line 256 of file MString.cxx.

00262 {
00263   if( a1.fString ==  a2.fString) return 1; 
00264   if( (a1.fString==NULL) || (a2.fString==NULL) ) return 0; 
00265   return (strcmp(a1.fString,a2.fString)==0 ? 1: 0); 
00266 }


Generated on Thu Nov 29 16:38:52 2001 by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001