当前位置: 首页>>代码示例>>C++>>正文


C++ XalanDOMString类代码示例

本文整理汇总了C++中XalanDOMString的典型用法代码示例。如果您正苦于以下问题:C++ XalanDOMString类的具体用法?C++ XalanDOMString怎么用?C++ XalanDOMString使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了XalanDOMString类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: getURLStringFromString

	/**
	 * Determine the fully qualified URI for a string.
	 *
	 * @param urlString string to qualify
	 * @return string to fully qualified URI
	 */
	static void
	getURLStringFromString(
			const XalanDOMString&	urlString,
			XalanDOMString&			theNormalizedURI)
	{
		getURLStringFromString(urlString.c_str(), urlString.length(), theNormalizedURI);
	}
开发者ID:lupin7,项目名称:XML-Project,代码行数:13,代码来源:URISupport.hpp

示例2: XalanDOMStringToXercesDOMString

    static const DOMStringType
    XalanDOMStringToXercesDOMString(const XalanDOMString&   theString)
    {
        assert(XercesStringLengthType(theString.length()) == theString.length());

        return DOMStringType(&theString[0], XercesStringLengthType(theString.length()));
    }
开发者ID:apache,项目名称:xalan-c,代码行数:7,代码来源:XercesBridgeHelper.hpp

示例3: InputSource

XSLTInputSource::XSLTInputSource(
            const XalanDOMString&   systemId,
            const XalanDOMString&   publicId,
            MemoryManager&          theMemoryManager) :
    InputSource(
        systemId.c_str(),
        publicId.c_str(),
        &theMemoryManager),
    m_stream(0),
    m_node(0)
{
}
开发者ID:apache,项目名称:xalan-c,代码行数:12,代码来源:XSLTInputSource.cpp

示例4: TranscodeToLocalCodePage

TranscodeToLocalCodePage(
            const XalanDOMString&   theSourceString,
            CharVectorType&         theTargetVector,
            bool                    terminate,
            char                    theSubstitutionChar)
{
    doTranscodeToLocalCodePage(
        theSourceString.c_str(),
        theSourceString.length(),
        true,
        theTargetVector,
        terminate,
        theSubstitutionChar);
}
开发者ID:apache,项目名称:xalan-c,代码行数:14,代码来源:XalanDOMString.cpp

示例5: XalanOutputStreamException

XalanOutputStream::UnsupportedEncodingException::UnsupportedEncodingException(
            const XalanDOMString&   theEncoding,
            XalanDOMString&         theBuffer) :
    XalanOutputStreamException(
        XalanMessageLoader::getMessage(
            theBuffer,
            XalanMessages::UnsupportedEncoding_1Param,
            theEncoding),
        theBuffer.getMemoryManager()),
   m_encoding(
       theEncoding, 
       theBuffer.getMemoryManager())
{
}
开发者ID:rherardi,项目名称:xml-xalan-c-src_1_10_0,代码行数:14,代码来源:XalanOutputStream.cpp

示例6:

void
XUnknown::str(
            XPathExecutionContext&  /* executionContext */,
            XalanDOMString&         theBuffer) const
{
    theBuffer.append(m_value);
}
开发者ID:apache,项目名称:xalan-c,代码行数:7,代码来源:XUnknown.cpp

示例7:

void
XTokenNumberAdapter::str(
            XPathExecutionContext&  /* executionContext */,
            XalanDOMString&         theBuffer) const
{
    theBuffer.append(m_value.str());
}
开发者ID:apache,项目名称:xalan-c,代码行数:7,代码来源:XTokenNumberAdapter.cpp

示例8: string

 /**
  * Static conversion function. Appends the supplied boolean
  * value to a string.
  *
  * @param theBool The boolean value to convert.
  * @param theString The string value of the provided boolean value.
  */
 static void
 string(
         bool                theBool,
         XalanDOMString&     theString)
 {
     theString.append(theBool == true ? s_trueString : s_falseString);
 }
开发者ID:apache,项目名称:xalan-c,代码行数:14,代码来源:XObject.hpp

示例9: TranscodeFromLocalCodePage

