summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@redhat.com>2012-09-12 14:07:24 +0800
committerDaniel Veillard <veillard@redhat.com>2012-09-12 14:07:24 +0800
commit0ca0a15ffbf9b7946c73072ad9955ac2876a98b3 (patch)
tree4b88295877f9d4b750a970c9ff113ef4c282fd78 /examples
parent864ad0c10b30ee771a46d45d16864ff515ec6c51 (diff)
downloadlibxslt-0ca0a15ffbf9b7946c73072ad9955ac2876a98b3.tar.gz
Big space and tabs cleanup
Remove spaces followed by tabs, and space and tabs at the end of lines
Diffstat (limited to 'examples')
-rw-r--r--examples/xsltICUSort.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/examples/xsltICUSort.c b/examples/xsltICUSort.c
index ba6ec4e6..6f761214 100644
--- a/examples/xsltICUSort.c
+++ b/examples/xsltICUSort.c
@@ -1,5 +1,5 @@
/**
- * xsltICUSort.c: module provided by Richard Jinks to provide a
+ * xsltICUSort.c: module provided by Richard Jinks to provide a
* sort function replacement using ICU, it is not
* included in standard due to the size of the ICU
* library
@@ -136,8 +136,8 @@ xsltICUSortFunction(xsltTransformContextPtr ctxt, xmlNodePtr *sorts,
conv = ucnv_open("UTF8", &status);
if(U_FAILURE(status)) {
xsltTransformError(ctxt, NULL, NULL, "xsltICUSortFunction: Error opening converter\n");
- }
- if(comp->has_lang)
+ }
+ if(comp->has_lang)
coll = ucol_open(comp->lang, &status);
if(U_FAILURE(status) || !comp->has_lang) {
status = U_ZERO_ERROR;
@@ -146,9 +146,9 @@ xsltICUSortFunction(xsltTransformContextPtr ctxt, xmlNodePtr *sorts,
if(U_FAILURE(status)) {
xsltTransformError(ctxt, NULL, NULL, "xsltICUSortFunction: Error opening collator\n");
}
- if(comp->lower_first)
+ if(comp->lower_first)
ucol_setAttribute(coll,UCOL_CASE_FIRST,UCOL_LOWER_FIRST,&status);
- else
+ else
ucol_setAttribute(coll,UCOL_CASE_FIRST,UCOL_UPPER_FIRST,&status);
if(U_FAILURE(status)) {
xsltTransformError(ctxt, NULL, NULL, "xsltICUSortFunction: Error setting collator attribute\n");
@@ -161,7 +161,7 @@ xsltICUSortFunction(xsltTransformContextPtr ctxt, xmlNodePtr *sorts,
j = i - incr;
if (results[i] == NULL)
continue;
-
+
while (j >= 0) {
if (results[j] == NULL)
tst = 1;
@@ -169,7 +169,7 @@ xsltICUSortFunction(xsltTransformContextPtr ctxt, xmlNodePtr *sorts,
if (number) {
if (results[j]->floatval == results[j + incr]->floatval)
tst = 0;
- else if (results[j]->floatval >
+ else if (results[j]->floatval >
results[j + incr]->floatval)
tst = 1;
else tst = -1;
@@ -207,11 +207,11 @@ xsltICUSortFunction(xsltTransformContextPtr ctxt, xmlNodePtr *sorts,
* Compute the result of the next level for the
* full set, this might be optimized ... or not
*/
- if (resultsTab[depth] == NULL)
+ if (resultsTab[depth] == NULL)
resultsTab[depth] = xsltComputeSortResult(ctxt,
sorts[depth]);
res = resultsTab[depth];
- if (res == NULL)
+ if (res == NULL)
break;
if (res[j] == NULL)
tst = 1;
@@ -219,7 +219,7 @@ xsltICUSortFunction(xsltTransformContextPtr ctxt, xmlNodePtr *sorts,
if (numb) {
if (res[j]->floatval == res[j + incr]->floatval)
tst = 0;
- else if (res[j]->floatval >
+ else if (res[j]->floatval >
res[j + incr]->floatval)
tst = 1;
else tst = -1;