*
* \retval str for convenience
*/
-char *attribute_pure ast_str_to_lower(char *str);
+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;
+}
/*!
* \brief Convert a string to all upper-case
return start;
}
-
-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;
-}