1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

s3-lib Move strisnormal to it's only user in mangle_hash.c

This commit is contained in:
Andrew Bartlett 2011-04-14 12:31:18 +10:00
parent 35fca85660
commit 9d62ee2a81
3 changed files with 13 additions and 14 deletions

View File

@ -958,7 +958,6 @@ int StrnCaseCmp(const char *s, const char *t, size_t len);
bool strnequal(const char *s1,const char *s2,size_t n);
bool strcsequal(const char *s1,const char *s2);
void strnorm(char *s, int case_default);
bool strisnormal(const char *s, int case_default);
char *push_skip_string(char *buf);
char *skip_string(const char *base, size_t len, char *buf);
size_t str_charnum(const char *s);

View File

@ -220,19 +220,6 @@ void strnorm(char *s, int case_default)
strlower_m(s);
}
/**
Check if a string is in "normal" case.
**/
bool strisnormal(const char *s, int case_default)
{
if (case_default == CASE_UPPER)
return(!strhaslower(s));
return(!strhasupper(s));
}
/**
* Skip past some strings in a buffer - old version - no checks.
* **/

View File

@ -587,6 +587,19 @@ static bool lookup_name_from_8_3(TALLOC_CTX *ctx,
return *out ? True : False;
}
/**
Check if a string is in "normal" case.
**/
static bool strisnormal(const char *s, int case_default)
{
if (case_default == CASE_UPPER)
return(!strhaslower(s));
return(!strhasupper(s));
}
/*****************************************************************************
Do the actual mangling to 8.3 format.
*****************************************************************************/