mirror of
https://github.com/libretro/beetle-psx-libretro.git
synced 2024-11-27 02:40:31 +00:00
29 lines
455 B
C++
29 lines
455 B
C++
#include <stdint.h>
|
|
#include <string.h>
|
|
|
|
#include <string>
|
|
|
|
#include "misc.h"
|
|
|
|
void MDFN_strtoupper(char *str)
|
|
{
|
|
size_t x;
|
|
for(x = 0; str[x]; x++)
|
|
{
|
|
if(str[x] >= 'a' && str[x] <= 'z')
|
|
str[x] = str[x] - 'a' + 'A';
|
|
}
|
|
}
|
|
|
|
void MDFN_strtoupper(std::string &str)
|
|
{
|
|
size_t x;
|
|
const size_t len = str.length();
|
|
|
|
for(x = 0; x < len; x++)
|
|
{
|
|
if(str[x] >= 'a' && str[x] <= 'z')
|
|
str[x] = str[x] - 'a' + 'A';
|
|
}
|
|
}
|