mirror of
https://github.com/jezhiggins/arabica
synced 2025-01-17 18:12:04 +01:00
added #ifndef ARABICA_NO_WCHAR_T around typedefs using wchar_t or std::wstring
This commit is contained in:
parent
30e448ee5a
commit
9329ac47ca
26 changed files with 52 additions and 0 deletions
|
@ -183,7 +183,9 @@ public:
|
|||
}; // class AttributeList
|
||||
|
||||
typedef basic_AttributeList<std::string> AttributeList;
|
||||
#ifndef ARABICA_NO_WCHAR_T
|
||||
typedef basic_AttributeList<std::wstring> wAttributeList;
|
||||
#endif
|
||||
|
||||
}; // namespace SAX
|
||||
|
||||
|
|
|
@ -224,7 +224,9 @@ public:
|
|||
}; // class Attributes
|
||||
|
||||
typedef basic_Attributes<std::string> Attributes;
|
||||
#ifndef ARABICA_NO_WCHAR_T
|
||||
typedef basic_Attributes<std::wstring> wAttributes;
|
||||
#endif
|
||||
|
||||
}; // namespace SAX
|
||||
|
||||
|
|
|
@ -331,7 +331,9 @@ public:
|
|||
}; // class basic_ContentHandler
|
||||
|
||||
typedef basic_ContentHandler<std::string> ContentHandler;
|
||||
#ifndef ARABICA_NO_WCHAR_T
|
||||
typedef basic_ContentHandler<std::wstring> wContentHandler;
|
||||
#endif
|
||||
|
||||
}; // namespace SAX
|
||||
|
||||
|
|
|
@ -118,7 +118,9 @@ public:
|
|||
}; // class basic_DTDHandler
|
||||
|
||||
typedef basic_DTDHandler<std::string> DTDHandler;
|
||||
#ifndef ARABICA_NO_WCHAR_T
|
||||
typedef basic_DTDHandler<std::wstring> wDTDHandler;
|
||||
#endif
|
||||
|
||||
}; // namespace SAX
|
||||
|
||||
|
|
|
@ -66,7 +66,9 @@ public:
|
|||
}; // class basic_DocumentHandler
|
||||
|
||||
typedef basic_DocumentHandler<std::string> DocumentHandler;
|
||||
#ifndef ARABICA_NO_WCHAR_T
|
||||
typedef basic_DocumentHandler<std::wstring> wDocumentHandler;
|
||||
#endif
|
||||
|
||||
}; // namespace SAX
|
||||
|
||||
|
|
|
@ -107,7 +107,9 @@ public:
|
|||
}; // class EntityResolver
|
||||
|
||||
typedef basic_EntityResolver<std::string> EntityResolver;
|
||||
#ifndef ARABICA_NO_WCHAR_T
|
||||
typedef basic_EntityResolver<std::wstring> wEntityResolver;
|
||||
#endif
|
||||
|
||||
}; // namespace SAX
|
||||
|
||||
|
|
|
@ -113,7 +113,9 @@ public:
|
|||
}; // class ErrorHandler
|
||||
|
||||
typedef basic_ErrorHandler<std::string> ErrorHandler;
|
||||
#ifndef ARABICA_NO_WCHAR_T
|
||||
typedef basic_ErrorHandler<std::wstring> wErrorHandler;
|
||||
#endif
|
||||
|
||||
}; // namespace SAX
|
||||
|
||||
|
|
|
@ -280,7 +280,9 @@ public:
|
|||
}; // class HandlerBase
|
||||
|
||||
typedef basic_HandlerBase<std::string> HandlerBase;
|
||||
#ifndef ARABICA_NO_WCHAR_T
|
||||
typedef basic_HandlerBase<std::wstring> wHandlerBase;
|
||||
#endif
|
||||
|
||||
}; // namespace SAX
|
||||
|
||||
|
|
|
@ -302,7 +302,9 @@ void basic_InputSource<charT, traitsT, allocatorT>::setCharacterStream(charStrea
|
|||
|
||||
|
||||
typedef basic_InputSource<std::string> InputSource;
|
||||
#ifndef ARABICA_NO_WCHAR_T
|
||||
typedef basic_InputSource<std::wstring> wInputSource;
|
||||
#endif
|
||||
|
||||
}; // namespace SAX
|
||||
|
||||
|
|
|
@ -121,7 +121,9 @@ public:
|
|||
}; // class Locator
|
||||
|
||||
typedef basic_Locator<std::string> Locator;
|
||||
#ifndef ARABICA_NO_WCHAR_T
|
||||
typedef basic_Locator<std::wstring> wLocator;
|
||||
#endif
|
||||
|
||||
}; // namespace SAX
|
||||
|
||||
|
|
|
@ -154,7 +154,9 @@ public:
|
|||
}; // class basic_Parser
|
||||
|
||||
typedef basic_Parser<std::string> Parser;
|
||||
#ifndef ARABICA_NO_WCHAR_T
|
||||
typedef basic_Parser<std::wstring> wParser;
|
||||
#endif
|
||||
|
||||
}; // namespace SAX
|
||||
|
||||
|
|
|
@ -163,7 +163,9 @@ private:
|
|||
}; // class basic_SAXParseException
|
||||
|
||||
typedef basic_SAXParseException<std::string> SAXParseException;
|
||||
#ifndef ARABICA_NO_WCHAR_T
|
||||
typedef basic_SAXParseException<std::wstring> wSAXParseException;
|
||||
#endif
|
||||
|
||||
}; // namespace SAX
|
||||
|
||||
|
|
|
@ -62,7 +62,9 @@ public:
|
|||
}; // class basic_XMLFilter
|
||||
|
||||
typedef basic_XMLFilter<std::string> XMLFilter;
|
||||
#ifndef ARABICA_NO_WCHAR_T
|
||||
typedef basic_XMLFilter<std::wstring> wXMLFilter;
|
||||
#endif
|
||||
|
||||
}; // namespace SAX
|
||||
|
||||
|
|
|
@ -70,7 +70,9 @@ public:
|
|||
}; // class basic_Attributes2
|
||||
|
||||
typedef basic_Attributes2<std::string> Attributes2;
|
||||
#ifndef ARABICA_NO_WCHAR_T
|
||||
typedef basic_Attributes2<std::wstring> wAttributes2;
|
||||
#endif
|
||||
|
||||
}; // namespace SAX
|
||||
|
||||
|
|
|
@ -126,7 +126,9 @@ public:
|
|||
}; // class basic_DeclHandler
|
||||
|
||||
typedef basic_DeclHandler<std::string> DeclHandler;
|
||||
#ifndef ARABICA_NO_WCHAR_T
|
||||
typedef basic_DeclHandler<std::wstring> wDeclHandler;
|
||||
#endif
|
||||
|
||||
}; // namespace SAX
|
||||
|
||||
|
|
|
@ -268,7 +268,9 @@ private:
|
|||
}; // class basic_DefaultHandler
|
||||
|
||||
typedef basic_DefaultHandler2<std::string> DefaultHandler2;
|
||||
#ifndef ARABICA_NO_WCHAR_T
|
||||
typedef basic_DefaultHandler2<std::wstring> wDefaultHandler2;
|
||||
#endif
|
||||
|
||||
} // namespace SAX
|
||||
|
||||
|
|
|
@ -186,7 +186,9 @@ public:
|
|||
}; // class basic_LexicalHandler
|
||||
|
||||
typedef basic_LexicalHandler<std::string> LexicalHandler;
|
||||
#ifndef ARABICA_NO_WCHAR_T
|
||||
typedef basic_LexicalHandler<std::wstring> wLexicalHandler;
|
||||
#endif
|
||||
|
||||
}; // namespace SAX
|
||||
|
||||
|
|
|
@ -65,7 +65,9 @@ public:
|
|||
}; // class basic_Locator2
|
||||
|
||||
typedef basic_Locator2<std::string> Locator2;
|
||||
#ifndef ARABICA_NO_WCHAR_T
|
||||
typedef basic_Locator2<std::wstring> wLocator2;
|
||||
#endif
|
||||
|
||||
}; // namespace SAX
|
||||
|
||||
|
|
|
@ -453,7 +453,9 @@ void basic_Writer<string_type>::comment(const stringT& text)
|
|||
} // comment
|
||||
|
||||
typedef basic_Writer<std::string> Writer;
|
||||
#ifndef ARABICA_NO_WCHAR_T
|
||||
typedef basic_Writer<std::wstring> wWriter;
|
||||
#endif
|
||||
|
||||
} // namespace SAX
|
||||
|
||||
|
|
|
@ -288,7 +288,9 @@ private:
|
|||
}; // class AttributeListImpl
|
||||
|
||||
typedef basic_AttributeListImpl<std::string> AttributeListImpl;
|
||||
#ifndef ARABICA_NO_WCHAR_T
|
||||
typedef basic_AttributeListImpl<std::wstring> wAttributeListImpl;
|
||||
#endif
|
||||
|
||||
}; // namespace SAX
|
||||
|
||||
|
|
|
@ -521,7 +521,9 @@ public:
|
|||
}; // class AttributesImpl
|
||||
|
||||
typedef basic_AttributesImpl<std::string> AttributesImpl;
|
||||
#ifndef ARABICA_NO_WCHAR_T
|
||||
typedef basic_AttributesImpl<std::wstring> wAttributesImpl;
|
||||
#endif
|
||||
|
||||
} // namespace SAX
|
||||
|
||||
|
|
|
@ -369,7 +369,9 @@ private:
|
|||
}; // class basic_DefaultHandler
|
||||
|
||||
typedef basic_DefaultHandler<std::string> DefaultHandler;
|
||||
#ifndef ARABICA_NO_WCHAR_T
|
||||
typedef basic_DefaultHandler<std::wstring> wDefaultHandler;
|
||||
#endif
|
||||
|
||||
} // namespace SAX
|
||||
|
||||
|
|
|
@ -160,7 +160,9 @@ private:
|
|||
}; // class LocatorImpl
|
||||
|
||||
typedef basic_LocatorImpl<std::string> LocatorImpl;
|
||||
#ifndef ARABICA_NO_WCHAR_T
|
||||
typedef basic_LocatorImpl<std::wstring> wLocatorImpl;
|
||||
#endif
|
||||
|
||||
}; // namespace SAX
|
||||
|
||||
|
|
|
@ -542,7 +542,9 @@ private:
|
|||
}; // ParserAdaptor
|
||||
|
||||
typedef basic_ParserAdaptor<std::string, char> ParserAdaptor;
|
||||
#ifndef ARABICA_NO_WCHAR_T
|
||||
typedef basic_ParserAdaptor<std::wstring, wchar_t> wParserAdaptor;
|
||||
#endif
|
||||
|
||||
} // namespace SAX
|
||||
|
||||
|
|
|
@ -500,7 +500,9 @@ private:
|
|||
}; // class basic_XMLFilter
|
||||
|
||||
typedef basic_XMLFilterImpl<std::string> XMLFilterImpl;
|
||||
#ifndef ARABICA_NO_WCHAR_T
|
||||
typedef basic_XMLFilterImpl<std::wstring> wXMLFilterImpl;
|
||||
#endif
|
||||
|
||||
}; // namespace SAX
|
||||
|
||||
|
|
|
@ -88,6 +88,7 @@ typedef basic_Locator<std::string> Locator;
|
|||
typedef basic_Parser<std::string> Parser;
|
||||
typedef basic_SAXParseException<std::string> SAXParseException;
|
||||
|
||||
#ifndef ARABICA_NO_WCHAR_T
|
||||
typedef basic_AttributeList<std::wstring> wAttributeList;
|
||||
typedef basic_DocumentHandler<std::wstring> wDocumentHandler;
|
||||
typedef basic_DTDHandler<std::wstring> wDTDHandler;
|
||||
|
@ -96,6 +97,7 @@ typedef basic_InputSource<std::wstring> wInputSource;
|
|||
typedef basic_Locator<std::wstring> wLocator;
|
||||
typedef basic_Parser<std::wstring> wParser;
|
||||
typedef basic_SAXParseException<std::wstring> wSAXParseException;
|
||||
#endif
|
||||
|
||||
}; // namespace SAX
|
||||
|
||||
|
|
Loading…
Reference in a new issue