mirror of
https://github.com/opencv/opencv.git
synced 2026-07-31 00:03:03 +04:00
videoio: plugins support on Win32
This commit is contained in:
committed by
Alexander Alekhin
parent
66d7956e67
commit
7b099e0fe2
@@ -91,6 +91,14 @@ CV_EXPORTS cv::String getParent(const cv::String &path)
|
||||
return std::string(path, 0, loc);
|
||||
}
|
||||
|
||||
CV_EXPORTS std::wstring getParent(const std::wstring& path)
|
||||
{
|
||||
std::wstring::size_type loc = path.find_last_of(L"/\\");
|
||||
if (loc == std::wstring::npos)
|
||||
return std::wstring();
|
||||
return std::wstring(path, 0, loc);
|
||||
}
|
||||
|
||||
#if OPENCV_HAVE_FILESYSTEM_SUPPORT
|
||||
|
||||
cv::String canonical(const cv::String& path)
|
||||
|
||||
Reference in New Issue
Block a user