summaryrefslogtreecommitdiff
path: root/source3/lib
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
commit3a3afec47f5f44a2f20ec604bbb090c03672b2e0 (patch)
tree95aa97641f9f278a9d6c49baa98a45bfaabdff17 /source3/lib
parent7c51c5ddf31cc990610d07edb1cbe7265288e2c3 (diff)
downloadsamba-3a3afec47f5f44a2f20ec604bbb090c03672b2e0.tar.gz
samba-3a3afec47f5f44a2f20ec604bbb090c03672b2e0.tar.bz2
samba-3a3afec47f5f44a2f20ec604bbb090c03672b2e0.zip
Added wtoupper/wtolower.
Jeremy. (This used to be commit 2e03ed62542152264ca5315b9ee9bb045b7f0b03)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/util_unistr.c19
1 files changed, 19 insertions, 0 deletions
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;
+}