summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_string.c
diff options
context:
space:
mode:
authorAndrei Belov <defan@nginx.com>2019-03-01 18:30:09 +0300
committerAndrei Belov <defan@nginx.com>2019-03-01 18:30:09 +0300
commit3c3720cba7154bc168cbd00c74817626bb53e140 (patch)
treeda1500f7c6bd5e90ecf45299b6f4b19a29d521cd /src/nxt_string.c
parent315a864c27aa27a48c013c4a1ef67a099ffea894 (diff)
parentdf02b03824065389c73213b19736140442cf63bc (diff)
downloadunit-3c3720cba7154bc168cbd00c74817626bb53e140.tar.gz
unit-3c3720cba7154bc168cbd00c74817626bb53e140.tar.bz2
Merged with the default branch.
Diffstat (limited to 'src/nxt_string.c')
-rw-r--r--src/nxt_string.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/nxt_string.c b/src/nxt_string.c
index 1858b58b..7d8c1ce3 100644
--- a/src/nxt_string.c
+++ b/src/nxt_string.c
@@ -96,6 +96,19 @@ nxt_memcpy_lowcase(u_char *dst, const u_char *src, size_t length)
}
+void
+nxt_memcpy_upcase(u_char *dst, const u_char *src, size_t length)
+{
+ u_char c;
+
+ while (length != 0) {
+ c = *src++;
+ *dst++ = nxt_upcase(c);
+ length--;
+ }
+}
+
+
u_char *
nxt_cpystrn(u_char *dst, const u_char *src, size_t length)
{