Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 3,837 for runes (0.17 sec)

  1. test/used.go

    package p
    
    import "unsafe"
    
    const C = 1
    
    var x, x1, x2 int
    var b bool
    var s string
    var c chan int
    var cp complex128
    var slice []int
    var array [2]int
    var bytes []byte
    var runes []rune
    var r rune
    
    func f0()            {}
    func f1() int        { return 1 }
    func f2() (int, int) { return 1, 1 }
    
    type T struct{ X int }
    
    func (T) M1() int { return 1 }
    func (T) M0()     {}
    func (T) M()      {}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 28 08:39:17 UTC 2020
    - 6K bytes
    - Viewed (0)
  2. test/typeparam/issue23536.go

    // license that can be found in the LICENSE file.
    
    // Test case where a slice of a user-defined byte type (not uint8 or byte) is
    // converted to a string.  Same for slice of runes.
    
    package main
    
    type MyByte byte
    
    type MyRune rune
    
    func f[T []MyByte](x T) string {
    	return string(x)
    }
    
    func g[T []MyRune](x T) string {
    	return string(x)
    }
    
    func main() {
    	var y []MyByte
    	_ = f(y)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 556 bytes
    - Viewed (0)
  3. test/fixedbugs/issue23536.go

    // license that can be found in the LICENSE file.
    
    // Test case where a slice of a user-defined byte type (not uint8 or byte) is
    // converted to a string.  Same for slice of runes.
    
    package main
    
    type MyByte byte
    
    type MyRune rune
    
    func main() {
    	var y []MyByte
    	_ = string(y)
    
    	var z []MyRune
    	_ = string(z)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 07 18:40:16 UTC 2022
    - 428 bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/text/unicode/norm/composition.go

    	bn := rb.rune[pos].pos
    	sz := utf8.EncodeRune(rb.byte[bn:], rune(r))
    	rb.rune[pos] = Properties{pos: bn, size: uint8(sz)}
    }
    
    // runeAt returns the rune at position n. It is used for Hangul and recomposition.
    func (rb *reorderBuffer) runeAt(n int) rune {
    	inf := rb.rune[n]
    	r, _ := utf8.DecodeRune(rb.byte[inf.pos : inf.pos+inf.size])
    	return r
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  5. src/regexp/onepass_test.go

    		[]rune{69, 74},
    		[]rune{65, 69},
    		[]rune{},
    		[]uint32{mergeFailed},
    		1, 2,
    	},
    	{
    		// overlap from above
    		[]rune{69, 74},
    		[]rune{71, 74},
    		[]rune{},
    		[]uint32{mergeFailed},
    		1, 2,
    	},
    	{
    		// overlap from below
    		[]rune{69, 74},
    		[]rune{65, 71},
    		[]rune{},
    		[]uint32{mergeFailed},
    		1, 2,
    	},
    	{
    		// out of order []rune
    		[]rune{69, 74, 60, 65},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:36:03 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  6. src/encoding/json/fold.go

    		}
    		// Handle multi-byte Unicode.
    		r, n := utf8.DecodeRune(in[i:])
    		out = utf8.AppendRune(out, foldRune(r))
    		i += n
    	}
    	return out
    }
    
    // foldRune is returns the smallest rune for all runes in the same fold set.
    func foldRune(r rune) rune {
    	for {
    		r2 := unicode.SimpleFold(r)
    		if r2 <= r {
    			return r2
    		}
    		r = r2
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 27 17:37:27 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  7. src/vendor/golang.org/x/text/unicode/norm/composition.go

    	bn := rb.rune[pos].pos
    	sz := utf8.EncodeRune(rb.byte[bn:], rune(r))
    	rb.rune[pos] = Properties{pos: bn, size: uint8(sz)}
    }
    
    // runeAt returns the rune at position n. It is used for Hangul and recomposition.
    func (rb *reorderBuffer) runeAt(n int) rune {
    	inf := rb.rune[n]
    	r, _ := utf8.DecodeRune(rb.byte[inf.pos : inf.pos+inf.size])
    	return r
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 19:27:51 UTC 2019
    - 14.1K bytes
    - Viewed (0)
  8. src/cmd/go/internal/work/exec_test.go

    		t.Skip("fuzz test is slow")
    	}
    	t.Parallel()
    
    	nRunes := sys.ExecArgLengthLimit + 100
    	rBuffer := make([]rune, nRunes)
    	buf := bytes.NewBuffer([]byte(string(rBuffer)))
    
    	seed := time.Now().UnixNano()
    	t.Logf("rand seed: %v", seed)
    	rng := rand.New(rand.NewSource(seed))
    
    	for i := 0; i < 50; i++ {
    		// Generate a random string of runes.
    		buf.Reset()
    		for buf.Len() < sys.ExecArgLengthLimit+1 {
    			var r rune
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Oct 02 13:15:42 UTC 2021
    - 1.8K bytes
    - Viewed (0)
  9. src/unicode/example_test.go

    	// 	is graphic rune
    	// 	is number rune
    	// 	is printable rune
    	// For 'Ὂ':
    	// 	is graphic rune
    	// 	is letter rune
    	// 	is printable rune
    	// 	is upper case rune
    	// For 'g':
    	// 	is graphic rune
    	// 	is letter rune
    	// 	is lower case rune
    	// 	is printable rune
    	// For '̀':
    	// 	is graphic rune
    	// 	is mark rune
    	// 	is printable rune
    	// For '9':
    	// 	is digit rune
    	// 	is graphic rune
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 08 00:18:29 UTC 2021
    - 5.2K bytes
    - Viewed (0)
  10. src/strconv/makeisprint.go

    		fmt.Fprintf(&buf, "\t%#04x,\n", r-0x10000)
    	}
    	fmt.Fprintf(&buf, "}\n\n")
    
    	// The list of graphic but not "printable" runes is short. Just make one easy table.
    	fmt.Fprintf(&buf, "// isGraphic lists the graphic runes not matched by IsPrint.\n")
    	fmt.Fprintf(&buf, "var isGraphic = []uint16{\n")
    	for r := rune(0); r <= unicode.MaxRune; r++ {
    		if unicode.IsPrint(r) != unicode.IsGraphic(r) {
    			// Sanity check.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 11 18:56:17 UTC 2024
    - 4.3K bytes
    - Viewed (0)
Back to top