Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
Extracts various pieces and information out of a rawComment string. More...
#include <qqmldomcomments_p.h>
Public Member Functions | |
CommentInfo (QStringView) | |
QStringView | preWhitespace () const |
QStringView | comment () const |
QStringView | commentContent () const |
QStringView | postWhitespace () const |
Public Attributes | |
quint32 | commentBegin = 0 |
quint32 | commentEnd = 0 |
quint32 | commentContentBegin = 0 |
quint32 | commentContentEnd = 0 |
QStringView | commentStartStr |
QStringView | commentEndStr |
bool | hasStartNewline = false |
bool | hasEndNewline = false |
int | nContentNewlines = 0 |
QStringView | rawComment |
QStringList | warnings |
Extracts various pieces and information out of a rawComment string.
Comments store a string (rawComment) with comment characters (//,..) and spaces. Sometime one wants just the comment, the commentcharacters, the space before the comment,.... CommentInfo gets such a raw comment string and makes the various pieces available
Definition at line 37 of file qqmldomcomments_p.h.
QQmlJS::Dom::CommentInfo::CommentInfo | ( | QStringView | rawComment | ) |
Definition at line 68 of file qqmldomcomments.cpp.
References arg, QStringView::at(), commentBegin, commentContentBegin, commentContentEnd, commentEnd, commentEndStr, commentStartStr, hasEndNewline, hasStartNewline, i, QStringView::mid(), nContentNewlines, Q_ASSERT, QStringLiteral, rawComment, QStringView::size(), tr, and warnings.
|
inline |
Definition at line 45 of file qqmldomcomments_p.h.
References QStringView::mid().
|
inline |
Definition at line 47 of file qqmldomcomments_p.h.
References QStringView::mid().
|
inline |
Definition at line 52 of file qqmldomcomments_p.h.
References QStringView::mid().
|
inline |
Definition at line 43 of file qqmldomcomments_p.h.
References QStringView::mid().
quint32 QQmlJS::Dom::CommentInfo::commentBegin = 0 |
Definition at line 57 of file qqmldomcomments_p.h.
Referenced by CommentInfo().
quint32 QQmlJS::Dom::CommentInfo::commentContentBegin = 0 |
Definition at line 59 of file qqmldomcomments_p.h.
Referenced by CommentInfo().
quint32 QQmlJS::Dom::CommentInfo::commentContentEnd = 0 |
Definition at line 60 of file qqmldomcomments_p.h.
Referenced by CommentInfo().
quint32 QQmlJS::Dom::CommentInfo::commentEnd = 0 |
Definition at line 58 of file qqmldomcomments_p.h.
Referenced by CommentInfo().
QStringView QQmlJS::Dom::CommentInfo::commentEndStr |
Definition at line 62 of file qqmldomcomments_p.h.
Referenced by CommentInfo().
QStringView QQmlJS::Dom::CommentInfo::commentStartStr |
Definition at line 61 of file qqmldomcomments_p.h.
Referenced by CommentInfo().
bool QQmlJS::Dom::CommentInfo::hasEndNewline = false |
Definition at line 64 of file qqmldomcomments_p.h.
Referenced by CommentInfo().
bool QQmlJS::Dom::CommentInfo::hasStartNewline = false |
Definition at line 63 of file qqmldomcomments_p.h.
Referenced by CommentInfo().
int QQmlJS::Dom::CommentInfo::nContentNewlines = 0 |
Definition at line 65 of file qqmldomcomments_p.h.
Referenced by CommentInfo().
QStringView QQmlJS::Dom::CommentInfo::rawComment |
Definition at line 66 of file qqmldomcomments_p.h.
Referenced by CommentInfo().
QStringList QQmlJS::Dom::CommentInfo::warnings |
Definition at line 67 of file qqmldomcomments_p.h.
Referenced by CommentInfo().