summaryrefslogtreecommitdiffstats
path: root/source/lib/util_unistr.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1999-12-23 02:01:37 +0000
committerJeremy Allison <jra@samba.org>1999-12-23 02:01:37 +0000
commit2e03ed62542152264ca5315b9ee9bb045b7f0b03 (patch)
tree737ac15041ee726baa50a00572a44ae903fc3b37 /source/lib/util_unistr.c
parentd7b72d4cbfb6bd1925abc7f95c1180d3d65856a5 (diff)
downloadsamba-2e03ed62542152264ca5315b9ee9bb045b7f0b03.tar.gz
samba-2e03ed62542152264ca5315b9ee9bb045b7f0b03.tar.xz
samba-2e03ed62542152264ca5315b9ee9bb045b7f0b03.zip
Added wtoupper/wtolower.
Jeremy.
Diffstat (limited to 'source/lib/util_unistr.c')
-rw-r--r--source/lib/util_unistr.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/source/lib/util_unistr.c b/source/lib/util_unistr.c
index 486091a8b53..dddf4bde92a 100644
--- a/source/lib/util_unistr.c
+++ b/source/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;
+}