mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-12-26 01:59:53 +03:00
Str: remove unused IsStrInStrTokenList() function
This commit is contained in:
parent
0d096961b7
commit
517fed85a1
@ -579,45 +579,6 @@ bool InStrList(char *target_str, char *tokens, char *splitter, bool case_sensiti
|
||||
return ret;
|
||||
}
|
||||
|
||||
// Confirm whether the specified string is in the token list
|
||||
bool IsStrInStrTokenList(char *str_list, char *str, char *split_chars, bool case_sensitive)
|
||||
{
|
||||
TOKEN_LIST *t;
|
||||
bool ret = false;
|
||||
UINT i;
|
||||
// Validate arguments
|
||||
if (str_list == NULL || str == NULL)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
t = ParseTokenWithoutNullStr(str_list, split_chars);
|
||||
|
||||
if (t != NULL)
|
||||
{
|
||||
for (i = 0;i < t->NumTokens;i++)
|
||||
{
|
||||
if ((case_sensitive == false) && (StrCmpi(t->Token[i], str) == 0))
|
||||
{
|
||||
ret = true;
|
||||
}
|
||||
if ((case_sensitive) && (StrCmp(t->Token[i], str) == 0))
|
||||
{
|
||||
ret = true;
|
||||
}
|
||||
|
||||
if (ret)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
FreeToken(t);
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
// Cut out the token from string (Ignore blanks between delimiters)
|
||||
TOKEN_LIST *ParseTokenWithoutNullStr(char *str, char *split_chars)
|
||||
{
|
||||
|
@ -244,7 +244,6 @@ void ToHex64(char *str, UINT64 value);
|
||||
UINT HexToInt(char *str);
|
||||
UINT64 HexToInt64(char *str);
|
||||
UINT SearchAsciiInBinary(void *data, UINT size, char *str, bool case_sensitive);
|
||||
bool IsStrInStrTokenList(char *str_list, char *str, char *split_chars, bool case_sensitive);
|
||||
void IntListToStr(char *str, UINT str_size, LIST *o, char *separate_str);
|
||||
LIST *StrToIntList(char *str, bool sorted);
|
||||
void NormalizeIntListStr(char *dst, UINT dst_size, char *src, bool sorted, char *separate_str);
|
||||
|
Loading…
Reference in New Issue
Block a user