4#ifndef QTBASE_DEPFILE_SHARED_H
5#define QTBASE_DEPFILE_SHARED_H
25template <
typename StringType>
29 StringType escapedPath;
31 escapedPath.reserve(
size);
32 for (
int i = 0;
i <
size; ++
i) {
33 if (
path[
i] == CT(
'$')) {
34 escapedPath.append(CT(
'$'));
35 }
else if (
path[
i] == CT(
'#')) {
36 escapedPath.append(CT(
'\\'));
37 }
else if (
path[
i] == CT(
' ')) {
38 escapedPath.append(CT(
'\\'));
39 int backwards_it =
i - 1;
40 while (backwards_it > 0 &&
path[backwards_it] == CT(
'\\')) {
41 escapedPath.append(CT(
'\\'));
45 escapedPath.append(
path[
i]);
static QByteArray encodeName(const QString &fileName)
Converts fileName to an 8-bit encoding that you can use in native APIs.
\macro QT_RESTRICTED_CAST_FROM_ASCII
StringType escapeDependencyPath(const StringType &path)
static QByteArray escapeAndEncodeDependencyPath(const QString &path)
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLsizei const GLchar *const * path
\inmodule QtCore \reentrant