]> git.tdb.fi Git - libs/core.git/blobdiff - source/path.cpp
Win32 tweaks
[libs/core.git] / source / path.cpp
index 1ff318101aea18a74b7d397b015fc5dfb58736b4..b6942149b927cf3befc95d2b9b5cb674a33d6b3f 100644 (file)
@@ -1,17 +1,18 @@
+/*
+This file is part of libmsppath
+Copyright © 2006  Mikko Rasa, Mikkosoft Productions
+Distributed under the LGPL
+*/
 #include <msp/strutils.h>
+#include "utils.h"
 #include "path.h"
+#include "utils.h"
 
 using namespace std;
-#include <iostream>
 
 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.
 */