Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for Brunet (0.17 sec)

  1. src/bytes/buffer_test.go

    		}
    	})
    	if n > 0 {
    		t.Errorf("allocations occurred while appending")
    	}
    }
    
    func TestRuneIO(t *testing.T) {
    	const NRune = 1000
    	// Built a test slice while we write the data
    	b := make([]byte, utf8.UTFMax*NRune)
    	var buf Buffer
    	n := 0
    	for r := rune(0); r < NRune; r++ {
    		size := utf8.EncodeRune(b[n:], r)
    		nbytes, err := buf.WriteRune(r)
    		if err != nil {
    			t.Fatalf("WriteRune(%U) error: %s", r, err)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 26 13:31:36 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  2. src/bufio/bufio_test.go

    	} else if err != io.EOF {
    		t.Error("expected EOF; got", err)
    	}
    }
    
    func TestReadWriteRune(t *testing.T) {
    	const NRune = 1000
    	byteBuf := new(bytes.Buffer)
    	w := NewWriter(byteBuf)
    	// Write the runes out using WriteRune
    	buf := make([]byte, utf8.UTFMax)
    	for r := rune(0); r < NRune; r++ {
    		size := utf8.EncodeRune(buf, r)
    		nbytes, err := w.WriteRune(r)
    		if err != nil {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Feb 10 18:56:01 GMT 2023
    - 51.5K bytes
    - Viewed (0)
  3. doc/go1.17_spec.html

    </pre>
    </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
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  4. src/cmd/api/testdata/src/pkg/p1/p1.go

    var m map[string]int
    
    var chanVar chan int
    
    var ifaceVar any = 5
    
    var assertVar = ifaceVar.(int)
    
    var indexVar = m["foo"]
    
    var Byte byte
    var ByteFunc func(byte) rune
    
    type ByteStruct struct {
    	B byte
    	R rune
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Dec 02 16:29:41 GMT 2022
    - 3.3K bytes
    - Viewed (0)
  5. api/go1.13.txt

    pkg syscall (netbsd-arm64-cgo), const DLT_APPLE_IP_OVER_IEEE1394 ideal-int
    pkg syscall (netbsd-arm64-cgo), const DLT_ARCNET = 7
    pkg syscall (netbsd-arm64-cgo), const DLT_ARCNET ideal-int
    pkg syscall (netbsd-arm64-cgo), const DLT_ARCNET_LINUX = 129
    pkg syscall (netbsd-arm64-cgo), const DLT_ARCNET_LINUX ideal-int
    pkg syscall (netbsd-arm64-cgo), const DLT_ATM_CLIP = 19
    pkg syscall (netbsd-arm64-cgo), const DLT_ATM_CLIP ideal-int
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Aug 08 18:44:16 GMT 2019
    - 452.6K bytes
    - Viewed (0)
  6. api/go1.5.txt

    pkg go/types, const MethodVal = 1
    pkg go/types, const MethodVal SelectionKind
    pkg go/types, const RecvOnly = 2
    pkg go/types, const RecvOnly ChanDir
    pkg go/types, const Rune = 5
    pkg go/types, const Rune BasicKind
    pkg go/types, const SendOnly = 1
    pkg go/types, const SendOnly ChanDir
    pkg go/types, const SendRecv = 0
    pkg go/types, const SendRecv ChanDir
    pkg go/types, const String = 17
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Jul 30 21:14:09 GMT 2015
    - 46.6K bytes
    - Viewed (0)
  7. src/archive/zip/reader_test.go

    		File: []ZipTestFile{
    			{
    				Name:    "世界",
    				Content: []byte{},
    				Mode:    0644,
    				// Name is valid UTF-8, but format does not have UTF-8 flag set.
    				// We don't do UTF-8 detection for multi-byte runes due to
    				// false-positives with other encodings (e.g., Shift-JIS).
    				// Format says encoding is not UTF-8, so we trust it.
    				NonUTF8:  true,
    				Modified: time.Date(2017, 11, 6, 13, 9, 27, 0, timeZone(-8*time.Hour)),
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 55.3K bytes
    - Viewed (0)
  8. src/bytes/bytes.go

    		// returning nil instead of empty slice if all spaces.
    		return nil
    	}
    	return s[start:stop]
    }
    
    // Runes interprets s as a sequence of UTF-8-encoded code points.
    // It returns a slice of runes (Unicode code points) equivalent to s.
    func Runes(s []byte) []rune {
    	t := make([]rune, utf8.RuneCount(s))
    	i := 0
    	for len(s) > 0 {
    		r, l := utf8.DecodeRune(s)
    		t[i] = r
    		i++
    		s = s[l:]
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Feb 19 19:51:15 GMT 2024
    - 33.8K bytes
    - Viewed (0)
  9. doc/next/6-stdlib/99-minor/unicode/utf16/44940.md

    The [RuneLen] function returns the number of 16-bit words in
    the UTF-16 encoding of the rune. It returns -1 if the rune
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 12 20:57:18 GMT 2024
    - 162 bytes
    - Viewed (0)
  10. src/bytes/reader.go

    	r.i--
    	return nil
    }
    
    // ReadRune implements the [io.RuneReader] interface.
    func (r *Reader) ReadRune() (ch rune, size int, err error) {
    	if r.i >= int64(len(r.s)) {
    		r.prevRune = -1
    		return 0, 0, io.EOF
    	}
    	r.prevRune = int(r.i)
    	if c := r.s[r.i]; c < utf8.RuneSelf {
    		r.i++
    		return rune(c), 1, nil
    	}
    	ch, size = utf8.DecodeRune(r.s[r.i:])
    	r.i += int64(size)
    	return
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 17:10:31 GMT 2023
    - 3.9K bytes
    - Viewed (0)
Back to top