mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 15:45:19 +00:00
Update libretro-common
This commit is contained in:
parent
ea5f458fbd
commit
4b76f88939
@ -42,6 +42,8 @@ char *string_to_upper(char *s);
|
|||||||
|
|
||||||
char *string_to_lower(char *s);
|
char *string_to_lower(char *s);
|
||||||
|
|
||||||
|
char *string_ucwords(char* s);
|
||||||
|
|
||||||
char *string_replace_substring(const char *in, const char *pattern,
|
char *string_replace_substring(const char *in, const char *pattern,
|
||||||
const char *by);
|
const char *by);
|
||||||
|
|
||||||
|
@ -59,6 +59,21 @@ char *string_to_lower(char *s)
|
|||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
char *string_ucwords(char *s)
|
||||||
|
{
|
||||||
|
char *cs = (char *)s;
|
||||||
|
for ( ; *cs != '\0'; cs++)
|
||||||
|
{
|
||||||
|
if (*cs == ' ')
|
||||||
|
{
|
||||||
|
*(cs+1) = toupper(*(cs+1));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
s[0] = toupper(s[0]);
|
||||||
|
return s;
|
||||||
|
}
|
||||||
|
|
||||||
char *string_replace_substring(const char *in,
|
char *string_replace_substring(const char *in,
|
||||||
const char *pattern, const char *replacement)
|
const char *pattern, const char *replacement)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user