From kde-commits Thu Apr 05 17:20:15 2007 From: Leo Savernik Date: Thu, 05 Apr 2007 17:20:15 +0000 To: kde-commits Subject: branches/KDE/3.5/kdelibs/kjs Message-Id: <1175793615.836850.12926.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=117579340201418 SVN commit 650880 by savernik: I said support libpcre without utf8-support. M +4 -1 regexp.cpp M +2 -0 regexp.h --- branches/KDE/3.5/kdelibs/kjs/regexp.cpp #650879:650880 @@ -318,6 +318,7 @@ int startPos; int nextPos; +#ifdef PCRE_CONFIG_UTF8 if (utf8Support == Supported) { startPos = i; while (originalPos[startPos] < i) @@ -326,7 +327,9 @@ nextPos = startPos; while (originalPos[nextPos] < (i + 1)) ++nextPos; - } else { + } else +#endif + { startPos = i; nextPos = i + 1; } --- branches/KDE/3.5/kdelibs/kjs/regexp.h #650879:650880 @@ -83,8 +83,10 @@ Unsupported }; +#ifdef PCRE_CONFIG_UTF8 static UTF8SupportState utf8Support; #endif +#endif unsigned int nrSubPatterns; RegExp();