Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 239 for rune1 (0.09 sec)

  1. src/cmd/compile/internal/types2/universe.go

    }
    
    var basicAliases = [...]*Basic{
    	{Byte, IsInteger | IsUnsigned, "byte"},
    	{Rune, IsInteger, "rune"},
    }
    
    func defPredeclaredTypes() {
    	for _, t := range Typ {
    		def(NewTypeName(nopos, nil, t.name, t))
    	}
    	for _, t := range basicAliases {
    		def(NewTypeName(nopos, nil, t.name, t))
    	}
    
    	// type any = interface{}
    	//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  2. src/go/types/universe.go

    }
    
    var basicAliases = [...]*Basic{
    	{Byte, IsInteger | IsUnsigned, "byte"},
    	{Rune, IsInteger, "rune"},
    }
    
    func defPredeclaredTypes() {
    	for _, t := range Typ {
    		def(NewTypeName(nopos, nil, t.name, t))
    	}
    	for _, t := range basicAliases {
    		def(NewTypeName(nopos, nil, t.name, t))
    	}
    
    	// type any = interface{}
    	//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  3. src/fmt/format.go

    	i := len(buf)
    
    	// For %#U we want to add a space and a quoted character at the end of the buffer.
    	if f.sharp && u <= utf8.MaxRune && strconv.IsPrint(rune(u)) {
    		i--
    		buf[i] = '\''
    		i -= utf8.RuneLen(rune(u))
    		utf8.EncodeRune(buf[i:], rune(u))
    		i--
    		buf[i] = '\''
    		i--
    		buf[i] = ' '
    	}
    	// Format the Unicode code point u as a hexadecimal number.
    	for u >= 16 {
    		i--
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:31:55 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  4. src/cmd/go/internal/envcmd/env_test.go

    					" isn't testing.", s)
    			}
    			if c > unicode.MaxASCII {
    				t.Skipf("skipping %#q: contains a non-ASCII character %q", s, c)
    			}
    			if !unicode.IsGraphic(rune(c)) && !unicode.IsSpace(rune(c)) {
    				t.Skipf("skipping %#q: contains non-graphic character %q", s, c)
    			}
    			if runtime.GOOS == "windows" && c == '\r' || c == '\n' {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  5. src/bytes/buffer_test.go

    		}
    	}
    }
    
    func TestWriteInvalidRune(t *testing.T) {
    	// Invalid runes, including negative ones, should be written as
    	// utf8.RuneError.
    	for _, r := range []rune{-1, utf8.MaxRune + 1} {
    		var buf Buffer
    		buf.WriteRune(r)
    		check(t, fmt.Sprintf("TestWriteInvalidRune (%d)", r), &buf, "\uFFFD")
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:31:36 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  6. src/reflect/all_test.go

    	{V([]byte("bytes2")), V(MyString("bytes2"))},
    	{V([]byte("bytes3")), V([]byte("bytes3"))},
    	{V(MyString("runes♝")), V([]rune("runes♝"))},
    	{V([]rune("runes♕")), V(MyString("runes♕"))},
    	{V([]rune("runes🙈🙉🙊")), V([]rune("runes🙈🙉🙊"))},
    	{V([]rune("runes🙈🙉🙊")), V(MyRunes("runes🙈🙉🙊"))},
    	{V(MyRunes("runes🙈🙉🙊")), V([]rune("runes🙈🙉🙊"))},
    	{V(int('a')), V(MyString("a"))},
    	{V(int8('a')), V(MyString("a"))},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
  7. istioctl/pkg/dashboard/dashboard.go

    		Short: "Open Prometheus web UI",
    		Long:  `Open Istio's Prometheus dashboard`,
    		Example: `  istioctl dashboard prometheus
    
      # with short syntax
      istioctl dash prometheus
      istioctl d prometheus`,
    		RunE: func(cmd *cobra.Command, args []string) error {
    			client, err := ctx.CLIClientWithRevision(opts.Revision)
    			if err != nil {
    				return fmt.Errorf("failed to create k8s client: %v", err)
    			}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 15 01:29:35 UTC 2024
    - 20.5K bytes
    - Viewed (0)
  8. pkg/util/filesystem/util_windows_test.go

    	"github.com/stretchr/testify/assert"
    	"github.com/stretchr/testify/require"
    )
    
    func TestIsUnixDomainSocketPipe(t *testing.T) {
    	generatePipeName := func(suffixLen int) string {
    		letter := []rune("abcdef0123456789")
    		b := make([]rune, suffixLen)
    		for i := range b {
    			b[i] = letter[rand.Intn(len(letter))]
    		}
    		return "\\\\.\\pipe\\test-pipe" + string(b)
    	}
    	testFile := generatePipeName(4)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 09:10:26 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  9. src/regexp/regexp.go

    	if str == "" {
    		return
    	}
    	brace := false
    	if str[0] == '{' {
    		brace = true
    		str = str[1:]
    	}
    	i := 0
    	for i < len(str) {
    		rune, size := utf8.DecodeRuneInString(str[i:])
    		if !unicode.IsLetter(rune) && !unicode.IsDigit(rune) && rune != '_' {
    			break
    		}
    		i += size
    	}
    	if i == 0 {
    		// empty name is not okay
    		return
    	}
    	name = str[:i]
    	if brace {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:50:01 UTC 2024
    - 38.5K bytes
    - Viewed (0)
  10. test/fixedbugs/issue65957.dir/main.go

    // Copyright 2024 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    import (
    	"./a"
    	"reflect"
    )
    
    var s = []rune{0, 1, 2, 3}
    
    func main() {
    	m := map[any]int{}
    	k := reflect.New(reflect.ArrayOf(4, reflect.TypeOf(int32(0)))).Elem().Interface()
    	m[k] = 1
    	a.F()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 28 05:32:14 UTC 2024
    - 368 bytes
    - Viewed (0)
Back to top