Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for fmtBx (0.03 sec)

  1. src/fmt/format.go

    	if f.widPresent && f.wid > width && f.minus {
    		f.writePadding(f.wid - width)
    	}
    }
    
    // fmtSx formats a string as a hexadecimal encoding of its bytes.
    func (f *fmt) fmtSx(s, digits string) {
    	f.fmtSbx(s, nil, digits)
    }
    
    // fmtBx formats a byte slice as a hexadecimal encoding of its bytes.
    func (f *fmt) fmtBx(b []byte, digits string) {
    	f.fmtSbx("", b, digits)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:31:55 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  2. src/fmt/print.go

    	switch verb {
    	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':
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:22:43 UTC 2024
    - 31.8K bytes
    - Viewed (0)
  3. src/math/big/ftoa.go

    }
    
    // fmtX appends the string of x in the format "0x1." mantissa "p" exponent
    // with a hexadecimal mantissa and a binary exponent, or "0x0p0" if x is zero,
    // and returns the extended buffer.
    // A non-zero mantissa is normalized such that 1.0 <= mantissa < 2.0.
    // The sign of x is ignored, and x must not be an Inf.
    // (The caller handles Inf before invoking fmtX.)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 13.5K bytes
    - Viewed (0)
  4. 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)
Back to top