Details
-
Suggestion
-
Resolution: Done
-
P4: Low
-
None
-
None
-
7922cd5272f84ca4180d6ebb45e5a81a45d14a92 (qt/qtbase/dev)
Description
The infra standard here:
https://infra.spec.whatwg.org/#ascii-whitespace
Defines ASCII whitespace as:
- U+0009 TAB,
- U+000A LF,
- U+000C FF,
- U+000D CR,
- U+0020 SPACE.
QChar::SpecialCharacter here does not include it:
https://doc.qt.io/qt-5/qchar.html#SpecialCharacter-enum
It would be nice to add, particularly when it comes to doing switch cases:
#define case_Html_Whitespace \ case QChar(QChar::Space) .toLatin1():\ case QChar(QChar::Tabulation) .toLatin1():\ case QChar(QChar::LineFeed) .toLatin1():\ case QChar(QChar::CarriageReturn).toLatin1():\ case QChar(QChar::FormFeed) .toLatin1(): /* Doesn't exist */
Attachments
For Gerrit Dashboard: QTBUG-77089 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
268124,8 | QChar: add FormFeed (FF) special character | dev | qt/qtbase | Status: MERGED | +2 | 0 |