qt.cfg: Add/enhance functions of class QString (#2027)

Some were reported missing by daca@home.
This commit is contained in:
Sebastian 2019-07-23 19:55:55 +02:00 committed by GitHub
parent 46686c6c20
commit 3e5f07b3fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 184 additions and 4 deletions

View File

@ -691,6 +691,33 @@
<not-uninit/>
</arg>
</function>
<!-- QString &QString::fill(QChar ch, int size = -1) -->
<function name="QString::fill">
<noreturn>false</noreturn>
<returnValue type="QString &amp;"/>
<leak-ignore/>
<arg nr="1" direction="in">
<not-uninit/>
</arg>
<arg nr="2" direction="in" default="-1">
<not-uninit/>
</arg>
</function>
<!-- QString QString::fromAscii(const char *str, int size = -1) // static -->
<!-- QString QString::fromAscii(const QByteArray &str) // static -->
<function name="QString::fromAscii">
<noreturn>false</noreturn>
<use-retval/>
<returnValue type="QString"/>
<leak-ignore/>
<warn severity="style" alternatives="QString::fromLatin1" reason="Obsolete"/>
<arg nr="1" direction="in">
<not-uninit/>
</arg>
<arg nr="2" default="-1" direction="in">
<not-uninit/>
</arg>
</function>
<!-- QString QString::fromLatin1(const char *str, int size = -1) //static -->
<!-- QString QString::fromLatin1(const QByteArray &str) //static -->
<function name="QString::fromLatin1">
@ -705,7 +732,8 @@
<not-uninit/>
</arg>
</function>
<!-- QString QString::fromLocal8Bit(const char * str, int size = -1) //static -->
<!-- QString QString::fromLocal8Bit(const char * str, int size = -1) // static -->
<!-- QString QString::fromLocal8Bit(const QByteArray &str) // static -->
<function name="QString::fromLocal8Bit">
<noreturn>false</noreturn>
<use-retval/>
@ -719,6 +747,30 @@
<not-uninit/>
</arg>
</function>
<!-- QString QString::fromNSString(const NSString *string) // static -->
<function name="QString::fromNSString">
<noreturn>false</noreturn>
<returnValue type="QString"/>
<use-retval/>
<leak-ignore/>
<arg nr="1" direction="in">
<not-null/>
<not-uninit/>
</arg>
</function>
<!-- QString QString::fromRawData(const QChar *unicode, int size) // static -->
<function name="QString::fromRawData">
<noreturn>false</noreturn>
<returnValue type="QString"/>
<use-retval/>
<leak-ignore/>
<arg nr="1" direction="in">
<not-uninit/>
</arg>
<arg nr="2" direction="in">
<not-uninit/>
</arg>
</function>
<!-- QString QString::fromStdString(const std::string &str) //static -->
<function name="QString::fromStdString">
<noreturn>false</noreturn>
@ -727,6 +779,18 @@
<leak-ignore/>
<arg nr="1" direction="in"/>
</function>
<!-- QString QString::fromStdU16String(const std::u16string &str) // static -->
<!-- QString QString::fromStdU32String(const std::u32string &str) // static -->
<!-- QString QString::fromStdWString(const std::wstring &str) // static -->
<function name="QString::fromStdU16String,QString::fromStdU32String,QString::fromStdWString">
<noreturn>false</noreturn>
<returnValue type="QString"/>
<use-retval/>
<leak-ignore/>
<arg nr="1" direction="in">
<not-uninit/>
</arg>
</function>
<!-- QString QString::fromUtf8(const char *str, int size = -1) //static -->
<!-- QString QString::fromUtf8(const QByteArray &str) //static -->
<function name="QString::fromUtf8">
@ -741,6 +805,51 @@
<not-uninit/>
</arg>
</function>
<!-- QString QString::fromUtf16(const ushort *unicode, int size = -1) // static -->
<!-- QString QString::fromUtf16(const char16_t *str, int size = -1) // static -->
<function name="QString::fromUtf16">
<noreturn>false</noreturn>
<use-retval/>
<returnValue type="QString"/>
<leak-ignore/>
<arg nr="1" direction="in">
<not-uninit/>
</arg>
<arg nr="2" default="-1" direction="in">
<not-uninit/>
</arg>
</function>
<!-- QString QString::fromWCharArray(const wchar_t *string, int size = -1) // static -->
<function name="QString::fromWCharArray">
<noreturn>false</noreturn>
<returnValue type="QString"/>
<use-retval/>
<leak-ignore/>
<arg nr="1" direction="in">
<not-uninit/>
</arg>
<arg nr="2" default="-1" direction="in">
<not-uninit/>
</arg>
</function>
<!-- QByteArray QString::toAscii() const -->
<function name="QString::toAscii">
<noreturn>false</noreturn>
<returnValue type="QByteArray"/>
<use-retval/>
<leak-ignore/>
<const/>
<warn severity="style" alternatives="QString::toLatin1" reason="Obsolete"/>
</function>
<!-- QByteArray QString::toLatin1() const -->
<!-- QByteArray QString::toLocal8Bit() const -->
<function name="QString::toLatin1,QString::toLocal8Bit">
<noreturn>false</noreturn>
<returnValue type="QByteArray"/>
<use-retval/>
<leak-ignore/>
<const/>
</function>
<!-- int QList::indexOf(const T &) const -->
<!-- int QStringList::indexOf(const QString &) const -->
<function name="QList::indexOf,QStringList::indexOf">
@ -837,12 +946,28 @@
<not-uninit/>
</arg>
</function>
<!-- int QString::localeAwareCompare(const QString &other) const -->
<!-- int QString::localeAwareCompare(const QStringRef &other) const -->
<!-- int QString::localeAwareCompare(const QString &s1, const QStringRef &s2) // static -->
<function name="QString::localeAwareCompare">
<noreturn>false</noreturn>
<returnValue type="int"/>
<use-retval/>
<leak-ignore/>
<arg nr="1" direction="in">
<not-uninit/>
<not-bool/>
</arg>
<arg nr="2" direction="in" default="">
<not-uninit/>
<not-bool/>
</arg>
</function>
<!-- QList<T> QList::mid(int pos, int length = -1) const -->
<!-- QString QString::mid(int position, int n = -1) const -->
<!-- QStringList QStringList::mid(int pos, int length = -1) const -->
<function name="QList::mid,QString::mid,QStringList::mid">
<function name="QList::mid">
<noreturn>false</noreturn>
<use-retval/>
<const/>
<arg nr="1" direction="in">
<not-uninit/>
</arg>
@ -850,6 +975,61 @@
<not-uninit/>
</arg>
</function>
<!-- QString QString::mid(int position, int n = -1) const -->
<function name="QString::mid">
<noreturn>false</noreturn>
<returnValue type="QString"/>
<use-retval/>
<const/>
<arg nr="1" direction="in">
<not-uninit/>
</arg>
<arg nr="2" default="-1" direction="in">
<not-uninit/>
</arg>
</function>
<!-- QStringList QStringList::mid(int pos, int length = -1) const -->
<function name="QStringList::mid">
<noreturn>false</noreturn>
<returnValue type="QStringList"/>
<use-retval/>
<const/>
<arg nr="1" direction="in">
<not-uninit/>
</arg>
<arg nr="2" default="-1" direction="in">
<not-uninit/>
</arg>
</function>
<!-- QStringRef QString::midRef(int position, int n = -1) const -->
<function name="QString::midRef">
<noreturn>false</noreturn>
<returnValue type="QStringRef"/>
<use-retval/>
<const/>
<arg nr="1" direction="in">
<not-uninit/>
<not-bool/>
</arg>
<arg nr="2" default="-1" direction="in">
<not-uninit/>
<not-bool/>
</arg>
</function>
<!-- QString QString::normalized(QString::NormalizationForm mode, QChar::UnicodeVersion version = QChar::Unicode_Unassigned) const -->
<function name="QString::normalized">
<noreturn>false</noreturn>
<returnValue type="QString"/>
<use-retval/>
<leak-ignore/>
<const/>
<arg nr="1" direction="in">
<not-uninit/>
</arg>
<arg nr="2" direction="in" default="QChar::Unicode_Unassigned">
<not-uninit/>
</arg>
</function>
<!-- QString QString::number(long n, int base = 10) -->
<!-- QString QString::number(uint n, int base = 10) -->
<!-- QString QString::number(int n, int base = 10) -->