示例#1
0
文件: flac.cpp 项目: udoprog/momd
bool flac__check(const char* path, const char* ext) {
    std::string string_path(path);
    std::string string_ext(ext);

    if (flac_ext.compare(string_ext) == 0) {
        return true;
    }

    return false;
}
示例#2
0
文件: mpg123.cpp 项目: udoprog/momd
bool mpg123__check(const char* path, const char* ext)
{
    std::string string_path(path);
    std::string string_ext(ext);

    if (mp3_ext.compare(string_ext) == 0) {
        return true;
    }

    if (mp4_ext.compare(string_ext) == 0) {
        return true;
    }

    return false;
}
示例#3
0
	friend inline
	string_path operator + (const string_path& a, const string_path& b)
	noexcept
	{
		return string_path(a, b);
	}