[SCM] WebKit Debian packaging branch, debian/unstable, updated. debian/1.1.15-1-40151-g37bb677
gramps
gramps at 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Sat Sep 26 05:48:39 UTC 2009
The following commit has been merged in the debian/unstable branch:
commit a14cd21798fd70ae0dc7617b10b727a46f930aa1
Author: gramps <gramps at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Wed Oct 3 19:08:06 2001 +0000
Added isNumber function for khtmlview.cpp
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@259 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebCore/kwq/KWQChar.mm b/WebCore/kwq/KWQChar.mm
index 15fbd18..034cfb7 100644
--- a/WebCore/kwq/KWQChar.mm
+++ b/WebCore/kwq/KWQChar.mm
@@ -152,10 +152,15 @@ bool QChar::isLetter() const
kCFCharacterSetLetter), c);
}
+bool QChar::isNumber() const
+{
+ return isLetterOrNumber() && !isLetter();
+}
+
bool QChar::isLetterOrNumber() const
{
return CFCharacterSetIsCharacterMember(CFCharacterSetGetPredefined(
- kCFCharacterSetAlphaNumeric), c) || isDigit();
+ kCFCharacterSetAlphaNumeric), c);
}
bool QChar::isPunct() const
diff --git a/WebCore/kwq/KWQString.h b/WebCore/kwq/KWQString.h
index e6c68cd..bf12930 100644
--- a/WebCore/kwq/KWQString.h
+++ b/WebCore/kwq/KWQString.h
@@ -106,6 +106,7 @@ public:
bool isSpace() const;
bool isDigit() const;
bool isLetter() const;
+ bool isNumber() const;
bool isLetterOrNumber() const;
bool isPunct() const;
QChar lower() const;
diff --git a/WebCore/kwq/qt/qstring.h b/WebCore/kwq/qt/qstring.h
index e6c68cd..bf12930 100644
--- a/WebCore/kwq/qt/qstring.h
+++ b/WebCore/kwq/qt/qstring.h
@@ -106,6 +106,7 @@ public:
bool isSpace() const;
bool isDigit() const;
bool isLetter() const;
+ bool isNumber() const;
bool isLetterOrNumber() const;
bool isPunct() const;
QChar lower() const;
diff --git a/WebCore/src/kwq/KWQChar.mm b/WebCore/src/kwq/KWQChar.mm
index 15fbd18..034cfb7 100644
--- a/WebCore/src/kwq/KWQChar.mm
+++ b/WebCore/src/kwq/KWQChar.mm
@@ -152,10 +152,15 @@ bool QChar::isLetter() const
kCFCharacterSetLetter), c);
}
+bool QChar::isNumber() const
+{
+ return isLetterOrNumber() && !isLetter();
+}
+
bool QChar::isLetterOrNumber() const
{
return CFCharacterSetIsCharacterMember(CFCharacterSetGetPredefined(
- kCFCharacterSetAlphaNumeric), c) || isDigit();
+ kCFCharacterSetAlphaNumeric), c);
}
bool QChar::isPunct() const
diff --git a/WebCore/src/kwq/qt/qstring.h b/WebCore/src/kwq/qt/qstring.h
index e6c68cd..bf12930 100644
--- a/WebCore/src/kwq/qt/qstring.h
+++ b/WebCore/src/kwq/qt/qstring.h
@@ -106,6 +106,7 @@ public:
bool isSpace() const;
bool isDigit() const;
bool isLetter() const;
+ bool isNumber() const;
bool isLetterOrNumber() const;
bool isPunct() const;
QChar lower() const;
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list