TranscodeFromLocalCodePage(
            const CharVectorType&   theSourceString,
            XalanDOMString&         result)
{
    if (theSourceString.empty() == true)
    {
        result.erase();

        return result;
    }
    else
    {
        typedef XalanDOMString::size_type       size_type;

        const CharVectorType::size_type     theSize = theSourceString.size();

        if (theSourceString[theSize - 1] == CharVectorType::value_type(0))
        {
            return TranscodeFromLocalCodePage(&*theSourceString.begin(), result , size_type(theSize) - 1);
        }
        else
        {
            return TranscodeFromLocalCodePage(&*theSourceString.begin(), result , size_type(theSize));
        }
    }
}
开发者ID:apache,项目名称:xalan-c,代码行数:26,代码来源:XalanDOMString.cpp

示例10: catch

void
XalanXMLSerializerFactory::setEncoding(
                             MemoryManager&          theManager,
                             Writer&            theWriter,
                             XalanDOMString&    theEncoding)
{
    XalanOutputStream* stream = theWriter.getStream();

    if(stream != 0)
    {
        if(theEncoding.empty())
        {
            // Default to UTF-8 if the requested encoding is not supported...
            stream->setOutputEncoding(XalanDOMString(XalanTranscodingServices::s_utf8String, theManager));

            theEncoding = XalanTranscodingServices::s_utf8String;
        }
        else
        {
            try
            {
                stream->setOutputEncoding(theEncoding);
            }
            catch(const XalanOutputStream::UnsupportedEncodingException&)
            {
                // Default to UTF-8 if the requested encoding is not supported...
                stream->setOutputEncoding(XalanDOMString(XalanTranscodingServices::s_utf8String, theManager));

                theEncoding = XalanTranscodingServices::s_utf8String;
            }
        }

    }
}
开发者ID:rherardi,项目名称:xml-xalan-c-src_1_10_0,代码行数:34,代码来源:XalanXMLSerializerFactory.cpp

示例11: getURLFromString

	/**
	 * Determine the fully qualified URI for a string.
	 *
	 * @param urlString string to qualify
	 * @param url to update with the qualified string.
	 */
	static void
	getURLFromString(
			const XalanDOMString&	urlString,
			XMLURLType&				url,
            MemoryManagerType&      theManager)
	{
		getURLFromString(urlString.c_str(), url, theManager);
	}
开发者ID:lupin7,项目名称:XML-Project,代码行数:14,代码来源:URISupport.hpp

示例12: equals

bool
XalanDOMString::equals(
            const XalanDOMString&   theLHS,
            const XalanDOMString&   theRHS)
{
    const XalanDOMString::size_type     theLHSLength = theLHS.size();
    const XalanDOMString::size_type     theRHSLength = theRHS.size();

    if (theLHSLength != theRHSLength)
    {
        return false;
    }
    else
    {
        return equals(theLHS.c_str(), theLHSLength, theRHS.c_str(), theRHSLength);
    }
}
开发者ID:apache,项目名称:xalan-c,代码行数:17,代码来源:XalanDOMString.cpp

示例13:

XALAN_CPP_NAMESPACE_BEGIN



DOMStringPrintWriter::DOMStringPrintWriter(XalanDOMString&	theString) :
PrintWriter(true, theString.getMemoryManager()),
	m_outputString(&theString)
{
}
开发者ID:rherardi,项目名称:xml-xalan-c-src_1_10_0,代码行数:9,代码来源:DOMStringPrintWriter.cpp

示例14:

void
AVTPartSimple::evaluate(
            XalanDOMString&         buf,
            const PrefixResolver&   /* prefixResolver */,
            XPathExecutionContext&  /* executionContext */) const

{
    buf.append(m_val, m_len);
}
开发者ID:apache,项目名称:xalan-c,代码行数:9,代码来源:AVTPartSimple.cpp

示例15: reset_func

inline void
reset_func(XalanDOMString& obj, MemoryManager&    theManager, Type string)
{
    assert( string != 0 );

    XalanDOMString tmpString(string, theManager);

    obj.swap(tmpString);
}
开发者ID:apache,项目名称:xalan-c,代码行数:9,代码来源:XalanDOMString.cpp


注:本文中的XalanDOMString类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。