Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 59 for myrunes (0.16 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. 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)
  3. 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)
  4. 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)
  5. 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)
  6. src/unicode/utf8/example_test.go

    	buf := []byte("Hello, 世界")
    	fmt.Println("bytes =", len(buf))
    	fmt.Println("runes =", utf8.RuneCount(buf))
    	// Output:
    	// bytes = 13
    	// runes = 9
    }
    
    func ExampleRuneCountInString() {
    	str := "Hello, 世界"
    	fmt.Println("bytes =", len(str))
    	fmt.Println("runes =", utf8.RuneCountInString(str))
    	// Output:
    	// bytes = 13
    	// runes = 9
    }
    
    func ExampleRuneLen() {
    	fmt.Println(utf8.RuneLen('a'))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 05 21:29:18 UTC 2021
    - 3.6K bytes
    - Viewed (0)
  7. releasenotes/notes/30833.yaml

    apiVersion: release-notes/v2
    kind: bug-fix
    area: installation
    issue:
      - 30833
    
    releaseNotes:
      - |
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 21 22:14:28 UTC 2021
    - 201 bytes
    - Viewed (0)
  8. src/html/template/html.go

    	0:    "\uFFFD",
    	'"':  "&#34;",
    	'\'': "&#39;",
    	'+':  "&#43;",
    	'<':  "&lt;",
    	'>':  "&gt;",
    }
    
    // htmlNospaceReplacementTable contains the runes that need to be escaped
    // inside an unquoted attribute value.
    // The set of runes escaped is the union of the HTML specials and
    // those determined by running the JS below in browsers:
    // <div id=d></div>
    // <script>(function () {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 02 19:42:28 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  9. pilot/pkg/status/distribution/reporter_test.go

    	r.RegisterDisconnect(connections[2], sets.New[xds.EventType](""))
    	// build a report, which should have only two dataplanes, with 50% acking v2 of config
    	rpt, prunes := r.buildReport()
    	r.removeCompletedResource(prunes)
    	Expect(rpt.DataPlaneCount).To(Equal(2))
    	Expect(rpt.InProgressResources).To(Equal(map[string]int{
    		myResources[0].String(): 2,
    		myResources[1].String(): 1,
    		myResources[2].String(): 2,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jan 30 17:25:17 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/text/cases/trieval.go

    // cases, a rune can be both cased and case-ignorable. This is encoded by
    // cIgnorableCased. A rune of this type is always lower case. Some runes are
    // cased while not having a mapping.
    //
    // A common pattern for scripts in the Unicode standard is for upper and lower
    // case runes to alternate for increasing rune values (e.g. the accented Latin
    // ranges starting from U+0100 and U+1E00 among others and some Cyrillic
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 6.3K bytes
    - Viewed (0)
Back to top