summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-reader/CRegExp.cpp
Side-by-side diff
Diffstat (limited to 'noncore/apps/opie-reader/CRegExp.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-reader/CRegExp.cpp170
1 files changed, 85 insertions, 85 deletions
diff --git a/noncore/apps/opie-reader/CRegExp.cpp b/noncore/apps/opie-reader/CRegExp.cpp
index 77dc2dc..6318d28 100644
--- a/noncore/apps/opie-reader/CRegExp.cpp
+++ b/noncore/apps/opie-reader/CRegExp.cpp
@@ -63,7 +63,7 @@ void CRegExpFilt::prepreprocessing(const QString& pat, bool insens)
{
-#ifdef _WINDOWS
- switch (pat.at(p).unicode())
-#else
- switch (pat[p].unicode())
-#endif
+#ifdef _WINDOWS
+ switch (pat.at(p).unicode())
+#else
+ switch (pat[p].unicode())
+#endif
{
@@ -87,8 +87,8 @@ void CRegExpFilt::prepreprocessing(const QString& pat, bool insens)
{
- p++;
+ p++;
#ifdef _WINDOWS
- while ('0' <= pat.at(p).unicode() && pat.at(p).unicode() <= '9')
-#else
- while ('0' <= pat[p].unicode() && pat[p].unicode() <= '9')
-#endif
+ while ('0' <= pat.at(p).unicode() && pat.at(p).unicode() <= '9')
+#else
+ while ('0' <= pat[p].unicode() && pat[p].unicode() <= '9')
+#endif
{
@@ -99,8 +99,8 @@ void CRegExpFilt::prepreprocessing(const QString& pat, bool insens)
case '\\' :
- {
+ {
#ifdef _WINDOWS
- tchar c = escapedchar(pat.at(++p).unicode());
-#else
- tchar c = escapedchar(pat[++p].unicode());
-#endif
+ tchar c = escapedchar(pat.at(++p).unicode());
+#else
+ tchar c = escapedchar(pat[++p].unicode());
+#endif
regchar(c, insens);
@@ -113,8 +113,8 @@ void CRegExpFilt::prepreprocessing(const QString& pat, bool insens)
bool invert = false;
- tchar c;
+ tchar c;
#ifdef _WINDOWS
- if (pat.at(p+1).unicode() == '^')
-#else
- if (pat[p+1].unicode() == '^')
-#endif
+ if (pat.at(p+1).unicode() == '^')
+#else
+ if (pat[p+1].unicode() == '^')
+#endif
{
@@ -122,16 +122,16 @@ void CRegExpFilt::prepreprocessing(const QString& pat, bool insens)
invert = true;
- }
+ }
#ifdef _WINDOWS
- while ((c = pat.at(++p).unicode()) != ']')
-#else
- while ((c = pat[++p].unicode()) != ']')
-#endif
+ while ((c = pat.at(++p).unicode()) != ']')
+#else
+ while ((c = pat[++p].unicode()) != ']')
+#endif
{
if (c == '\\')
- {
+ {
#ifdef _WINDOWS
- c = escapedchar(pat.at(++p).unicode());
-#else
- c = escapedchar(pat[++p].unicode());
-#endif
+ c = escapedchar(pat.at(++p).unicode());
+#else
+ c = escapedchar(pat[++p].unicode());
+#endif
if (c == ']') break;
@@ -139,8 +139,8 @@ void CRegExpFilt::prepreprocessing(const QString& pat, bool insens)
if (c == '-')
- {
+ {
#ifdef _WINDOWS
- c = pat.at(++p).unicode();
-#else
- c = pat[++p].unicode();
-#endif
+ c = pat.at(++p).unicode();
+#else
+ c = pat[++p].unicode();
+#endif
for (tchar j = clast; j <= c; j++)
@@ -159,8 +159,8 @@ void CRegExpFilt::prepreprocessing(const QString& pat, bool insens)
default :
- {
+ {
#ifdef _WINDOWS
- regchar(pat.at(p).unicode(), insens);
-#else
- regchar(pat[p].unicode(), insens);
-#endif
+ regchar(pat.at(p).unicode(), insens);
+#else
+ regchar(pat[p].unicode(), insens);
+#endif
break;
@@ -195,8 +195,8 @@ unsigned int CRegExpFilt::preprocessing(const QString& pat, bool insens)
qDebug("m is %u", m);
- if (inkeep) keep |= bit[m];
+ if (inkeep) keep |= bit[m];
#ifdef _WINDOWS
- switch (pat.at(p).unicode())
-#else
- switch (pat[p].unicode())
-#endif
+ switch (pat.at(p).unicode())
+#else
+ switch (pat[p].unicode())
+#endif
{
@@ -230,14 +230,14 @@ unsigned int CRegExpFilt::preprocessing(const QString& pat, bool insens)
p++;
- int count = 0;
+ int count = 0;
#ifdef _WINDOWS
- while ('0' <= pat.at(p).unicode() && pat.at(p).unicode() <= '9')
-#else
- while ('0' <= pat[p].unicode() && pat[p].unicode() <= '9')
-#endif
- {
+ while ('0' <= pat.at(p).unicode() && pat.at(p).unicode() <= '9')
+#else
+ while ('0' <= pat[p].unicode() && pat[p].unicode() <= '9')
+#endif
+ {
#ifdef _WINDOWS
- count = 10*count + pat.at(p++).unicode() - '0';
-#else
- count = 10*count + pat[p++].unicode() - '0';
-#endif
+ count = 10*count + pat.at(p++).unicode() - '0';
+#else
+ count = 10*count + pat[p++].unicode() - '0';
+#endif
}
@@ -268,8 +268,8 @@ unsigned int CRegExpFilt::preprocessing(const QString& pat, bool insens)
case '\\' :
- {
+ {
#ifdef _WINDOWS
- tchar c = escapedchar(pat.at(++p).unicode());
-#else
- tchar c = escapedchar(pat[++p].unicode());
-#endif
+ tchar c = escapedchar(pat.at(++p).unicode());
+#else
+ tchar c = escapedchar(pat[++p].unicode());
+#endif
if (insens)
@@ -290,8 +290,8 @@ unsigned int CRegExpFilt::preprocessing(const QString& pat, bool insens)
tchar c, clast;
- bool invert = false;
+ bool invert = false;
#ifdef _WINDOWS
- if (pat.at(p+1).unicode() == '^')
-#else
- if (pat[p+1].unicode() == '^')
-#endif
+ if (pat.at(p+1).unicode() == '^')
+#else
+ if (pat[p+1].unicode() == '^')
+#endif
{
@@ -299,16 +299,16 @@ unsigned int CRegExpFilt::preprocessing(const QString& pat, bool insens)
invert = true;
- }
+ }
#ifdef _WINDOWS
- while ((c = pat.at(++p).unicode()) != ']')
-#else
- while ((c = pat[++p].unicode()) != ']')
-#endif
+ while ((c = pat.at(++p).unicode()) != ']')
+#else
+ while ((c = pat[++p].unicode()) != ']')
+#endif
{
if (c == '\\')
- {
+ {
#ifdef _WINDOWS
- c = escapedchar(pat.at(++p).unicode());
-#else
- c = escapedchar(pat[++p].unicode());
-#endif
+ c = escapedchar(pat.at(++p).unicode());
+#else
+ c = escapedchar(pat[++p].unicode());
+#endif
if (c == ']') break;
@@ -316,8 +316,8 @@ unsigned int CRegExpFilt::preprocessing(const QString& pat, bool insens)
if (c == '-')
- {
+ {
#ifdef _WINDOWS
- c = pat.at(++p).unicode();
-#else
- c = pat[++p].unicode();
-#endif
+ c = pat.at(++p).unicode();
+#else
+ c = pat[++p].unicode();
+#endif
for (tchar j = clast; j <= c; j++)
@@ -384,8 +384,8 @@ unsigned int CRegExpFilt::preprocessing(const QString& pat, bool insens)
default :
- {
+ {
#ifdef _WINDOWS
- tchar c = pat.at(p).unicode();
-#else
- tchar c = pat[p].unicode();
-#endif
+ tchar c = pat.at(p).unicode();
+#else
+ tchar c = pat[p].unicode();
+#endif
if (insens)