diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2012-03-28 17:37:19 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2012-03-28 17:51:58 +0200 |
commit | 86a1e6de4fc3af897271bc5f7f04506261d4f286 (patch) | |
tree | 5bf829e4523221530fe571bfb6e9b9063b98c2b0 /sal/inc/rtl | |
parent | fc7e13ed531cc136b7348a10f12dc10db49492fb (diff) |
SFINAE workarounds for gcc-4.0.1
Diffstat (limited to 'sal/inc/rtl')
-rw-r--r-- | sal/inc/rtl/string.hxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sal/inc/rtl/string.hxx b/sal/inc/rtl/string.hxx index 39414e64628c..68f41bdf6398 100644 --- a/sal/inc/rtl/string.hxx +++ b/sal/inc/rtl/string.hxx @@ -551,6 +551,12 @@ public: @return sal_True if the strings are equal; sal_False, otherwise. */ +#ifdef HAVE_SFINAE_ANONYMOUS_BROKEN + sal_Bool equalsIgnoreAsciiCase( const sal_Char * asciiStr ) const SAL_THROW(()) + { + return rtl_str_compareIgnoreAsciiCase( pData->buffer, asciiStr ) == 0; + } +#else template< typename T > typename internal::CharPtrDetector< T, bool >::Type equalsIgnoreAsciiCase( const T& asciiStr ) const SAL_THROW(()) { @@ -577,6 +583,7 @@ public: return rtl_str_compareIgnoreAsciiCase_WithLength( pData->buffer, pData->length, literal, internal::ConstCharArrayDetector< T, void >::size - 1 ) == 0; } +#endif /** Perform a ASCII lowercase comparison of two strings. |