From 1f282e976882353c117bba3e7cc826125ed585e4 Mon Sep 17 00:00:00 2001 From: RD42 <42702181+dashr9230@users.noreply.github.com> Date: Mon, 13 Nov 2023 20:28:56 +0800 Subject: [PATCH] [saco] Change indentation from spaces to tabs in Util_strrev --- saco/runutil.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/saco/runutil.cpp b/saco/runutil.cpp index 27a8c27..38d9e76 100644 --- a/saco/runutil.cpp +++ b/saco/runutil.cpp @@ -138,17 +138,17 @@ int Util_strnicmp(const char *s1, const char *s2, size_t n) char *Util_strrev(char *str) { - char *p1, *p2; + char *p1, *p2; - if (! str || ! *str) - return str; - for (p1 = str, p2 = str + strlen(str) - 1; p2 > p1; ++p1, --p2) - { - *p1 ^= *p2; - *p2 ^= *p1; - *p1 ^= *p2; - } - return str; + if (! str || ! *str) + return str; + for (p1 = str, p2 = str + strlen(str) - 1; p2 > p1; ++p1, --p2) + { + *p1 ^= *p2; + *p2 ^= *p1; + *p1 ^= *p2; + } + return str; } //----------------------------------------------------