Function extension

Synopsis

#include <include/fsutil.hpp>

wstring extension(const wstring &path)

Description

No description yet.

Source

Lines 62-66 in src/fsutil.cpp. Line 43 in include/fsutil.hpp.

wstring fsutil::extension( const wstring& path ) {
    wstring name = filename( path, true );
    size_t last_dot = name.find_last_of( L'.' );
    return last_dot != wstring::npos ? name.substr( last_dot + 1 ) : L"";
}





Add Discussion as Guest

Log in