diff options
Diffstat (limited to 'CPP/Common/MyString.cpp')
| -rw-r--r-- | CPP/Common/MyString.cpp | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/CPP/Common/MyString.cpp b/CPP/Common/MyString.cpp index b5f7e52..10e2331 100644 --- a/CPP/Common/MyString.cpp +++ b/CPP/Common/MyString.cpp | |||
| @@ -208,35 +208,6 @@ bool StringsAreEqualNoCase(const wchar_t *s1, const wchar_t *s2) throw() | |||
| 208 | 208 | ||
| 209 | // ---------- ASCII ---------- | 209 | // ---------- ASCII ---------- |
| 210 | 210 | ||
| 211 | bool AString::IsPrefixedBy_Ascii_NoCase(const char *s) const throw() | ||
| 212 | { | ||
| 213 | const char *s1 = _chars; | ||
| 214 | for (;;) | ||
| 215 | { | ||
| 216 | const char c2 = *s++; | ||
| 217 | if (c2 == 0) | ||
| 218 | return true; | ||
| 219 | const char c1 = *s1++; | ||
| 220 | if (MyCharLower_Ascii(c1) != | ||
| 221 | MyCharLower_Ascii(c2)) | ||
| 222 | return false; | ||
| 223 | } | ||
| 224 | } | ||
| 225 | |||
| 226 | bool UString::IsPrefixedBy_Ascii_NoCase(const char *s) const throw() | ||
| 227 | { | ||
| 228 | const wchar_t *s1 = _chars; | ||
| 229 | for (;;) | ||
| 230 | { | ||
| 231 | const char c2 = *s++; | ||
| 232 | if (c2 == 0) | ||
| 233 | return true; | ||
| 234 | const wchar_t c1 = *s1++; | ||
| 235 | if (MyCharLower_Ascii(c1) != (unsigned char)MyCharLower_Ascii(c2)) | ||
| 236 | return false; | ||
| 237 | } | ||
| 238 | } | ||
| 239 | |||
| 240 | bool StringsAreEqual_Ascii(const char *u, const char *a) throw() | 211 | bool StringsAreEqual_Ascii(const char *u, const char *a) throw() |
| 241 | { | 212 | { |
| 242 | for (;;) | 213 | for (;;) |
