MINGW-packages/mingw-w64-xalan-c/06-fix-build-with-clang-19.patch
مهدي شينون (Mehdi Chinoune) a0a69fb3ad rebuild packages against icu 76.1
2025-01-20 19:47:56 +01:00

48 lines
1.3 KiB
Diff

--- a/src/xalanc/XMLSupport/XalanOtherEncodingWriter.hpp
+++ b/src/xalanc/XMLSupport/XalanOtherEncodingWriter.hpp
@@ -301,44 +301,6 @@ public:
return write(chars, start, length, m_charRefFunctor);
}
- void
- writeSafe(
- const XalanDOMChar* theChars,
- size_type theLength)
- {
- for(size_type i = 0; i < theLength; ++i)
- {
- const XalanDOMChar ch = theChars[i];
-
- if (isUTF16HighSurrogate(ch) == true)
- {
- if (i + 1 >= theLength)
- {
- throwInvalidUTF16SurrogateException(ch, 0, getMemoryManager());
- }
- else
- {
- XalanUnicodeChar value = decodeUTF16SurrogatePair(ch, theChars[i+1], getMemoryManager());
-
- if (this->m_isPresentable(value))
- {
- write(value);
- }
- else
- {
- this->writeNumberedEntityReference(value);
- }
-
- ++i;
- }
- }
- else
- {
- write(static_cast<XalanUnicodeChar>(ch));
- }
- }
- }
-
void
write(const XalanDOMChar* theChars)
{