コード例 #1
0
ファイル: myHmi.c プロジェクト: syrozhang/study_git
void  myReadFilename(UINT8* dstname, UINT8* scrame)
{
	UINT8  *longname;
	
	longname = vfsLongFileNameGet(scrame);
	if(strlen(longname)==0)
		strcpy(dstname, scrame);
	else
		strcpy(dstname, longname);
	myUpper(dstname);
}
コード例 #2
0
/**
 * Converts the given String to upper case (using ASCII locale) and returns
 * the address of the string.
 */
char* toUpper(char *s)
{
    for (char *it = s; *it; ++it)
        myUpper(*it);
    return s;
}
コード例 #3
0
/**
 * Converts the given String to upper case (using ASCII locale) and returns
 * the address of the string.
 */
std::string& toUpper(std::string &s)
{
    for (auto it = s.begin(); it != s.end(); ++it)
        myUpper(*it);
    return s;
}