- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 1,732 for fmtX (0.07 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) -
test/map.go
// test len if len(mib) != count { panic(fmt.Sprintf("len(mib) = %d\n", len(mib))) } if len(mii) != count { panic(fmt.Sprintf("len(mii) = %d\n", len(mii))) } if len(mfi) != count { panic(fmt.Sprintf("len(mfi) = %d\n", len(mfi))) } if len(mif) != count { panic(fmt.Sprintf("len(mif) = %d\n", len(mif))) } if len(msi) != count { panic(fmt.Sprintf("len(msi) = %d\n", len(msi))) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 06 21:02:55 UTC 2014 - 14.9K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/errors/errors_test.go
nil, }, { aggregate{fmt.Errorf("abc")}, aggregate{fmt.Errorf("abc")}, }, { aggregate{fmt.Errorf("abc"), fmt.Errorf("def"), fmt.Errorf("ghi")}, aggregate{fmt.Errorf("abc"), fmt.Errorf("def"), fmt.Errorf("ghi")}, }, { aggregate{aggregate{fmt.Errorf("abc")}}, aggregate{fmt.Errorf("abc")}, }, { aggregate{aggregate{aggregate{fmt.Errorf("abc")}}},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Jul 24 13:16:21 UTC 2022 - 12.7K 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)