diff options
Diffstat (limited to 'WebCore/platform/text/PlatformString.h')
| -rw-r--r-- | WebCore/platform/text/PlatformString.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/WebCore/platform/text/PlatformString.h b/WebCore/platform/text/PlatformString.h index 8d19c17..247536a 100644 --- a/WebCore/platform/text/PlatformString.h +++ b/WebCore/platform/text/PlatformString.h @@ -41,7 +41,7 @@ #include <wtf/OwnPtr.h> #endif -#if PLATFORM(CF) || (PLATFORM(QT) && PLATFORM(DARWIN)) +#if PLATFORM(CF) typedef const struct __CFString * CFStringRef; #endif @@ -206,7 +206,7 @@ public: StringImpl* impl() const { return m_impl.get(); } -#if PLATFORM(CF) || (PLATFORM(QT) && PLATFORM(DARWIN)) +#if PLATFORM(CF) String(CFStringRef); CFStringRef createCFString() const; #endif @@ -286,6 +286,11 @@ inline bool equalIgnoringCase(const String& a, const String& b) { return equalIg inline bool equalIgnoringCase(const String& a, const char* b) { return equalIgnoringCase(a.impl(), b); } inline bool equalIgnoringCase(const char* a, const String& b) { return equalIgnoringCase(a, b.impl()); } +inline bool equalPossiblyIgnoringCase(const String& a, const String& b, bool ignoreCase) +{ + return ignoreCase ? equalIgnoringCase(a, b) : (a == b); +} + inline bool equalIgnoringNullity(const String& a, const String& b) { return equalIgnoringNullity(a.impl(), b.impl()); } inline bool operator!(const String& str) { return str.isNull(); } |
