|
rllib
1
|
00001 /*************************************************************************** 00002 rlstring.h - description 00003 ------------------- 00004 begin : Wed Jan 02 2008 00005 copyright : (C) Lehrig Software Enigineering 00006 email : lehrig@t-online.de 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This library is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE as * 00013 * published by the Free Software Foundation * 00014 * * 00015 ***************************************************************************/ 00016 #ifndef _RL_STRING_H_ 00017 #define _RL_STRING_H_ 00018 00019 #include <string.h> 00020 #include "rldefine.h" 00021 00025 class rlString 00026 { 00027 public: 00031 rlString(const char *text=""); 00032 rlString(rlString &text); 00033 rlString(rlString *text); 00034 00038 virtual ~rlString(); 00039 00040 rlString& operator=(const char *s2); 00041 rlString& operator=(rlString &s2); 00042 00043 rlString& operator+(const char *s2); 00044 rlString& operator+(rlString &s2); 00045 00046 rlString& operator+=(const char *s2); 00047 rlString& operator+=(rlString &s2); 00048 00052 char *text(); 00053 00057 int setText(const char *text); 00058 00062 int printf(const char *format, ...); 00063 00067 int strcpy(const char *text); 00068 00072 int cat(const char *text); 00073 00077 int upper(); 00078 00082 int lower(); 00083 00087 int startsWith(const char *startstr); 00088 00092 int strnocasecmp(const char *other); 00093 00097 int strnnocasecmp(const char *other, int n); 00098 00102 char *strstr(const char *substring); 00103 00107 char *strchr(int c); 00108 00112 char *strrchr(int c); 00113 00118 int removeQuotas(char c='"'); 00119 00120 private: 00121 char *txt; 00122 }; 00123 00124 #endif
1.7.5.1