2007-11-24 Eric Seidel <eric@webkit.org>
Reviewed by Sam.
reformat get_othercase_range
* pcre/pcre_compile.cpp:
(get_othercase_range):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@28140 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/JavaScriptCore/pcre/pcre_compile.cpp b/JavaScriptCore/pcre/pcre_compile.cpp
index 604c5fb..e0b0f7b 100644
--- a/JavaScriptCore/pcre/pcre_compile.cpp
+++ b/JavaScriptCore/pcre/pcre_compile.cpp
@@ -787,29 +787,31 @@
Yield: true when range returned; false when no more
*/
-static BOOL
-get_othercase_range(int *cptr, int d, int *ocptr, int *odptr)
+static bool get_othercase_range(int *cptr, int d, int *ocptr, int *odptr)
{
-int c, othercase = 0, next;
-
-for (c = *cptr; c <= d; c++)
- { if ((othercase = _pcre_ucp_othercase(c)) >= 0) break; }
-
-if (c > d) return false;
-
-*ocptr = othercase;
-next = othercase + 1;
-
-for (++c; c <= d; c++)
- {
- if (_pcre_ucp_othercase(c) != next) break;
- next++;
- }
-
-*odptr = next - 1;
-*cptr = c;
-
-return true;
+ int c, othercase = 0, next;
+
+ for (c = *cptr; c <= d; c++) {
+ if ((othercase = _pcre_ucp_othercase(c)) >= 0)
+ break;
+ }
+
+ if (c > d)
+ return false;
+
+ *ocptr = othercase;
+ next = othercase + 1;
+
+ for (++c; c <= d; c++) {
+ if (_pcre_ucp_othercase(c) != next)
+ break;
+ next++;
+ }
+
+ *odptr = next - 1;
+ *cptr = c;
+
+ return true;
}