qt6-bb10/src/corelib/text
Thiago Macieira 62de01bf17 QString & QByteArray: ensure QT_NO_CAST_* are not defined on Windows
We can't have those macros defined while compiling the headers on
Windows (mainly MSVC, but there are some corner cases that apply to
MinGW too) because the inline functions must be emitted and added to the
DLL export table. Trying to undefine (as qchar.cpp did) won't work in
builds with PCH or in CMake Unified builds, because the headers in
question will have already been included. So instead just #error out.

qchar.cpp is #included in qstring.cpp so it no longer needs this. For Qt
7, we'll un-export the class (see next commit).

Note: it's possible we only need a single .cpp including the headers and
compiled without these macros for the export to kick in. That could be
removed_api.cpp, because that can never be part of PCH or Unified
sources. But I have not confirmed this is the case.

Task-number: QTBUG-121356
Change-Id: I5dd50a1a7ca5424d9e7afffd17acba32fb27f1ca
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
2024-01-23 10:08:23 -08:00
..
UNICODE_LICENSE.txt Update CLDR to v42 2023-02-07 19:04:11 +01:00
qanystringview.cpp Doc: Fix \fn template arguments for Qt Core 2023-11-30 11:26:20 +01:00
qanystringview.h qTo*ViewIgnoringNull: further ignore nulls 2023-12-21 11:13:32 -08:00
qbytearray.cpp QString & QByteArray: ensure QT_NO_CAST_* are not defined on Windows 2024-01-23 10:08:23 -08:00
qbytearray.h QByteArray: allow begin() to return nullptr, like QString 2023-12-21 11:13:32 -08:00
qbytearray_p.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qbytearrayalgorithms.h QString/QByteArray: further inline the most common indexOf operations 2023-12-21 11:13:32 -08:00
qbytearraylist.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qbytearraylist.h Replace usages of Q_CLANG_QDOC with Q_QDOC 2022-10-21 09:48:36 +02:00
qbytearraymatcher.cpp QtCore: Fix some macro clashes 2023-01-31 18:42:15 +01:00
qbytearraymatcher.h Short live q20::fill{,_n}! 2022-10-11 21:17:17 +00:00
qbytearrayview.h qTo*ViewIgnoringNull: further ignore nulls 2023-12-21 11:13:32 -08:00
qbytearrayview.qdoc Doc: Fix \fn template arguments for Qt Core 2023-11-30 11:26:20 +01:00
qbytedata_p.h Port from container.count()/length() to size() 2022-10-04 07:40:08 +02:00
qchar.cpp QString & QByteArray: ensure QT_NO_CAST_* are not defined on Windows 2024-01-23 10:08:23 -08:00
qchar.h Qt UDLs: avoid the deprecated form of UDL definitions 2023-09-12 23:12:13 +02:00
qcollator.cpp Improve the documentation of compare() overloads for string-like types 2023-11-20 16:46:15 +00:00
qcollator.h QCollator: port compare(ptr, n, ptr, n) to qsizetype 2022-07-20 11:15:55 +00:00
qcollator_icu.cpp QCollator: add comments re: missing handling of large strings 2022-07-20 13:15:56 +02:00
qcollator_macx.cpp QCollator: Extract Method Private::ensureInitialized() 2022-07-20 11:15:56 +00:00
qcollator_p.h QCollator: Extract Method Private::ensureInitialized() 2022-07-20 11:15:56 +00:00
qcollator_posix.cpp Use the correct size argument for wcsxfrm 2023-01-12 14:32:28 +01:00
qcollator_win.cpp QCollator: add comments re: missing handling of large strings 2022-07-20 13:15:56 +02:00
qdoublescanprint_p.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qlatin1stringmatcher.cpp QLatin1StringMatcher: handle `from` index < 0 2023-11-04 17:46:05 +03:00
qlatin1stringmatcher.h Remove superfluous Latin-1 case folding table 2022-12-22 20:02:29 +01:00
qlatin1stringview.h QLatin1StringView: add missing (const_)pointer nested typedef 2023-12-06 00:22:45 +01:00
qlatin1stringview.qdoc QLatin1StringView: add missing (const_)pointer nested typedef 2023-12-06 00:22:45 +01:00
qlocale.cpp Make public QLocale's constant for the two-digit-year base 2024-01-22 14:18:09 +01:00
qlocale.h Make public QLocale's constant for the two-digit-year base 2024-01-22 14:18:09 +01:00
qlocale.qdoc Revise new-in-CLDR v43 enum entries to say new in 6.6, not 6.7 2023-09-05 22:41:35 +02:00
qlocale_data_p.h qlocale_data_p.h: add missing #includeS 2023-09-01 01:30:35 +03:00
qlocale_icu.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qlocale_mac.mm QLocale: clean out assorted over-namespacing 2023-08-09 21:43:40 +02:00
qlocale_p.h wasm: remove onLanguageChanged event handler 2024-01-17 16:44:24 +00:00
qlocale_tools.cpp Deprecate Q_ASSUME() 2023-08-14 17:36:37 -07:00
qlocale_tools_p.h QLocale: move QSimpleParsedNumber to qlocale_p.h 2023-07-22 22:29:31 +02:00
qlocale_unix.cpp QLocale: port to qsizetype [1/N]: indexed to ranged loops 2022-07-26 01:29:15 +02:00
qlocale_wasm.cpp wasm: Add QLocale backend 2023-10-31 08:09:23 +02:00
qlocale_win.cpp Make QLocale self-consistent on Windows 2024-01-19 15:38:25 +01:00
qregularexpression.cpp Deprecate Q_ASSUME() 2023-08-14 17:36:37 -07:00
qregularexpression.h Add missing | operator for QRegularExpression::WildcardConversionOptions 2023-10-16 18:43:16 +02:00
qstaticlatin1stringmatcher.h QStaticLatin1StringMatcher: fix typo in static_assert 2023-09-20 00:05:53 +02:00
qstaticlatin1stringmatcher.qdoc QStaticLatin1StringMatcher: touch up API docs 2023-10-25 04:14:35 +03:00
qstring.cpp QString & QByteArray: ensure QT_NO_CAST_* are not defined on Windows 2024-01-23 10:08:23 -08:00
qstring.h QString: inline indexOf() and use a QChar overload 2023-12-21 11:13:31 -08:00
qstring_mips_dsp_asm.S Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qstringalgorithms.h QString/QByteArray: further inline the most common indexOf operations 2023-12-21 11:13:32 -08:00
qstringalgorithms_p.h qstringalgorithms: make trimmed_helper_positions [[nodiscard]] 2023-08-03 02:12:21 +03:00
qstringbuilder.cpp QStringBuilder: fix typos in API docs 2023-06-18 14:39:57 +00:00
qstringbuilder.h QByteArray: allow begin() to return nullptr, like QString 2023-12-21 11:13:32 -08:00
qstringconverter.cpp Fix QStringConverter::encodingForName() for trailing `-`, `_` 2023-12-07 05:16:23 +00:00
qstringconverter.h QStringConverter: clarify decode()/encode() API docs 2023-10-06 22:51:11 +03:00
qstringconverter_base.h Provide QStringConverter equivalent of QTextCodec::availableCodecs 2023-07-18 09:38:38 +03:00
qstringconverter_p.h QStringConverter[win]: expose+test control of code-page 2023-10-24 22:30:03 +02:00
qstringfwd.h Replace usages of Q_CLANG_QDOC with Q_QDOC 2022-10-21 09:48:36 +02:00
qstringiterator.qdoc Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qstringiterator_p.h QStringIterator: fix UB [2/2]: use std::less to compare pointers 2022-08-05 07:07:49 +02:00
qstringlist.cpp QStringList: add lastIndexOf() overloads 2023-10-22 14:37:57 +03:00
qstringlist.h QStringList: add lastIndexOf() overloads 2023-10-22 14:37:57 +03:00
qstringliteral.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qstringmatcher.cpp QStringMatcher: add a method that returns a string view of the pattern 2023-10-21 16:50:16 +03:00
qstringmatcher.h QStringMatcher: add a method that returns a string view of the pattern 2023-10-21 16:50:16 +03:00
qstringtokenizer.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qstringtokenizer.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qstringview.cpp Doc: Fix \fn template arguments for Qt Core 2023-11-30 11:26:20 +01:00
qstringview.h qTo*ViewIgnoringNull: further ignore nulls 2023-12-21 11:13:32 -08:00
qt_attribution.json Update CLDR version in qt_attribution.json 2023-08-22 16:26:02 +02:00
qtextboundaryfinder.cpp Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
qtextboundaryfinder.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qtliterals.qdoc Fix the qtliterals documentation 2023-12-27 11:52:52 +01:00
qunicodetables.cpp Update UCD to Revision 30 2022-10-11 14:10:59 +00:00
qunicodetables_p.h Unicode: Extract EastAsianWidth property 2022-05-24 23:07:43 +02:00
qunicodetools.cpp QUnicodeTools: Use QVarLengthArray in Thai support code 2023-01-17 19:24:09 +00:00
qunicodetools_p.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qutf8stringview.h qTo*ViewIgnoringNull: further ignore nulls 2023-12-21 11:13:32 -08:00
qutf8stringview.qdoc Doc: Fix \fn template arguments for Qt Core 2023-11-30 11:26:20 +01:00
qvsnprintf.cpp Replace usages of Q_CLANG_QDOC with Q_QDOC 2022-10-21 09:48:36 +02:00