Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for fmtUnicode (0.09 sec)

  1. src/fmt/format.go

    }
    
    // fmtBoolean formats a boolean.
    func (f *fmt) fmtBoolean(v bool) {
    	if v {
    		f.padString("true")
    	} else {
    		f.padString("false")
    	}
    }
    
    // fmtUnicode formats a uint64 as "U+0078" or with f.sharp set as "U+0078 'x'".
    func (f *fmt) fmtUnicode(u uint64) {
    	buf := f.intbuf[0:]
    
    	// With default precision set the maximum needed buf length is 18
    	// for formatting -1 with %#U ("U+FFFFFFFFFFFFFFFF") which fits
    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

    	case 'x':
    		p.fmt.fmtInteger(v, 16, isSigned, verb, ldigits)
    	case 'X':
    		p.fmt.fmtInteger(v, 16, isSigned, verb, udigits)
    	case 'c':
    		p.fmt.fmtC(v)
    	case 'q':
    		p.fmt.fmtQc(v)
    	case 'U':
    		p.fmt.fmtUnicode(v)
    	default:
    		p.badVerb(verb)
    	}
    }
    
    // fmtFloat formats a float. The default precision for each verb
    // is specified as last argument in the call to fmt_float.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:22:43 UTC 2024
    - 31.8K bytes
    - Viewed (0)
Back to top