Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 110 for pathend (0.13 sec)

  1. src/debug/gosym/symtab.go

    	// that was removed, so pathend will apply correctly to name and s.Name.
    	pathend := strings.LastIndex(name, "/")
    	if pathend < 0 {
    		pathend = 0
    	}
    	// Find the first dot after pathend (or from the beginning, if there was
    	// no slash in name).
    	l := strings.Index(name[pathend:], ".")
    	// Find the last dot after pathend (or the beginning).
    	r := strings.LastIndex(name[pathend:], ".")
    	if l == -1 || r == -1 || l == r {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:33:30 UTC 2023
    - 17.9K bytes
    - Viewed (0)
  2. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/RecordedRequest.kt

          this.handshake = null
        }
    
        if (requestLine.isNotEmpty()) {
          val methodEnd = requestLine.indexOf(' ')
          val pathEnd = requestLine.indexOf(' ', methodEnd + 1)
          this.method = requestLine.substring(0, methodEnd)
          var path = requestLine.substring(methodEnd + 1, pathEnd)
          if (!path.startsWith("/")) {
            path = "/"
          }
          this.path = path
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  3. mockwebserver/src/main/kotlin/mockwebserver3/RecordedRequest.kt

        }
    
        if (requestLine.isNotEmpty()) {
          val methodEnd = requestLine.indexOf(' ')
          val pathEnd = requestLine.indexOf(' ', methodEnd + 1)
          this.method = requestLine.substring(0, methodEnd)
          var path = requestLine.substring(methodEnd + 1, pathEnd)
          if (!path.startsWith("/")) {
            path = "/"
          }
          this.path = path
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Tue Jan 23 14:31:42 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/HttpUrl.kt

        get() {
          val pathStart = url.indexOf('/', scheme.length + 3)
          val pathEnd = url.delimiterOffset("?#", pathStart, url.length)
          val result = mutableListOf<String>()
          var i = pathStart
          while (i < pathEnd) {
            i++ // Skip the '/'.
            val segmentEnd = url.delimiterOffset('/', i, pathEnd)
            result.add(url.substring(i, segmentEnd))
            i = segmentEnd
          }
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Tue Jan 09 12:33:05 UTC 2024
    - 63.5K bytes
    - Viewed (0)
  5. src/cmd/go/internal/script/cmds.go

    	}
    
    	var pathExt []string
    	var searchExt bool
    	var isExecutable func(os.FileInfo) bool
    	if runtime.GOOS == "windows" {
    		// Use the test process's PathExt instead of the script's.
    		// If PathExt is set in the command's environment, cmd.Start fails with
    		// "parameter is invalid". Not sure why.
    		// If the command already has an extension in PathExt (like "cmd.exe")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 28.5K bytes
    - Viewed (0)
  6. okhttp-java-net-cookiejar/src/main/kotlin/okhttp3/java/net/cookiejar/JavaNetCookieJar.kt

        var pos = 0
        val limit = header.length
        var pairEnd: Int
        while (pos < limit) {
          pairEnd = header.delimiterOffset(";,", pos, limit)
          val equalsSign = header.delimiterOffset('=', pos, pairEnd)
          val name = header.trimSubstring(pos, equalsSign)
          if (name.startsWith("$")) {
            pos = pairEnd + 1
            continue
          }
    
          // We have either name=value or just a name.
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Apr 06 04:10:43 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  7. src/os/removeall_at.go

    		return nil
    	}
    	if err != nil {
    		return err
    	}
    	defer parent.Close()
    
    	if err := removeAllFrom(parent, base); err != nil {
    		if pathErr, ok := err.(*PathError); ok {
    			pathErr.Path = parentDir + string(PathSeparator) + pathErr.Path
    			err = pathErr
    		}
    		return err
    	}
    	return nil
    }
    
    func removeAllFrom(parent *File, base string) error {
    	parentFd := int(parent.Fd())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:09:26 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  8. src/os/exec/lp_windows_test.go

    		PATHEXT:   `.COM;.EXE;.BAT`,
    		files:     []string{`p1\a.bat`, `p2\a.exe`},
    		searchFor: `a`,
    		want:      `p1\a.bat`,
    	},
    	{
    		name:      "first PATHEXT entry",
    		PATHEXT:   `.COM;.EXE;.BAT`,
    		files:     []string{`p1\a.bat`, `p1\a.exe`, `p2\a.bat`, `p2\a.exe`},
    		searchFor: `a`,
    		want:      `p1\a.exe`,
    	},
    	{
    		name:      "ignore dir with PATHEXT extension",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 13 19:38:12 UTC 2023
    - 16.3K bytes
    - Viewed (0)
  9. src/syscall/fs_wasip1.go

    	if path == "" {
    		return EINVAL
    	}
    	dirFd, pathPtr, pathLen := preparePath(path)
    	errno := path_unlink_file(dirFd, pathPtr, pathLen)
    	return errnoErr(errno)
    }
    
    func Rmdir(path string) error {
    	if path == "" {
    		return EINVAL
    	}
    	dirFd, pathPtr, pathLen := preparePath(path)
    	errno := path_remove_directory(dirFd, pathPtr, pathLen)
    	return errnoErr(errno)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 24.1K bytes
    - Viewed (0)
  10. src/os/exec/lp_windows.go

    func LookPath(file string) (string, error) {
    	return lookPath(file, pathExt())
    }
    
    // lookExtensions finds windows executable by its dir and path.
    // It uses LookPath to try appropriate extensions.
    // lookExtensions does not search PATH, instead it converts `prog` into `.\prog`.
    //
    // If the path already has an extension found in PATHEXT,
    // lookExtensions returns it directly without searching
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:33:12 UTC 2024
    - 6K bytes
    - Viewed (0)
Back to top