diff options
Diffstat (limited to 'src/nxt_string.c')
-rw-r--r-- | src/nxt_string.c | 13 |
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) { |