Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for validOptionalPort (0.18 sec)

  1. src/net/url/url.go

    		if err == nil && f == u.Fragment {
    			return u.RawFragment
    		}
    	}
    	return escape(u.Fragment, encodeFragment)
    }
    
    // validOptionalPort reports whether port is either an empty string
    // or matches /^:\d*$/
    func validOptionalPort(port string) bool {
    	if port == "" {
    		return true
    	}
    	if port[0] != ':' {
    		return false
    	}
    	for _, b := range port[1:] {
    		if b < '0' || b > '9' {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:53 UTC 2024
    - 36.1K bytes
    - Viewed (0)
Back to top