From f7a7192eff21fb48e4bd41ce65d0c0c175d4a1fb Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 23 May 2004 00:40:25 +0000 Subject: r827: remove a few more unused functions that we are unlikely to use again (This used to be commit 121dd9ba0038f6e076c464cddad0b788fe6076fa) --- source4/lib/util_unistr.c | 37 ------------------------------------- 1 file changed, 37 deletions(-) (limited to 'source4/lib/util_unistr.c') diff --git a/source4/lib/util_unistr.c b/source4/lib/util_unistr.c index 5e48d716b9..76ebadc3ef 100644 --- a/source4/lib/util_unistr.c +++ b/source4/lib/util_unistr.c @@ -257,24 +257,6 @@ static int strncmp_w(const smb_ucs2_t *a, const smb_ucs2_t *b, size_t len) } -/******************************************************************* -wide strstr() -********************************************************************/ -const smb_ucs2_t *strstr_w(const smb_ucs2_t *s, const smb_ucs2_t *ins) -{ - const smb_ucs2_t *r; - size_t inslen; - - if (!s || !*s || !ins || !*ins) return NULL; - inslen = strlen_w(ins); - r = s; - while ((r = strchr_w(r, *ins))) { - if (strncmp_w(r, ins, inslen) == 0) return r; - r++; - } - return NULL; -} - /******************************************************************* Convert a string to lower case. return True if any char is converted @@ -320,25 +302,6 @@ int strcasecmp_w(const smb_ucs2_t *a, const smb_ucs2_t *b) return (tolower_w(*a) - tolower_w(*b)); } -/******************************************************************* -copy a string with max len -********************************************************************/ - -smb_ucs2_t *strncpy_w(smb_ucs2_t *dest, const smb_ucs2_t *src, const size_t max) -{ - size_t len; - - if (!dest || !src) return NULL; - - for (len = 0; (src[len] != 0) && (len < max); len++) - dest[len] = src[len]; - while (len < max) - dest[len++] = 0; - - return dest; -} - - /******************************************************************* replace any occurence of oldc with newc in unicode string ********************************************************************/ -- cgit