Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 628 for June (0.04 sec)

  1. src/cmd/vendor/golang.org/x/term/terminal.go

    		}
    	}
    
    	return utf8.RuneError, b
    }
    
    // queue appends data to the end of t.outBuf
    func (t *Terminal) queue(data []rune) {
    	t.outBuf = append(t.outBuf, []byte(string(data))...)
    }
    
    var space = []rune{' '}
    
    func isPrintable(key rune) bool {
    	isInSurrogateArea := key >= 0xd800 && key <= 0xdbff
    	return key >= 32 && !isInSurrogateArea
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 22 17:16:14 UTC 2022
    - 22.5K bytes
    - Viewed (0)
  2. src/internal/fuzz/encoding.go

    			} else {
    				fmt.Fprintf(b, "%T(%v)\n", t, t)
    			}
    		case string:
    			fmt.Fprintf(b, "string(%q)\n", t)
    		case rune: // int32
    			// Although rune and int32 are represented by the same type, only a subset
    			// of valid int32 values can be expressed as rune literals. Notably,
    			// negative numbers, surrogate halves, and values above unicode.MaxRune
    			// have no quoted representation.
    			//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 30 16:39:12 UTC 2022
    - 11K bytes
    - Viewed (0)
  3. src/strings/example_test.go

    func ExampleContainsFunc() {
    	f := func(r rune) bool {
    		return r == 'a' || r == 'e' || r == 'i' || r == 'o' || r == 'u'
    	}
    	fmt.Println(strings.ContainsFunc("hello", f))
    	fmt.Println(strings.ContainsFunc("rhythms", f))
    	// Output:
    	// true
    	// false
    }
    
    func ExampleCount() {
    	fmt.Println(strings.Count("cheese", "e"))
    	fmt.Println(strings.Count("five", "")) // before & after each rune
    	// Output:
    	// 3
    	// 5
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 09 22:05:38 UTC 2023
    - 10.7K bytes
    - Viewed (0)
  4. src/internal/types/testdata/spec/conversions.go

    func _[T ~string](x []rune) T                           { return T(x) }
    func _[X ~[]byte, T ~string](x X) T                     { return T(x) }
    func _[X ~[]rune, T ~string](x X) T                     { return T(x) }
    func _[X Integer | ~[]byte | ~[]rune, T ~string](x X) T { return T(x) }
    func _[X Integer | ~[]byte | ~[]rune, T ~*string](x X) T {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:27 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  5. test/alias.go

    // (uint8 vs byte, int32 vs. rune).
    // Does not compile.
    
    package main
    
    import (
    	"fmt"
    	"unicode/utf8"
    )
    
    func f(byte)  {}
    func g(uint8) {}
    
    func main() {
    	var x float64
    	f(x) // ERROR "byte"
    	g(x) // ERROR "uint8"
    
    	// Test across imports.
    
    	var ff fmt.Formatter
    	var fs fmt.State
    	ff.Format(fs, x) // ERROR "rune"
    
    	utf8.RuneStart(x) // ERROR "byte"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 588 bytes
    - Viewed (0)
  6. src/strconv/makeisprint.go

    	if i >= len(rang) || rr < rang[i&^1] || rang[i|1] < rr {
    		return false
    	}
    	_, found := slices.BinarySearch(except, rr)
    	return !found
    }
    
    func scan(min, max rune) (rang, except []uint32) {
    	lo := rune(-1)
    	for i := min; ; i++ {
    		if (i > max || !unicode.IsPrint(i)) && lo >= 0 {
    			// End range, but avoid flip flop.
    			if i+1 <= max && unicode.IsPrint(i+1) {
    				except = append(except, uint32(i))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 11 18:56:17 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/stringintconv/string.go

    				switch u.Kind() {
    				case types.Byte, types.Rune, types.UntypedRune:
    					continue
    				}
    				V0 = vt
    				break
    			}
    		}
    
    		if V0 == nil {
    			// No source types are non-byte or rune integer types.
    			return
    		}
    
    		convertibleToRune := true // if true, we can suggest a fix
    		for _, t := range vtypes {
    			if !types.ConvertibleTo(t, types.Typ[types.Rune]) {
    				convertibleToRune = false
    				break
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  8. src/internal/types/testdata/fixedbugs/issue58671.go

    package p
    
    func g[P any](...P) P { var x P; return x }
    
    func _() {
    	var (
    		_ int        = g(1, 2)
    		_ rune       = g(1, 'a')
    		_ float64    = g(1, 'a', 2.3)
    		_ float64    = g('a', 2.3)
    		_ complex128 = g(2.3, 'a', 1i)
    	)
    	g(true, 'a' /* ERROR "mismatched types untyped bool and untyped rune (cannot infer P)" */)
    	g(1, "foo" /* ERROR "mismatched types untyped int and untyped string (cannot infer P)" */)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 19 01:56:58 UTC 2023
    - 668 bytes
    - Viewed (0)
  9. tools/bug-report/pkg/util/path/path.go

    func (p Path) String() string {
    	return strings.Join(p, pathSeparator)
    }
    
    // splitEscaped splits a string using the rune r as a separator. It does not split on r if it's prefixed by \.
    func splitEscaped(s string, r rune) []string {
    	var prev rune
    	if len(s) == 0 {
    		return []string{}
    	}
    	prevIdx := 0
    	var out []string
    	for i, c := range s {
    		if c == r && (i == 0 || (i > 0 && prev != '\\')) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Sep 01 20:55:53 UTC 2020
    - 2.2K bytes
    - Viewed (0)
  10. src/html/escape.go

    			c = s[i]
    			i++
    			if hex {
    				if '0' <= c && c <= '9' {
    					x = 16*x + rune(c) - '0'
    					continue
    				} else if 'a' <= c && c <= 'f' {
    					x = 16*x + rune(c) - 'a' + 10
    					continue
    				} else if 'A' <= c && c <= 'F' {
    					x = 16*x + rune(c) - 'A' + 10
    					continue
    				}
    			} else if '0' <= c && c <= '9' {
    				x = 10*x + rune(c) - '0'
    				continue
    			}
    			if c != ';' {
    				i--
    			}
    			break
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 13 07:00:18 UTC 2020
    - 5K bytes
    - Viewed (0)
Back to top