From 9f55f253223d692db5d87009185a79bc40664978 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20V=C3=A9rit=C3=A9?= Date: Fri, 8 Dec 2023 15:47:59 +0100 Subject: [PATCH] Fix inconsistent indentation (replace 4 spaces by tabs in a few places) --- icu_ext.c | 2 +- icu_normalize.c | 2 +- icu_search.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/icu_ext.c b/icu_ext.c index 26771d9..1f4caa7 100644 --- a/icu_ext.c +++ b/icu_ext.c @@ -767,7 +767,7 @@ Datum icu_sort_key(PG_FUNCTION_ARGS) { text *txt = PG_GETARG_TEXT_PP(0); - UCollator *collator = ucollator_from_coll_id(PG_GET_COLLATION()); + UCollator *collator = ucollator_from_coll_id(PG_GET_COLLATION()); int32_t o_len = 1024; /* first attempt */ int32_t ulen; UChar *ustring; diff --git a/icu_normalize.c b/icu_normalize.c index 02ec039..23864c0 100644 --- a/icu_normalize.c +++ b/icu_normalize.c @@ -138,7 +138,7 @@ icu_normalize(PG_FUNCTION_ARGS) Datum icu_is_normalized(PG_FUNCTION_ARGS) { - text *src_text = PG_GETARG_TEXT_PP(0); + text *src_text = PG_GETARG_TEXT_PP(0); const char* arg_form = text_to_cstring(PG_GETARG_TEXT_PP(1)); norm_form_t form = name_to_norm(arg_form); UErrorCode status = U_ZERO_ERROR; diff --git a/icu_search.c b/icu_search.c index 88f2256..1bc2037 100644 --- a/icu_search.c +++ b/icu_search.c @@ -163,7 +163,7 @@ internal_strpos(text *txt1, text *txt2, UCollator *collator) Datum icu_strpos(PG_FUNCTION_ARGS) { - UCollator *collator = ucollator_from_coll_id(PG_GET_COLLATION()); + UCollator *collator = ucollator_from_coll_id(PG_GET_COLLATION()); PG_RETURN_INT32(internal_strpos(PG_GETARG_TEXT_PP(0), /* haystack */ PG_GETARG_TEXT_PP(1), /* needle */ @@ -351,7 +351,7 @@ internal_str_replace(text *txt1, /* not const because it may be returned */ Datum icu_replace(PG_FUNCTION_ARGS) { - UCollator *collator = ucollator_from_coll_id(PG_GET_COLLATION()); + UCollator *collator = ucollator_from_coll_id(PG_GET_COLLATION()); text *string; string = internal_str_replace(