本文整理汇总了C++中QDomCharacterData::substringData方法的典型用法代码示例。如果您正苦于以下问题:C++ QDomCharacterData::substringData方法的具体用法?C++ QDomCharacterData::substringData怎么用?C++ QDomCharacterData::substringData使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类QDomCharacterData
的用法示例。
在下文中一共展示了QDomCharacterData::substringData方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: QString
QString QDomCharacterDataProto:: substringData(unsigned long offset, unsigned long count)
{
QDomCharacterData *item = qscriptvalue_cast<QDomCharacterData*>(thisObject());
if (item)
return item->substringData(offset, count);
return QString();
}
示例2: sipConvertFromNewType
static PyObject *meth_QDomCharacterData_substringData(PyObject *sipSelf, PyObject *sipArgs)
{
PyObject *sipParseErr = NULL;
{
unsigned long a0;
unsigned long a1;
QDomCharacterData *sipCpp;
if (sipParseArgs(&sipParseErr, sipArgs, "Bmm", &sipSelf, sipType_QDomCharacterData, &sipCpp, &a0, &a1))
{
QString*sipRes;
Py_BEGIN_ALLOW_THREADS
sipRes = new QString(sipCpp->substringData(a0,a1));
Py_END_ALLOW_THREADS
return sipConvertFromNewType(sipRes,sipType_QString,NULL);
}
}
示例3: sipConvertFromNewType
static PyObject *meth_QDomCharacterData_substringData(PyObject *sipSelf, PyObject *sipArgs)
{
PyObject *sipParseErr = NULL;
{
unsigned long a0;
unsigned long a1;
QDomCharacterData *sipCpp;
if (sipParseArgs(&sipParseErr, sipArgs, "Bmm", &sipSelf, sipType_QDomCharacterData, &sipCpp, &a0, &a1))
{
QString*sipRes;
sipRes = new QString(sipCpp->substringData(a0,a1));
return sipConvertFromNewType(sipRes,sipType_QString,NULL);
}
}
/* Raise an exception if the arguments couldn't be parsed. */
sipNoMethod(sipParseErr, sipName_QDomCharacterData, sipName_substringData, doc_QDomCharacterData_substringData);
return NULL;
}