diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-12-20 10:50:26 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-12-20 14:26:49 +0100 |
commit | 22f7411ecfe0ecc2a62bbc85a6ed27977df03e89 (patch) | |
tree | 299975af2922658d2967831193bd8636459a7886 /include | |
parent | ff07da5d888648e0343aabe1f533790029470165 (diff) |
Remove the OUString vs. std::u16string_view comparison operators again
...that were introduced in e6dfaf9f44f9939abc338c83b3024108431d0f69 "Turn
OUStringLiteral into a consteval'ed, static-refcound rtl_uString" to avoid
ambiguities, but which is no longer an issue since
46c5de832868d2812448b2caace3eeaa9237b9f6 "make *String(string_view) constructors
explicit"
Change-Id: I0a7a3fe23412f77fa85fb7e90f04e22f9abd9230
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108044
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/rtl/ustring.hxx | 86 |
1 files changed, 0 insertions, 86 deletions
diff --git a/include/rtl/ustring.hxx b/include/rtl/ustring.hxx index 270eedd2c32d..ee3cfe170555 100644 --- a/include/rtl/ustring.hxx +++ b/include/rtl/ustring.hxx @@ -1950,92 +1950,6 @@ public: /// @endcond #endif -#if defined LIBO_INTERNAL_ONLY - friend bool operator ==(OUString const & lhs, std::u16string_view rhs) { - return - rtl_ustr_reverseCompare_WithLength( - lhs.pData->buffer, lhs.pData->length, rhs.data(), rhs.size()) - == 0; - } - - friend bool operator !=(OUString const & lhs, std::u16string_view rhs) { - return - rtl_ustr_reverseCompare_WithLength( - lhs.pData->buffer, lhs.pData->length, rhs.data(), rhs.size()) - != 0; - } - - friend bool operator <(OUString const & lhs, std::u16string_view rhs) { - return - (rtl_ustr_compare_WithLength( - lhs.pData->buffer, lhs.pData->length, rhs.data(), rhs.size())) - < 0; - } - - friend bool operator <=(OUString const & lhs, std::u16string_view rhs) { - return - (rtl_ustr_compare_WithLength( - lhs.pData->buffer, lhs.pData->length, rhs.data(), rhs.size())) - <= 0; - } - - friend bool operator >(OUString const & lhs, std::u16string_view rhs) { - return - (rtl_ustr_compare_WithLength( - lhs.pData->buffer, lhs.pData->length, rhs.data(), rhs.size())) - > 0; - } - - friend bool operator >=(OUString const & lhs, std::u16string_view rhs) { - return - (rtl_ustr_compare_WithLength( - lhs.pData->buffer, lhs.pData->length, rhs.data(), rhs.size())) - >= 0; - } - - friend bool operator ==(std::u16string_view lhs, OUString const & rhs) { - return - rtl_ustr_reverseCompare_WithLength( - lhs.data(), lhs.size(), rhs.pData->buffer, rhs.pData->length) - == 0; - } - - friend bool operator !=(std::u16string_view lhs, OUString const & rhs) { - return - rtl_ustr_reverseCompare_WithLength( - lhs.data(), lhs.size(), rhs.pData->buffer, rhs.pData->length) - != 0; - } - - friend bool operator <(std::u16string_view lhs, OUString const & rhs) { - return - (rtl_ustr_compare_WithLength( - lhs.data(), lhs.size(), rhs.pData->buffer, rhs.pData->length)) - < 0; - } - - friend bool operator <=(std::u16string_view lhs, OUString const & rhs) { - return - (rtl_ustr_compare_WithLength( - lhs.data(), lhs.size(), rhs.pData->buffer, rhs.pData->length)) - <= 0; - } - - friend bool operator >(std::u16string_view lhs, OUString const & rhs) { - return - (rtl_ustr_compare_WithLength( - lhs.data(), lhs.size(), rhs.pData->buffer, rhs.pData->length)) - > 0; - } - - friend bool operator >=(std::u16string_view lhs, OUString const & rhs) { - return - (rtl_ustr_compare_WithLength( - lhs.data(), lhs.size(), rhs.pData->buffer, rhs.pData->length)) - >= 0; - } -#endif - /** Returns a hashcode for this string. |