Merge "Test_cel: Fails when DONT_OPTIMIZE is off" into 16
This commit is contained in:
commit
a40fb7fa7f
|
@ -1212,19 +1212,7 @@ static force_inline int attribute_pure ast_str_case_hash(const char *str)
|
|||
*
|
||||
* \retval str for convenience
|
||||
*/
|
||||
static force_inline char *attribute_pure ast_str_to_lower(char *str)
|
||||
{
|
||||
char *str_orig = str;
|
||||
if (!str) {
|
||||
return str;
|
||||
}
|
||||
|
||||
for (; *str; ++str) {
|
||||
*str = tolower(*str);
|
||||
}
|
||||
|
||||
return str_orig;
|
||||
}
|
||||
char *attribute_pure ast_str_to_lower(char *str);
|
||||
|
||||
/*!
|
||||
* \brief Convert a string to all upper-case
|
||||
|
|
|
@ -421,3 +421,18 @@ int ast_vector_string_split(struct ast_vector_string *dest,
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
char *attribute_pure ast_str_to_lower(char *str)
|
||||
{
|
||||
char *str_orig = str;
|
||||
if (!str) {
|
||||
return str;
|
||||
}
|
||||
|
||||
for (; *str; ++str) {
|
||||
*str = tolower(*str);
|
||||
}
|
||||
|
||||
return str_orig;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue