blob: 2b2f2b42c46f3cbed6ca2dae873b65fcbd54bda9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
https://bugs.gentoo.org/936501
This function does not compile with gcc-15, but it was never instantiated, so just remove it.
--- 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)
{
|