]> git.tdb.fi Git - libs/core.git/blobdiff - source/path.cpp
Move is_windows_drive into utils.h
[libs/core.git] / source / path.cpp
index 1ff318101aea18a74b7d397b015fc5dfb58736b4..93a0a84630e29aeab758dd547931885f0d999b89 100644 (file)
@@ -1,3 +1,8 @@
+/*
+This file is part of libmsppath
+Copyright © 2006  Mikko Rasa, Mikkosoft Productions
+Distributed under the LGPL
+*/
 #include <msp/strutils.h>
 #include "path.h"
 
@@ -7,11 +12,6 @@ using namespace std;
 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.
 */