mirror of
https://github.com/libretro/RetroArch
synced 2025-03-30 07:20:36 +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_ucwords(char* s);
|
||||
|
||||
char *string_replace_substring(const char *in, const char *pattern,
|
||||
const char *by);
|
||||
|
||||
|
@ -59,6 +59,21 @@ char *string_to_lower(char *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,
|
||||
const char *pattern, const char *replacement)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user