func os.IsPathSeparator
29 uses
os (current package)
file.go#L704: if IsPathSeparator(dir[len(dir)-1]) {
path.go#L30: for i > 0 && IsPathSeparator(path[i-1]) { // Skip trailing path separator.
path.go#L35: for j > 0 && !IsPathSeparator(path[j-1]) { // Scan backward over element.
path.go#L75: if len(path) >= 2 && path[len(path)-1] == '.' && IsPathSeparator(path[len(path)-2]) {
path_unix.go#L15: func IsPathSeparator(c uint8) bool {
tempfile.go#L61: if IsPathSeparator(pattern[i]) {
tempfile.go#L114: if len(dir) > 0 && IsPathSeparator(dir[len(dir)-1]) {
path/filepath
match.go#L314: case vollen+1 == len(path) && os.IsPathSeparator(path[len(path)-1]): // /, \, C:\ and C:/
path.go#L103: if volLen > 1 && os.IsPathSeparator(originalPath[0]) && os.IsPathSeparator(originalPath[1]) {
path.go#L109: rooted := os.IsPathSeparator(path[0])
path.go#L126: case os.IsPathSeparator(path[r]):
path.go#L129: case path[r] == '.' && (r+1 == n || os.IsPathSeparator(path[r+1])):
path.go#L132: case path[r] == '.' && path[r+1] == '.' && (r+2 == n || os.IsPathSeparator(path[r+2])):
path.go#L139: for out.w > dotdot && !os.IsPathSeparator(out.index(out.w)) {
path.go#L158: for ; r < n && !os.IsPathSeparator(path[r]); r++ {
path.go#L249: for i >= len(vol) && !os.IsPathSeparator(path[i]) {
path.go#L271: for i := len(path) - 1; i >= 0 && !os.IsPathSeparator(path[i]); i-- {
path.go#L621: for len(path) > 0 && os.IsPathSeparator(path[len(path)-1]) {
path.go#L628: for i >= 0 && !os.IsPathSeparator(path[i]) {
path.go#L650: for i >= len(vol) && !os.IsPathSeparator(path[i]) {
symlink.go#L19: if volLen < len(path) && os.IsPathSeparator(path[volLen]) {
symlink.go#L26: for start < len(path) && os.IsPathSeparator(path[start]) {
symlink.go#L30: for end < len(path) && !os.IsPathSeparator(path[end]) {
symlink.go#L54: if os.IsPathSeparator(dest[r]) {
symlink.go#L76: if len(dest) > volumeNameLen(dest) && !os.IsPathSeparator(dest[len(dest)-1]) {
symlink.go#L119: if v < len(link) && os.IsPathSeparator(link[v]) {
symlink.go#L125: } else if len(link) > 0 && os.IsPathSeparator(link[0]) {
symlink.go#L136: if os.IsPathSeparator(dest[r]) {
|
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |