OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libgo/] [go/] [path/] [filepath/] [path_plan9.go] - Blame information for rev 747

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 747 jeremybenn
// Copyright 2010 The Go Authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style
3
// license that can be found in the LICENSE file.
4
 
5
package filepath
6
 
7
import "strings"
8
 
9
// IsAbs returns true if the path is absolute.
10
func IsAbs(path string) bool {
11
        return strings.HasPrefix(path, "/") || strings.HasPrefix(path, "#")
12
}
13
 
14
// VolumeName returns the leading volume name on Windows.
15
// It returns "" elsewhere
16
func VolumeName(path string) string {
17
        return ""
18
}
19
 
20
// HasPrefix tests whether the path p begins with prefix.
21
func HasPrefix(p, prefix string) bool {
22
        return strings.HasPrefix(p, prefix)
23
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.