diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-05-23 00:40:25 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:53:53 -0500 |
commit | f7a7192eff21fb48e4bd41ce65d0c0c175d4a1fb (patch) | |
tree | d20e7020a866be109d4126414e4ad86ed3eeedd7 /source4/lib/util_unistr.c | |
parent | f11cc69df34c39f545669eb83b0dbf23227db558 (diff) | |
download | samba-f7a7192eff21fb48e4bd41ce65d0c0c175d4a1fb.tar.gz samba-f7a7192eff21fb48e4bd41ce65d0c0c175d4a1fb.tar.bz2 samba-f7a7192eff21fb48e4bd41ce65d0c0c175d4a1fb.zip |
r827: remove a few more unused functions that we are unlikely to use again
(This used to be commit 121dd9ba0038f6e076c464cddad0b788fe6076fa)
Diffstat (limited to 'source4/lib/util_unistr.c')
-rw-r--r-- | source4/lib/util_unistr.c | 37 |
1 files changed, 0 insertions, 37 deletions
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 @@ -258,24 +258,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 ********************************************************************/ @@ -321,25 +303,6 @@ int strcasecmp_w(const smb_ucs2_t *a, const smb_ucs2_t *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 ********************************************************************/ |