X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fpath.cpp;h=b6942149b927cf3befc95d2b9b5cb674a33d6b3f;hb=6f4ac56492d45c04df0f205252b3c3210e319b4f;hp=ff6713f1f5c7625e66104c812eb4bc999c1e66bb;hpb=66bdaa1f9f833e18a07d061208ce6080f3abac06;p=libs%2Fcore.git diff --git a/source/path.cpp b/source/path.cpp index ff6713f..b694214 100644 --- a/source/path.cpp +++ b/source/path.cpp @@ -4,19 +4,15 @@ Copyright © 2006 Mikko Rasa, Mikkosoft Productions Distributed under the LGPL */ #include +#include "utils.h" #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. */