You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Jon Smirl <jo...@mediaone.net> on 2000/06/11 18:39:07 UTC

xalan-c - XalanDOMString

I had to change the order of the preprocessor directives in XalanDOMString.h
in order to make the tool tips work right in MSVC 6.  The tool tips seem to
always pick up the first defintion for XalanDOMString (basicstring) which is
not the one in use (DOMString).  I just rewrote it to make DOMString the
first defintion.

#if !defined(XALAN_USE_STD_STRING) && !defined(XALAN_USE_VECTOR_FOR_STRING)

#include <dom/DOMString.hpp>

typedef XMLCh        XalanDOMChar;
typedef DOMString       XalanDOMString;

#elif defined(XALAN_USE_STD_STRING)

#include <string>

typedef unsigned short      XalanDOMChar;

#if defined(XALAN_NO_NAMESPACES)
 typedef basic_string<XalanDOMChar>   XalanDOMString;
#else
 typedef std::basic_string<XalanDOMChar>  XalanDOMString;
#endif

#else

#include <vector>

typedef unsigned short      XalanDOMChar;

#if defined(XALAN_NO_NAMESPACES)
 typedef vector<XalanDOMChar>    XalanDOMString;
#else
 typedef std::vector<XalanDOMChar>   XalanDOMString;
#endif

#endif

Jon Smirl
jonsmirl@mediaone.net