StringOf.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
// Copyright (c) 1994, 1996 James Clark
// See the file COPYING for copying permission.
#pragma ident "%Z%%M% %I% %E% SMI"
#ifndef StringOf_INCLUDED
#define StringOf_INCLUDED 1
// The file is called StringOf to distinguish it from string.h on
// case-insensitive file systems.
// This offers a subset of the interface offered by the standard C++
// basic_string class as defined in the Jan 96 WP.
// Code in SP currently assumes that size_type is size_t.
#include <stddef.h>
#include <string.h>
#include "Boolean.h"
#ifdef SP_NAMESPACE
#endif
typedef T *iterator;
typedef const T *const_iterator;
String();
grow(1);
return *this;
}
return *this;
}
&& (length_ == 0
== 0))));
}
}
T *ptr_;
};
#ifdef SP_NAMESPACE
}
#endif
#endif /* not StringOf_INCLUDED */
#ifdef SP_DEFINE_TEMPLATES
#include "StringOf.cxx"
#endif