11 #include <elm/string/CString.h>
12 #include <elm/string/String.h>
13 #include <elm/string/StringBuffer.h>
14 #include <elm/string/AutoString.h>
27 {
int l1 =
length(), l2 = str.
length();
return l1 >= l2 && !memcmp(
buf + l1 - l2, str.
chars(), l2); };
29 {
int l1 =
length(), l2 = str.
length();
return l1 >= l2 && !memcmp(
buf + l1 - l2, str.
chars(), l2); };
100 #endif // ELM_STRING_H
bool operator==(const CString &s1, const CString &s2)
Definition: string.h:32
CString substring(int pos) const
Definition: string.h:19
bool operator>=(const CString s1, const CString s2)
Definition: string.h:37
int compare(const String &str) const
Definition: String.h:75
const char * buf
Definition: CString.h:19
bool operator>(const CString s1, const CString s2)
Definition: string.h:36
String concat(const CString str) const
Definition: string.h:21
const char * chars(void) const
Definition: String.h:74
bool endsWith(const CString str) const
Definition: string.h:26
bool operator!=(const CString &s1, const CString &s2)
Definition: string.h:33
bool operator<=(const CString s1, const CString s2)
Definition: string.h:35
bool operator<(const CString s1, const CString s2)
Definition: string.h:34
int length(void) const
Definition: String.h:73
CString(void)
Definition: CString.h:21
bool startsWith(const char *str) const
Definition: string.h:23
int length(void) const
Definition: CString.h:26
const char * chars(void) const
Definition: CString.h:27
int compare(const CString &str) const
Definition: CString.h:28
String operator+(const CString s1, const CString s2)
Definition: string.h:90