Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 139 for myrunes (0.56 sec)

  1. test/fixedbugs/issue5704.go

    	checkBytes(mybytes(mystring("")), `mybytes(mystring(""))`)
    
    	checkRunes([]rune(""), `[]rune("")`)
    	checkRunes([]rune(mystring("")), `[]rune(mystring(""))`)
    	checkRunes(myrunes(""), `myrunes("")`)
    	checkRunes(myrunes(mystring("")), `myrunes(mystring(""))`)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 1K bytes
    - Viewed (0)
  2. src/reflect/all_test.go

    	{V(MyBytes("bytes2")), V(MyString("bytes2"))},
    
    	// named []rune
    	{V(string("runes♝")), V(MyRunes("runes♝"))},
    	{V(MyRunes("runes♕")), V(string("runes♕"))},
    	{V(MyRunes("runes🙈🙉🙊")), V(MyRunes("runes🙈🙉🙊"))},
    	{V(MyString("runes♝")), V(MyRunes("runes♝"))},
    	{V(MyRunes("runes♕")), V(MyString("runes♕"))},
    
    	// slice to array
    	{V([]byte(nil)), V([0]byte{})},
    	{V([]byte{}), V([0]byte{})},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
  3. test/fixedbugs/issue23814.go

    	// 5
    	_ = []rune(myString("白鵬翔")) // []rune{0x767d, 0x9d6c, 0x7fd4}
    	_ = []rune("")              // []rune{}
    
    	_ = runes("白鵬翔") // []rune{0x767d, 0x9d6c, 0x7fd4}
    
    	_ = []myRune("♫♬")          // []myRune{0x266b, 0x266c}
    	_ = []myRune(myString("🌐")) // []myRune{0x1f310}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 15 00:06:24 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  4. test/typeparam/issue23536.go

    // 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)
    	_ = string(y)
    
    	var z []MyRune
    	_ = g(z)
    	_ = string(z)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 556 bytes
    - Viewed (0)
  5. src/vendor/golang.org/x/text/unicode/bidi/bidi.go

    		if prop.IsBracket() {
    			inRunes[i] = prop.reverseBracket(r)
    		}
    	}
    
    	for i, j := 0, len(inRunes)-1; i < j; i, j = i+1, j-1 {
    		inRunes[i], inRunes[j] = inRunes[j], inRunes[i]
    	}
    	copy(ret[len(out):], string(inRunes))
    
    	return ret
    }
    
    // ReverseString reverses the order of characters in s and returns a new string.
    // Modifiers will still follow the runes they modify. Brackets are replaced with
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 15 19:02:39 UTC 2021
    - 10.3K bytes
    - Viewed (0)
  6. test/fixedbugs/issue23536.go

    // 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)
  7. doc/go1.17_spec.html

    </li>
    
    <li>
    Converting a slice of runes to a string type yields
    a string that is the concatenation of the individual rune values
    converted to strings.
    
    <pre>
    string([]rune{0x767d, 0x9d6c, 0x7fd4})   // "\u767d\u9d6c\u7fd4" == "白鵬翔"
    string([]rune{})                         // ""
    string([]rune(nil))                      // ""
    
    type MyRunes []rune
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 211.6K 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. staging/src/k8s.io/apimachinery/pkg/apis/meta/fuzzer/fuzzer.go

    		partLen = c.Rand.Intn(63) + 1 // len is [1, 63]
    	}
    
    	runes := make([]rune, partLen)
    	if partLen == 0 {
    		return string(runes)
    	}
    
    	runes[0] = validStartEnd[c.Rand.Intn(len(validStartEnd))].choose(c.Rand)
    	for i := range runes[1:] {
    		runes[i+1] = validMiddle[c.Rand.Intn(len(validMiddle))].choose(c.Rand)
    	}
    	runes[len(runes)-1] = validStartEnd[c.Rand.Intn(len(validStartEnd))].choose(c.Rand)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 03 15:12:26 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  10. src/regexp/onepass.go

    			}
    			instQueue.insert(inst.Out)
    			runes := []rune{}
    			// expand case-folded runes
    			if syntax.Flags(inst.Arg)&syntax.FoldCase != 0 {
    				r0 := inst.Rune[0]
    				runes = append(runes, r0, r0)
    				for r1 := unicode.SimpleFold(r0); r1 != r0; r1 = unicode.SimpleFold(r1) {
    					runes = append(runes, r1, r1)
    				}
    				slices.Sort(runes)
    			} else {
    				runes = append(runes, inst.Rune[0], inst.Rune[0])
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:36:03 UTC 2024
    - 13.7K bytes
    - Viewed (0)
Back to top