- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for precPresent (0.24 sec)
-
src/fmt/format.go
func (f *fmt) truncateString(s string) string { if f.precPresent { n := f.prec for i := range s { n-- if n < 0 { return s[:i] } } } return s } // truncate truncates the byte slice b as a string of the specified precision, if present. func (f *fmt) truncate(b []byte) []byte { if f.precPresent { n := f.prec for i := 0; i < len(b); { n--
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
i++ p.fmt.prec, p.fmt.precPresent, argNum = intFromArg(a, argNum) // Negative precision arguments don't make sense if p.fmt.prec < 0 { p.fmt.prec = 0 p.fmt.precPresent = false } if !p.fmt.precPresent { p.buf.writeString(badPrecString) } afterIndex = false } else { p.fmt.prec, p.fmt.precPresent, i = parsenum(format, i, end)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 21:22:43 UTC 2024 - 31.8K bytes - Viewed (0)