本文整理汇总了C++中XalanDOMString类的典型用法代码示例。如果您正苦于以下问题:C++ XalanDOMString类的具体用法?C++ XalanDOMString怎么用?C++ XalanDOMString使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了XalanDOMString类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
示例16: append
XalanDOMString::XalanDOMString(
const XalanDOMString& theSource,
MemoryManager& theManager,
size_type theStartPosition,
size_type theCount) :
m_data(theManager),
m_size(0)
{
if (theSource.length() != 0)
{
append(theSource, theStartPosition, theCount);
}
}
开发者ID:apache,项目名称:xalan-c,代码行数:13,代码来源:XalanDOMString.cpp
示例17: assert
XObjectPtr
FunctionSample::execute(
XPathExecutionContext& executionContext,
XalanNode* /* context */,
const XObjectPtr arg1,
const XObjectPtr arg2,
const Locator* /* locator */) const
{
assert(arg1.null() == false);
assert(arg2.null() == false);
XalanDOMString path;
arg1->str(path);
const bool bLinux = arg2->boolean();
XalanDOMChar dchOld;
XalanDOMChar dchNew;
if (bLinux)
{
dchOld = '\\';
dchNew = '/';
}
else
{
dchOld = '/';
dchOld = '\\';
}
int len = path.length();
for (int i=0; i<len; i++)
if (path[i] == dchOld)
path[i] = dchNew;
return executionContext.getXObjectFactory().createString(path);
}
开发者ID:AttilaVamos,项目名称:HPCC-Platform,代码行数:36,代码来源:XslFunctions.cpp
示例18: evaluate
/**
* Append the value to the buffer.
*
* @param buf buffer to write into
* @param prefixResolver prefix resolver to use
* @param executionContext execution context
*/
void
evaluate(
XalanDOMString& buf,
const PrefixResolver& prefixResolver,
XPathExecutionContext& executionContext) const
{
if(m_simpleString != 0)
{
buf.assign(m_simpleString, m_simpleStringLength);
}
else
{
doEvaluate(buf, prefixResolver, executionContext);
}
}
开发者ID:fpoltronieri,项目名称:nomads,代码行数:22,代码来源:AVT.hpp
示例19: XalanOutputStreamException
XalanFileOutputStream::XalanFileOutputStreamWriteException::XalanFileOutputStreamWriteException(
const XalanDOMString& theFileName,
int theErrorCode,
XalanDOMString& theBuffer,
const Locator* theLocator) :
XalanOutputStreamException(
formatMessage(
XalanMessageLoader::getMessage(
theBuffer,
XalanMessages::ErrorWritingFile_1Param,
theFileName),
theErrorCode,
theBuffer),
theBuffer.getMemoryManager(),
theLocator)
{
}
开发者ID:mcasperson,项目名称:xalan.js,代码行数:17,代码来源:XalanFileOutputStream.cpp
示例20: st
void
ExtensionNSHandler::setElements(const XalanDOMString& elemNames)
{
if (elemNames.empty() == false)
{
StringTokenizer st(elemNames, s_tokenDelimiterCharacters, false);
XalanDOMString theResult(m_elements.getMemoryManager());
while (st.hasMoreTokens() == true)
{
st.nextToken(theResult);
m_elements.insert(theResult); // just stick it in there basically
}
m_componentDescLoaded = true;
}
}
开发者ID:apache,项目名称:xalan-c,代码行数:19,代码来源:ExtensionNSHandler.cpp
注:本文中的XalanDOMString类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论