コード例 #1
0
ファイル: Utils.cpp プロジェクト: hehe24h/srt-to-vtt-cl
void Utils::rtrim(wstring& s, const wchar_t c)
{
    while (!s.empty() && s.back() == c)
    {
        s.pop_back();
    }
}
コード例 #2
0
void ChkFolderPath(wstring& strPath)
{
	if( strPath.empty() == false && strPath.back() == L'\\' ){
		strPath.pop_back();
	}
}