From 3a3afec47f5f44a2f20ec604bbb090c03672b2e0 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 23 Dec 1999 02:01:37 +0000 Subject: Added wtoupper/wtolower. Jeremy. (This used to be commit 2e03ed62542152264ca5315b9ee9bb045b7f0b03) --- source3/lib/util_unistr.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'source3/lib') diff --git a/source3/lib/util_unistr.c b/source3/lib/util_unistr.c index 486091a8b5..dddf4bde92 100644 --- a/source3/lib/util_unistr.c +++ b/source3/lib/util_unistr.c @@ -953,6 +953,7 @@ int wisxdigit( smb_ucs2_t val) { return (map_table[val].flags & UNI_XDIGIT); } + /******************************************************************* Is a space wchar. ********************************************************************/ @@ -961,3 +962,21 @@ int wisspace( smb_ucs2_t val) { return (map_table[val].flags & UNI_SPACE); } + +/******************************************************************* + Convert a wchar to upper case. +********************************************************************/ + +smb_ucs2_t wtoupper( smb_ucs2_t val ) +{ + return map_table[val].upper; +} + +/******************************************************************* + Convert a wchar to lower case. +********************************************************************/ + +smb_ucs2_t wtolowerr( smb_ucs2_t val ) +{ + return map_table[val].lower; +} -- cgit