Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 309 for white (0.19 sec)

  1. src/bufio/scan_test.go

    	"unicode"
    	"unicode/utf8"
    )
    
    const smallMaxTokenSize = 256 // Much smaller for more efficient testing.
    
    // Test white space table matches the Unicode definition.
    func TestSpace(t *testing.T) {
    	for r := rune(0); r <= utf8.MaxRune; r++ {
    		if IsSpace(r) != unicode.IsSpace(r) {
    			t.Fatalf("white space property disagrees: %#U should be %t", r, unicode.IsSpace(r))
    		}
    	}
    }
    
    var scanTests = []string{
    	"",
    	"a",
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Sep 22 16:22:42 GMT 2023
    - 14.3K bytes
    - Viewed (0)
  2. internal/config/certs.go

    	// Read certificate file.
    	var data []byte
    	if data, err = os.ReadFile(certFile); err != nil {
    		return nil, err
    	}
    
    	// Trimming leading and tailing white spaces.
    	data = bytes.TrimSpace(data)
    
    	// Parse all certs in the chain.
    	current := data
    	for len(current) > 0 {
    		var pemBlock *pem.Block
    		if pemBlock, current = pem.Decode(current); pemBlock == nil {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Sep 04 19:57:37 GMT 2023
    - 3.8K bytes
    - Viewed (0)
  3. src/cmd/cgo/gcc.go

    	if *debugGcc {
    		fmt.Fprintf(os.Stderr, "$ %s <<EOF\n", strings.Join(args, " "))
    		os.Stderr.Write(stdin)
    		fmt.Fprint(os.Stderr, "EOF\n")
    	}
    	stdout, stderr, ok := run(stdin, args)
    	if *debugGcc {
    		os.Stderr.Write(stdout)
    		os.Stderr.Write(stderr)
    	}
    	if !ok {
    		os.Stderr.Write(stderr)
    		os.Exit(2)
    	}
    	return string(stdout), string(stderr)
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
  4. src/bufio/scan.go

    	if atEOF {
    		return len(data), dropCR(data), nil
    	}
    	// Request more data.
    	return 0, nil, nil
    }
    
    // isSpace reports whether the character is a Unicode white space character.
    // We avoid dependency on the unicode package, but check validity of the implementation
    // in the tests.
    func isSpace(r rune) bool {
    	if r <= '\u00FF' {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Oct 23 09:06:30 GMT 2023
    - 14.2K bytes
    - Viewed (0)
  5. logger/logger.go

    // Colors
    const (
    	Reset       = "\033[0m"
    	Red         = "\033[31m"
    	Green       = "\033[32m"
    	Yellow      = "\033[33m"
    	Blue        = "\033[34m"
    	Magenta     = "\033[35m"
    	Cyan        = "\033[36m"
    	White       = "\033[37m"
    	BlueBold    = "\033[34;1m"
    	MagentaBold = "\033[35;1m"
    	RedBold     = "\033[31;1m"
    	YellowBold  = "\033[33;1m"
    )
    
    // LogLevel log level
    type LogLevel int
    
    const (
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Tue Nov 07 02:19:41 GMT 2023
    - 5.8K bytes
    - Viewed (0)
  6. cmd/streaming-signature-v4.go

    	// Not all clients send that.
    	trailerRaw := valueBuffer.Bytes()
    	if len(trailerRaw) > 0 && trailerRaw[len(trailerRaw)-1] != '\n' {
    		valueBuffer.Write([]byte{'\n'})
    	}
    	sig = sig[len("x-amz-trailer-signature:"):]
    	sig = bytes.TrimSpace(sig)
    	cr.chunkSHA256Writer.Write(valueBuffer.Bytes())
    	wantSig := cr.getTrailerChunkSignature()
    	if !compareSignatureV4(string(sig), wantSig) {
    		if cr.debug {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 18.2K bytes
    - Viewed (0)
  7. src/bytes/bytes.go

    // Fields interprets s as a sequence of UTF-8-encoded code points.
    // It splits the slice s around each instance of one or more consecutive white space
    // characters, as defined by unicode.IsSpace, returning a slice of subslices of s or an
    // empty slice if s contains only white space.
    func Fields(s []byte) [][]byte {
    	// First count the fields.
    	// This is an exact count if s is ASCII, otherwise it is an approximation.
    	n := 0
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Feb 19 19:51:15 GMT 2024
    - 33.8K bytes
    - Viewed (0)
  8. misc/ios/go_ios_exec.go

    	if not lldb.SBProcess.EventIsProcessEvent(event):
    		continue
    	if running:
    		# Pass through stdout and stderr.
    		while True:
    			out = process.GetSTDOUT(8192)
    			if not out:
    				break
    			sys.stdout.write(out)
    		while True:
    			out = process.GetSTDERR(8192)
    			if not out:
    				break
    			sys.stderr.write(out)
    	state = process.GetStateFromEvent(event)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Apr 11 16:34:30 GMT 2022
    - 23.4K bytes
    - Viewed (0)
  9. internal/dsync/drwmutex.go

    		lockFound := false
    		for _, uid := range dm.writeLocks {
    			if isLocked(uid) {
    				lockFound = true
    				break
    			}
    		}
    		if !lockFound {
    			panic("Trying to Unlock() while no Lock() is active")
    		}
    
    		// Copy write locks to stack array
    		copy(locks, dm.writeLocks)
    	}
    
    	// Tolerance is not set, defaults to half of the locker clients.
    	tolerance := len(restClnts) / 2
    
    	isReadLock := false
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 19.7K bytes
    - Viewed (0)
  10. src/archive/zip/writer.go

    	crc32     hash.Hash32
    	closed    bool
    }
    
    func (w *fileWriter) Write(p []byte) (int, error) {
    	if w.closed {
    		return 0, errors.New("zip: write to closed file")
    	}
    	if w.raw {
    		return w.zipw.Write(p)
    	}
    	w.crc32.Write(p)
    	return w.rawCount.Write(p)
    }
    
    func (w *fileWriter) close() error {
    	if w.closed {
    		return errors.New("zip: file closed twice")
    	}
    	w.closed = true
    	if w.raw {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 04 14:28:57 GMT 2024
    - 19.3K bytes
    - Viewed (0)
Back to top