X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fpath.cpp;h=99961379977d65684da8f3209bc65d61570039e4;hp=ff6713f1f5c7625e66104c812eb4bc999c1e66bb;hb=17667b5d28e72e99fff4609bf601c7644d79d071;hpb=66bdaa1f9f833e18a07d061208ce6080f3abac06 diff --git a/source/path.cpp b/source/path.cpp index ff6713f..9996137 100644 --- a/source/path.cpp +++ b/source/path.cpp @@ -5,18 +5,13 @@ Distributed under the LGPL */ #include #include "path.h" +#include "utils.h" using namespace std; -#include namespace Msp { namespace Path { -bool is_windows_drive(const std::string &p) -{ - return (p.size()==2 && ((p[0]>='A' && p[0]<='Z') || (p[0]>='a' && p[0]<='z')) && p[1]==':'); -} - /** Returns the number of components in the path. */