#include "QtCore/qstring.h"
#include "QtCore/qstringlist.h"
#include "QtCore/qvector.h"
#include "qt_windows.h"
Go to the source code of this file.
◆ qCmdLineArgs()
static QStringList qCmdLineArgs |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
|
inlinestatic |
Definition at line 146 of file qcorecmdlineargs_p.h.
static QString fromWCharArray(const wchar_t *, int size=-1)
Returns a copy of the string, where the encoding of string depends on the size of wchar...
static QStringList qWinCmdArgs(QString cmdLine)
The QString class provides a Unicode character string.
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
◆ qWinCmdArgs()
Definition at line 133 of file qcorecmdlineargs_p.h.
Referenced by QCoreApplication::arguments(), and qCmdLineArgs().
139 for (
int a = 0;
a < argc; ++
a) {
static QString fromWCharArray(const wchar_t *, int size=-1)
Returns a copy of the string, where the encoding of string depends on the size of wchar...
int length() const
Returns the number of characters in this string.
long ASN1_INTEGER_get ASN1_INTEGER * a
The QVector class is a template class that provides a dynamic array.
The QStringList class provides a list of strings.
const ushort * utf16() const
Returns the QString as a '\0\'-terminated array of unsigned shorts.
◆ qWinCmdLine()
template<typename Char >
static QVector<Char*> qWinCmdLine |
( |
Char * |
cmdParam, |
|
|
int |
length, |
|
|
int & |
argc |
|
) |
| |
|
static |
Definition at line 74 of file qcorecmdlineargs_p.h.
78 Char *p_end = p + length;
82 while (*p && p < p_end) {
83 while (
QChar((
short)(*p)).isSpace())
85 if (*p && p < p_end) {
88 if (*p ==
Char(
'\"') || *p ==
Char(
'\'')) {
96 while (*p && p < p_end) {
100 if (
QChar((
short)(*p)).isSpace())
109 if (!quote && (*p ==
Char(
'\"') || *p ==
Char(
'\''))) {
112 }
else if (
QChar((
short)(*p)).isSpace() && !quote)
122 if (argc >= (
int)argv.size()-1)
123 argv.resize(argv.size()*2);
124 argv[argc++] = start;
The QVector class is a template class that provides a dynamic array.
The QChar class provides a 16-bit Unicode character.