- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 1,399 for fmtF (0.06 sec)
-
src/math/big/ftoa.go
func (x *Float) Append(buf []byte, fmt byte, prec int) []byte { // sign if x.neg { buf = append(buf, '-') } // Inf if x.form == inf { if !x.neg { buf = append(buf, '+') } return append(buf, "Inf"...) } // pick off easy formats switch fmt { case 'b': return x.fmtB(buf) case 'p': return x.fmtP(buf) case 'x': return x.fmtX(buf, prec) } // Algorithm:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 11:59:09 UTC 2023 - 13.5K bytes - Viewed (0) -
src/strconv/ftoa.go
mant |= uint64(1) << flt.mantbits } exp += flt.bias // Pick off easy binary, hex formats. if fmt == 'b' { return fmtB(dst, neg, mant, exp, flt) } if fmt == 'x' || fmt == 'X' { return fmtX(dst, prec, fmt, neg, mant, exp, flt) } if !optimize { return bigFtoa(dst, prec, fmt, neg, mant, exp, flt) } var digs decimalSlice ok := false
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 14:21:28 UTC 2024 - 13.9K bytes - Viewed (0) -
src/cmd/compile/internal/ir/fmt.go
fmt.Fprint(s, "[") if n.Low != nil { fmt.Fprint(s, n.Low) } fmt.Fprint(s, ":") if n.High != nil { fmt.Fprint(s, n.High) } if n.Op().IsSlice3() { fmt.Fprint(s, ":") if n.Max != nil { fmt.Fprint(s, n.Max) } } fmt.Fprint(s, "]") case OSLICEHEADER: n := n.(*SliceHeaderExpr) fmt.Fprintf(s, "sliceheader{%v,%v,%v}", n.Ptr, n.Len, n.Cap)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 05 15:20:28 UTC 2023 - 26K bytes - Viewed (0) -
src/cmd/compile/internal/types/fmt.go
// %S Short syntax: Name only, no matter what. func (s *Sym) Format(f fmt.State, verb rune) { mode := fmtGo switch verb { case 'v', 'S': if verb == 'v' && f.Flag('+') { mode = fmtDebug } fmt.Fprint(f, sconv(s, verb, mode)) default: fmt.Fprintf(f, "%%!%c(*types.Sym=%p)", verb, s) } } func (s *Sym) String() string { return sconv(s, 0, fmtGo) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 12 15:41:17 UTC 2023 - 15.7K bytes - Viewed (0) -
src/fmt/format.go
} } return b } // fmtS formats a string. func (f *fmt) fmtS(s string) { s = f.truncateString(s) f.padString(s) } // fmtBs formats the byte slice b as if it was formatted as string with fmtS. func (f *fmt) fmtBs(b []byte) { b = f.truncate(b) f.pad(b) } // fmtSbx formats a string or byte slice as a hexadecimal encoding of its bytes. func (f *fmt) fmtSbx(s string, b []byte, digits string) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:31:55 UTC 2024 - 13.8K bytes - Viewed (0) -
src/fmt/print.go
case 'v': if p.fmt.sharpV { p.fmt.fmtQ(v) } else { p.fmt.fmtS(v) } case 's': p.fmt.fmtS(v) case 'x': p.fmt.fmtSx(v, ldigits) case 'X': p.fmt.fmtSx(v, udigits) case 'q': p.fmt.fmtQ(v) default: p.badVerb(verb) } } func (p *pp) fmtBytes(v []byte, verb rune, typeString string) { switch verb { case 'v', 'd': if p.fmt.sharpV {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 21:22:43 UTC 2024 - 31.8K bytes - Viewed (0) -
src/runtime/syscall_windows_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 31 16:31:35 UTC 2023 - 32.5K bytes - Viewed (0) -
src/regexp/example_test.go
fmt.Println(a.Split("banana", 1)) fmt.Println(a.Split("banana", 2)) zp := regexp.MustCompile(`z+`) fmt.Println(zp.Split("pizza", -1)) fmt.Println(zp.Split("pizza", 0)) fmt.Println(zp.Split("pizza", 1)) fmt.Println(zp.Split("pizza", 2)) // Output: // [b n n ] // [] // [banana] // [b nana] // [pi a] // [] // [pizza] // [pi a] } func ExampleRegexp_Expand() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 07 00:22:53 UTC 2023 - 11.1K bytes - Viewed (0) -
src/strings/example_test.go
fmt.Println(b.String()) // Output: 3...2...1...ignition } func ExampleCompare() { fmt.Println(strings.Compare("a", "b")) fmt.Println(strings.Compare("a", "a")) fmt.Println(strings.Compare("b", "a")) // Output: // -1 // 0 // 1 } func ExampleContains() { fmt.Println(strings.Contains("seafood", "foo")) fmt.Println(strings.Contains("seafood", "bar")) fmt.Println(strings.Contains("seafood", ""))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 09 22:05:38 UTC 2023 - 10.7K bytes - Viewed (0) -
src/time/example_test.go
// The package also accepts the incorrect but common prefix u for micro. micro2, _ := time.ParseDuration("1us") fmt.Println(hours) fmt.Println(complex) fmt.Printf("There are %.0f seconds in %v.\n", complex.Seconds(), complex) fmt.Printf("There are %d nanoseconds in %v.\n", micro.Nanoseconds(), micro) fmt.Printf("There are %6.2e seconds in %v.\n", micro2.Seconds(), micro2) // Output: // 10h0m0s // 1h10m10s
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 13 01:05:00 UTC 2024 - 22.4K bytes - Viewed (0)