Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include <fcntl.h> | 5 #include <fcntl.h> |
| 6 #include <io.h> | 6 #include <io.h> |
| 7 #include <stdio.h> | 7 #include <stdio.h> |
| 8 #include <string.h> | 8 #include <string.h> |
| 9 #include <sys/stat.h> | 9 #include <sys/stat.h> |
| 10 | 10 |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 114 bool File::IsAbsolutePath(const char* pathname) { | 114 bool File::IsAbsolutePath(const char* pathname) { |
| 115 // Should we consider network paths? | 115 // Should we consider network paths? |
| 116 if (pathname == NULL) return false; | 116 if (pathname == NULL) return false; |
| 117 return (strlen(pathname) > 2) && | 117 return (strlen(pathname) > 2) && |
| 118 (pathname[1] == ':') && | 118 (pathname[1] == ':') && |
| 119 (pathname[2] == '\\'); | 119 (pathname[2] == '\\'); |
| 120 } | 120 } |
| 121 | 121 |
| 122 | 122 |
| 123 char* File::GetCanonicalPath(const char* pathname) { | 123 char* File::GetCanonicalPath(const char* pathname) { |
| 124 UNIMPLEMENTED(); | 124 // TODO(176): Need to implement this. |
|
regis
2011/10/25 21:18:14
Is 176 the correct issue number?
siva
2011/10/25 21:55:26
Oh it is 172, I will correct this.
On 2011/10/25
| |
| 125 return strdup(pathname); | 125 return strdup(pathname); |
| 126 } | 126 } |
| 127 | 127 |
| 128 | 128 |
| 129 const char* File::PathSeparator() { | 129 const char* File::PathSeparator() { |
| 130 return "\\"; | 130 return "\\"; |
| 131 } | 131 } |
| 132 | 132 |
| 133 | 133 |
| 134 const char* File::StringEscapedPathSeparator() { | 134 const char* File::StringEscapedPathSeparator() { |
| 135 return "\\\\"; | 135 return "\\\\"; |
| 136 } | 136 } |
| OLD | NEW |