summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qchar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/tools/qchar.cpp')
-rw-r--r--src/corelib/tools/qchar.cpp13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/corelib/tools/qchar.cpp b/src/corelib/tools/qchar.cpp
index 56773bd527..a60fac4a7b 100644
--- a/src/corelib/tools/qchar.cpp
+++ b/src/corelib/tools/qchar.cpp
@@ -511,18 +511,23 @@ bool QChar::isPrint() const
}
/*!
+ \fn bool QChar::isSpace() const
+
Returns true if the character is a separator character
(Separator_* categories or certain code points from Other_Control category);
otherwise returns false.
*/
-bool QChar::isSpace() const
+
+/*!
+ \internal
+ \overload
+*/
+bool QChar::isSpace(ushort ucs2)
{
- if(ucs >= 9 && ucs <=13)
- return true;
const int test = FLAG(Separator_Space) |
FLAG(Separator_Line) |
FLAG(Separator_Paragraph);
- return FLAG(qGetProp(ucs)->category) & test;
+ return FLAG(qGetProp(ucs2)->category) & test;
}
/*!