summaryrefslogtreecommitdiffstats
path: root/src/corelib/text
diff options
context:
space:
mode:
authorJonas Kvinge <jonas@jkvinge.net>2021-10-09 15:06:03 +0200
committerJonas Kvinge <jonas@jkvinge.net>2021-10-15 06:50:57 +0200
commit0e94d193a310e3b1a313766380f88aaea2a5bbd4 (patch)
tree9aa79cfb4be90a53a685b357bd1d610a849c002e /src/corelib/text
parentbb0d5bfb8d432572c48ad640f2a42b1ac670f75e (diff)
corelib: Fix typos in source code comments
Change-Id: Ic78afb67143112468c6f84677ac88f27a74b53aa Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> (cherry picked from commit 231fec7ca2f61da7d94c8aa072b41fd7ee893861) Reviewed-by: Jonas Kvinge <jonas@jkvinge.net>
Diffstat (limited to 'src/corelib/text')
-rw-r--r--src/corelib/text/qchar.cpp2
-rw-r--r--src/corelib/text/qlocale.cpp2
-rw-r--r--src/corelib/text/qstring.cpp6
-rw-r--r--src/corelib/text/qunicodetools.cpp2
4 files changed, 6 insertions, 6 deletions
diff --git a/src/corelib/text/qchar.cpp b/src/corelib/text/qchar.cpp
index bca446987a..5264a1d852 100644
--- a/src/corelib/text/qchar.cpp
+++ b/src/corelib/text/qchar.cpp
@@ -1571,7 +1571,7 @@ static auto fullConvertCase(char32_t uc, QUnicodeTables::Case which) noexcept
while (length--)
*pp++ = *specialCase++;
} else {
- // so far, case convertion never changes planes (guaranteed by the qunicodetables generator)
+ // so far, case conversion never changes planes (guaranteed by the qunicodetables generator)
for (char16_t c : QChar::fromUcs4(uc + caseDiff))
*pp++ = c;
}
diff --git a/src/corelib/text/qlocale.cpp b/src/corelib/text/qlocale.cpp
index 25d4423a28..e7e39becd2 100644
--- a/src/corelib/text/qlocale.cpp
+++ b/src/corelib/text/qlocale.cpp
@@ -572,7 +572,7 @@ QString qt_readEscapedFormatString(QStringView format, int *idx)
++i;
if (i == format.size())
return QString();
- if (format.at(i).unicode() == '\'') { // "''" outside of a quoted stirng
+ if (format.at(i).unicode() == '\'') { // "''" outside of a quoted string
++i;
return QLatin1String("'");
}
diff --git a/src/corelib/text/qstring.cpp b/src/corelib/text/qstring.cpp
index 427d9579bc..a5611fcc8d 100644
--- a/src/corelib/text/qstring.cpp
+++ b/src/corelib/text/qstring.cpp
@@ -772,8 +772,8 @@ static void qt_to_latin1_internal(uchar *dst, const char16_t *src, qsizetype len
});
# endif
#elif defined(__ARM_NEON__)
- // Refer to the documentation of the SSE2 implementation
- // this use eactly the same method as for SSE except:
+ // Refer to the documentation of the SSE2 implementation.
+ // This uses exactly the same method as for SSE except:
// 1) neon has unsigned comparison
// 2) packing is done to 64 bits (8 x 8bits component).
if (length >= 16) {
@@ -8395,7 +8395,7 @@ static int getEscape(const Char *uc, qsizetype *pos, qsizetype len, int maxNumbe
the int contains the numerical number as parsed from the placeholder.
3. Next, collect all the non-negative ints found, sort them in ascending order and
remove duplicates.
- 3a. If the result has more entires than multiArg() was given replacement strings,
+ 3a. If the result has more entries than multiArg() was given replacement strings,
we have found placeholders we can't satisfy with replacement strings. That is
fine (there could be another .arg() call coming after this one), so just
truncate the result to the number of actual multiArg() replacement strings.
diff --git a/src/corelib/text/qunicodetools.cpp b/src/corelib/text/qunicodetools.cpp
index 45538e5d9e..be235aa0bf 100644
--- a/src/corelib/text/qunicodetools.cpp
+++ b/src/corelib/text/qunicodetools.cpp
@@ -1258,7 +1258,7 @@ static inline Form form(unsigned short uc) {
(Consonant Nukta? Halant)* Consonant Halant
IndependentVowel VowelMark? StressMark?
- We return syllable boundaries on invalid combinations aswell
+ We return syllable boundaries on invalid combinations as well
*/
static qsizetype indic_nextSyllableBoundary(QChar::Script script, const char16_t *s, qsizetype start, qsizetype end, bool *invalid)
{