00001 #ifndef __LANG_STRING_HPP
00002 #define __LANG_STRING_HPP
00003
00004 #if 0
00005 #if !defined(_MSC_VER)
00006
00007 #include <string>
00008 #include <std/bastring.h>
00009
00010 using std::string;
00011
00012 #define CHAR_TYPE char
00013 class Object;
00014
00015 class VECMATH_EXPORT String : public basic_string<CHAR_TYPE> {
00016 public:
00017
00018 String() : basic_string<CHAR_TYPE>() {}
00019
00020 String(const char *s) : basic_string<CHAR_TYPE>(s){}
00021
00022 String(const String& s) : basic_string<CHAR_TYPE>(s) {}
00023
00024
00025
00026 String(const basic_string<CHAR_TYPE>& s) : basic_string<CHAR_TYPE>(s) {}
00027
00028 virtual ~String() {}
00029
00030 char charAt(int index) const {
00031 return at(index);
00032 }
00033
00034 int compareTo(const String& anotherString) const {
00035 return compare(anotherString);
00036 }
00037
00038 friend ostream& operator <<(ostream& os, const String& s) {
00039 return os << s.data();
00040 }
00041 };
00042
00043 #endif
00044 #endif
00045 #endif