Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qquicksvgparser.cpp File Reference
#include "qquicksvgparser_p.h"
#include <QtCore/qmath.h>
#include <QtCore/qvarlengtharray.h>
#include <QtCore/qstring.h>
#include <private/qlocale_tools_p.h>
+ Include dependency graph for qquicksvgparser.cpp:

Go to the source code of this file.

Functions

static QT_BEGIN_NAMESPACE bool isDigit (ushort ch)
 
static qreal toDouble (const QChar *&str)
 
static void parseNumbersArray (const QChar *&str, QVarLengthArray< qreal, 8 > &points)
 
static void pathArcSegment (QPainterPath &path, qreal xc, qreal yc, qreal th0, qreal th1, qreal rx, qreal ry, qreal xAxisRotation)
 

Function Documentation

◆ isDigit()

static QT_BEGIN_NAMESPACE bool isDigit ( ushort  ch)
inlinestatic

Definition at line 15 of file qquicksvgparser.cpp.

References ch, and magic.

Referenced by QSSGShaderKeyUnsigned< TBitWidth >::fromString(), Qt::mightBeRichText(), parseNumbersArray(), QQuickImageBase::resolve2xLocalFile(), and toDouble().

+ Here is the caller graph for this function:

◆ parseNumbersArray()

static void parseNumbersArray ( const QChar *&  str,
QVarLengthArray< qreal, 8 > &  points 
)
inlinestatic

Definition at line 98 of file qquicksvgparser.cpp.

References QString::append(), isDigit(), str, toDouble(), and QString::unicode().

Referenced by QQuickSvgParser::parsePathDataFast().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ pathArcSegment()

static void pathArcSegment ( QPainterPath path,
qreal  xc,
qreal  yc,
qreal  th0,
qreal  th1,
qreal  rx,
qreal  ry,
qreal  xAxisRotation 
)
static

Definition at line 119 of file qquicksvgparser.cpp.

References qCos(), qDegreesToRadians(), qSin(), rx(), and ry().

Referenced by QQuickSvgParser::pathArc().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ toDouble()

static qreal toDouble ( const QChar *&  str)
static

Definition at line 21 of file qquicksvgparser.cpp.

References isDigit(), ok, pos, qstrtod(), str, QString::toLatin1(), and QString::unicode().

Referenced by parseNumbersArray().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: