00001 /* 00002 SagaEngine library 00003 Copyright (c) 2002-2006 Skalden Studio AS 00004 00005 This software is provided 'as-is', without any express or implied 00006 warranty. In no event will the authors be held liable for any 00007 damages arising from the use of this software. 00008 00009 Permission is granted to distribute the library under the terms of the 00010 Q Public License version 1.0. Be sure to read and understand the license 00011 before using the library. It should be included here, or you may read it 00012 at http://www.trolltech.com/products/qt/licenses/licensing/qpl 00013 00014 The original version of this library can be located at: 00015 http://www.sagaengine.com/ 00016 00017 Rune Myrland 00018 rune@skalden.com 00019 */ 00020 00021 00022 #ifndef String_hpp 00023 #define String_hpp 00024 00025 namespace se_core { 00036 class _SeCoreExport String { 00037 public: 00038 String(); 00039 String(const char* data); 00040 String(char* data); 00041 String(const char* data, int toPos); 00042 ~String(); 00043 void set(const char* data); 00044 void set(char* data); 00045 void reset(); 00046 void copy(const char* data); 00050 void copy(const char* data, int toPos); 00051 inline const char* get() const { return data_; } 00052 const char* ext(char delimiter, bool mustFind = true) const; 00053 char* copyValue() const; 00054 bool isEmpty() const; 00055 int len() const; 00056 void append(const char* s); 00057 int compare(const String& s) const; 00058 int compare(const char* s) const; 00059 00060 bool equals(const String& s) const; 00061 bool equals(const char* s) const; 00062 00063 private: 00064 const char* data_; 00065 bool doDestroy_; 00066 }; 00067 00068 } 00069 00070 #endif
Home Page | SagaEngine trunk (updated nightly) reference generated Sun Dec 2 20:06:13 2007 by Doxygen version 1.3.9.1.