X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fpath.cpp;h=99961379977d65684da8f3209bc65d61570039e4;hp=1ff318101aea18a74b7d397b015fc5dfb58736b4;hb=17667b5d28e72e99fff4609bf601c7644d79d071;hpb=9a8993b390544fb3e6b23ed562e2a2d4a62e4a7c diff --git a/source/path.cpp b/source/path.cpp index 1ff3181..9996137 100644 --- a/source/path.cpp +++ b/source/path.cpp @@ -1,17 +1,17 @@ +/* +This file is part of libmsppath +Copyright © 2006 Mikko Rasa, Mikkosoft Productions +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. */