diff options
| author | Igor Pavlov <87184205+ip7z@users.noreply.github.com> | 2025-07-05 00:00:00 +0000 |
|---|---|---|
| committer | Igor Pavlov <87184205+ip7z@users.noreply.github.com> | 2025-07-05 19:27:33 +0500 |
| commit | 395149956d696e6e3099d8b76d797437f94a6942 (patch) | |
| tree | 6ed5013a637078ae2dfdc4acf1ad93bf29cea356 /CPP/Common/MyString.cpp | |
| parent | e5431fa6f5505e385c6f9367260717e9c47dc2ee (diff) | |
| download | 7zip-25.00.tar.gz 7zip-25.00.tar.bz2 7zip-25.00.zip | |
25.0025.00
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 (;;) |
