Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for widPresent (0.21 sec)

  1. src/fmt/format.go

    			// Only a leading 0x or 0X will be added for the whole string.
    			width += 2
    		}
    	} else { // The byte slice or string that should be encoded is empty.
    		if f.widPresent {
    			f.writePadding(f.wid)
    		}
    		return
    	}
    	// Handle padding to the left.
    	if f.widPresent && f.wid > width && !f.minus {
    		f.writePadding(f.wid - width)
    	}
    	// Write the encoding directly into the output buffer.
    	buf := *f.buf
    	if f.sharp {
    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

    		argNum, i, afterIndex = p.argNumber(argNum, format, i, len(a))
    
    		// Do we have width?
    		if i < end && format[i] == '*' {
    			i++
    			p.fmt.wid, p.fmt.widPresent, argNum = intFromArg(a, argNum)
    
    			if !p.fmt.widPresent {
    				p.buf.writeString(badWidthString)
    			}
    
    			// We have a negative width, so take its value and ensure
    			// that the minus flag is set
    			if p.fmt.wid < 0 {
    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/fmt/scan.go

    			}
    			// Otherwise at EOF; "too many operands" error handled below
    			break
    		}
    		i++ // % is one byte
    
    		// do we have 20 (width)?
    		var widPresent bool
    		s.maxWid, widPresent, i = parsenum(format, i, end)
    		if !widPresent {
    			s.maxWid = hugeWid
    		}
    
    		c, w := utf8.DecodeRuneInString(format[i:])
    		i += w
    
    		if c != 'c' {
    			s.SkipSpace()
    		}
    		if c == '%' {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 21:56:20 UTC 2024
    - 31.9K bytes
    - Viewed (0)
  4. internal/crypto/sse-s3.go

    	// Otherwise, the metadata is corrupted.
    	keyID, idPresent := metadata[MetaKeyID]
    	b64KMSSealedKey, kmsKeyPresent := metadata[MetaDataEncryptionKey]
    	if !idPresent && kmsKeyPresent {
    		return keyID, kmsKey, sealedKey, Errorf("The object metadata is missing the internal KMS key-ID for SSE-S3")
    	}
    	if idPresent && !kmsKeyPresent {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue May 07 23:55:37 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  5. internal/crypto/sse-kms.go

    	// Otherwise, the metadata is corrupted.
    	keyID, idPresent := metadata[MetaKeyID]
    	b64KMSSealedKey, kmsKeyPresent := metadata[MetaDataEncryptionKey]
    	if !idPresent && kmsKeyPresent {
    		return keyID, kmsKey, sealedKey, ctx, Errorf("The object metadata is missing the internal KMS key-ID for SSE-S3")
    	}
    	if idPresent && !kmsKeyPresent {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue May 07 23:55:37 UTC 2024
    - 8.5K bytes
    - Viewed (0)
Back to top