Home | History | Annotate | Download | only in net

Lines Matching defs:String

260 // String returns the string form of the IP address ip.
266 func (ip IP) String() string {
320 return string(b)
323 func hexString(b []byte) string {
328 return string(s)
331 // ipEmptyString is like ip.String except that it returns
332 // an empty string when ip is unset.
333 func ipEmptyString(ip IP) string {
337 return ip.String()
341 // The encoding is the same as returned by String.
349 return []byte(ip.String()), nil
359 s := string(text)
440 // String returns the hexadecimal form of m, with no punctuation.
441 func (m IPMask) String() string {
490 func (n *IPNet) Network() string { return "ip+net" }
492 // String returns the CIDR notation of n like "192.0.2.1/24"
495 // string which consists of an IP address, followed by a slash
498 func (n *IPNet) String() string {
505 return nn.String() + "/" + m.String()
507 return nn.String() + "/" + uitoa(uint(l))
511 func parseIPv4(s string) IP {
541 func parseIPv6(s string, zoneAllowed bool) (ip IP, zone string) {
596 // Stop at end of string.
621 // Must have used entire string.
646 // The string s can be in dotted decimal ("192.0.2.1")
650 func ParseIP(s string) IP {
671 func ParseCIDR(s string) (IP, *IPNet, error) {