Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 56 for true (0.15 sec)

  1. src/bufio/example_test.go

    	for scanner.Scan() {
    		fmt.Println(len(scanner.Bytes()) == 6)
    	}
    	if err := scanner.Err(); err != nil {
    		fmt.Fprintln(os.Stderr, "shouldn't see an error scanning a string")
    	}
    	// Output:
    	// true
    }
    
    // Use a Scanner to implement a simple word-count utility by scanning the
    // input as a sequence of space-delimited tokens.
    func ExampleScanner_words() {
    	// An artificial input source.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Oct 23 09:06:30 GMT 2023
    - 4.9K bytes
    - Viewed (0)
  2. src/cmd/asm/internal/asm/parse.go

    			if p.sawCode {
    				p.errorf("misplaced //go:build comment")
    			}
    			continue
    		}
    		if tok != '\n' {
    			p.sawCode = true
    		}
    		if tok == '#' {
    			// A leftover wisp of a #include/#define/etc,
    			// to let us know that p.sawCode should be true now.
    			// Otherwise ignored.
    			continue
    		}
    		return tok
    	}
    }
    
    // line consumes a single assembly line from p.lex of the form
    //
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Feb 21 14:34:57 GMT 2024
    - 36.9K bytes
    - Viewed (0)
  3. src/cmd/asm/internal/lex/input.go

    	case "else":
    		in.else_()
    	case "endif":
    		in.endif()
    	case "ifdef":
    		in.ifdef(true)
    	case "ifndef":
    		in.ifdef(false)
    	case "include":
    		in.include()
    	case "line":
    		in.line()
    	case "undef":
    		in.undef()
    	default:
    		in.Error("unexpected token after '#':", in.Stack.Text())
    	}
    	return true
    }
    
    // macroName returns the name for the macro being referenced.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 12.6K bytes
    - Viewed (0)
  4. src/bytes/bytes.go

    func IndexFunc(s []byte, f func(r rune) bool) int {
    	return indexFunc(s, f, true)
    }
    
    // LastIndexFunc interprets s as a sequence of UTF-8-encoded code points.
    // It returns the byte index in s of the last Unicode
    // code point satisfying f(c), or -1 if none do.
    func LastIndexFunc(s []byte, f func(r rune) bool) int {
    	return lastIndexFunc(s, f, true)
    }
    
    // indexFunc is the same as IndexFunc except that if
    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)
  5. src/builtin/builtin.go

    for the language's special identifiers.
    */
    package builtin
    
    import "cmp"
    
    // bool is the set of boolean values, true and false.
    type bool bool
    
    // true and false are the two untyped boolean values.
    const (
    	true  = 0 == 0 // Untyped bool.
    	false = 0 != 0 // Untyped bool.
    )
    
    // uint8 is the set of all unsigned 8-bit integers.
    // Range: 0 through 255.
    type uint8 uint8
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  6. src/archive/tar/writer.go

    	plen := i                 // plen is length of prefix
    	if i <= 0 || nlen > nameSize || nlen == 0 || plen > prefixSize {
    		return "", "", false
    	}
    	return name[:i], name[i+1:], true
    }
    
    // Write writes to the current file in the tar archive.
    // Write returns the error [ErrWriteTooLong] if more than
    // Header.Size bytes are written after [Writer.WriteHeader].
    //
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 19.6K bytes
    - Viewed (0)
  7. src/archive/tar/strconv_test.go

    		width int
    		ok    bool
    	}{
    		{+1, 8, true},
    		{0, 8, true},
    		{-1, 8, true},
    		{1 << 56, 8, false},
    		{(1 << 56) - 1, 8, true},
    		{-1 << 56, 8, true},
    		{(-1 << 56) - 1, 8, false},
    		{121654, 8, true},
    		{-9849849, 8, true},
    		{math.MaxInt64, 9, true},
    		{0, 9, true},
    		{math.MinInt64, 9, true},
    		{math.MaxInt64, 12, true},
    		{0, 12, true},
    		{math.MinInt64, 12, true},
    	}
    
    	for _, v := range vectors {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Feb 09 05:28:50 GMT 2021
    - 14K bytes
    - Viewed (0)
  8. src/cmd/asm/internal/arch/ppc64.go

    		ppc64.ASUBZE:
    		return true
    	}
    	return false
    }
    
    func ppc64RegisterNumber(name string, n int16) (int16, bool) {
    	switch name {
    	case "CR":
    		if 0 <= n && n <= 7 {
    			return ppc64.REG_CR0 + n, true
    		}
    	case "A":
    		if 0 <= n && n <= 8 {
    			return ppc64.REG_A0 + n, true
    		}
    	case "VS":
    		if 0 <= n && n <= 63 {
    			return ppc64.REG_VS0 + n, true
    		}
    	case "V":
    		if 0 <= n && n <= 31 {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Sep 07 20:53:33 GMT 2022
    - 2.2K bytes
    - Viewed (0)
  9. src/cmd/asm/internal/arch/s390x.go

    		"CLGIJ",
    		"CALL",
    		"JMP":
    		return true
    	}
    	return false
    }
    
    func s390xRegisterNumber(name string, n int16) (int16, bool) {
    	switch name {
    	case "AR":
    		if 0 <= n && n <= 15 {
    			return s390x.REG_AR0 + n, true
    		}
    	case "F":
    		if 0 <= n && n <= 15 {
    			return s390x.REG_F0 + n, true
    		}
    	case "R":
    		if 0 <= n && n <= 15 {
    			return s390x.REG_R0 + n, true
    		}
    	case "V":
    		if 0 <= n && n <= 31 {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Oct 17 14:55:25 GMT 2019
    - 1.2K bytes
    - Viewed (0)
  10. src/archive/zip/zip_test.go

    		return false
    	}
    
    	size := b.uint64()
    	if size != directory64EndLen-12 {
    		t.Errorf("expected length of %d, got %d", directory64EndLen-12, size)
    	}
    	return true
    }
    
    // Zip64 is required if the total size of the records is uint32max.
    func TestZip64LargeDirectory(t *testing.T) {
    	if runtime.GOARCH == "wasm" {
    		t.Skip("too slow on wasm")
    	}
    	if testing.Short() {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 19.5K bytes
    - Viewed (0)
Back to top