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:
parent
35fca85660
commit
9d62ee2a81
@ -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);
|
||||
|
@ -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.
|
||||
* **/
|
||||
|
@ -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.
|
||||
*****************************************************************************/
|
||||
|
Loading…
Reference in New Issue
Block a user