本文整理汇总了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);
}
示例2: XalanDOMStringToXercesDOMString
static const DOMStringType
XalanDOMStringToXercesDOMString(const XalanDOMString& theString)
{
assert(XercesStringLengthType(theString.length()) == theString.length());
return DOMStringType(&theString[0], XercesStringLengthType(theString.length()));
}
示例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)
{
}
示例4: TranscodeToLocalCodePage
TranscodeToLocalCodePage(
const XalanDOMString& theSourceString,
CharVectorType& theTargetVector,
bool terminate,
char theSubstitutionChar)
{
doTranscodeToLocalCodePage(
theSourceString.c_str(),
theSourceString.length(),
true,
theTargetVector,
terminate,
theSubstitutionChar);
}
示例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())
{
}
示例6:
void
XUnknown::str(
XPathExecutionContext& /* executionContext */,
XalanDOMString& theBuffer) const
{
theBuffer.append(m_value);
}
示例7:
void
XTokenNumberAdapter::str(
XPathExecutionContext& /* executionContext */,
XalanDOMString& theBuffer) const
{
theBuffer.append(m_value.str());
}
示例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);
}
示例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));
}
}
}
示例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;
}
}
}
}
示例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);
}
示例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);
}
}
示例13:
XALAN_CPP_NAMESPACE_BEGIN
DOMStringPrintWriter::DOMStringPrintWriter(XalanDOMString& theString) :
PrintWriter(true, theString.getMemoryManager()),
m_outputString(&theString)
{
}
示例14:
void
AVTPartSimple::evaluate(
XalanDOMString& buf,
const PrefixResolver& /* prefixResolver */,
XPathExecutionContext& /* executionContext */) const
{
buf.append(m_val, m_len);
}
示例15: reset_func
inline void
reset_func(XalanDOMString& obj, MemoryManager& theManager, Type string)
{
assert( string != 0 );
XalanDOMString tmpString(string, theManager);
obj.swap(tmpString);
}