]> git.tdb.fi Git - libs/core.git/blobdiff - source/path.cpp
Win32 tweaks
[libs/core.git] / source / path.cpp
index ff6713f1f5c7625e66104c812eb4bc999c1e66bb..b6942149b927cf3befc95d2b9b5cb674a33d6b3f 100644 (file)
@@ -4,19 +4,15 @@ 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.
 */