CCAFFEINE
0.8.8
|
00001 #ifndef JString_h_seen 00002 #define JString_h_seen 00003 00004 //#include "jc++/jc++.h" 00005 00006 00019 class JString { 00020 00021 public: 00022 00023 static boolean startsWith(char *haystack, char *needle) ; 00024 00025 static int indexOf(char *haystack, char *needle) ; 00026 00027 static int indexOf(char *s, char c) ; 00028 00029 static int indexOf(char *s, char c, int r) ; 00030 00031 static int lastIndexOf(char *s, char c) ; 00032 00033 static int compareTo(const char *s1, const char *s2); 00034 00035 static int compareToIgnoreCase(const char *s1, const char *s2); 00036 00037 CFREE static char *toLowerCase(const char *s); 00038 00039 CFREE static char *strdup(const char *s); 00040 }; 00041 #ifndef STRDUP 00042 00043 #define STRDUP(s) JString::strdup((char *)(s)) 00044 #endif 00045 00046 #endif // JString_h_seen