Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 495 for RunE (0.07 sec)

  1. test/typeparam/issue48198.go

    package p
    
    type Foo[T any] struct {
    }
    
    func (foo Foo[T]) Get()  {
    }
    
    var(
    	_ = Foo[byte]{}
    	_ = Foo[[]byte]{}
    	_ = Foo[map[byte]rune]{}
    
    	_ = Foo[rune]{}
    	_ = Foo[[]rune]{}
    	_ = Foo[map[rune]byte]{}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 372 bytes
    - Viewed (0)
  2. src/strconv/quote.go

    }
    
    func appendQuotedRuneWith(buf []byte, r rune, quote byte, ASCIIonly, graphicOnly bool) []byte {
    	buf = append(buf, quote)
    	if !utf8.ValidRune(r) {
    		r = utf8.RuneError
    	}
    	buf = appendEscapedRune(buf, r, quote, ASCIIonly, graphicOnly)
    	buf = append(buf, quote)
    	return buf
    }
    
    func appendEscapedRune(buf []byte, r rune, quote byte, ASCIIonly, graphicOnly bool) []byte {
    	if r == rune(quote) || r == '\\' { // always backslashed
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:21:28 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  3. src/regexp/syntax/parse.go

    	p.numRunes += len(re.Rune)
    	if re.Op == OpCharClass && len(re.Rune) == 2 && re.Rune[0] == re.Rune[1] {
    		// Single rune.
    		if p.maybeConcat(re.Rune[0], p.flags&^FoldCase) {
    			return nil
    		}
    		re.Op = OpLiteral
    		re.Rune = re.Rune[:1]
    		re.Flags = p.flags &^ FoldCase
    	} else if re.Op == OpCharClass && len(re.Rune) == 4 &&
    		re.Rune[0] == re.Rune[1] && re.Rune[2] == re.Rune[3] &&
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 13:59:01 UTC 2024
    - 52.1K bytes
    - Viewed (0)
  4. 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)
  5. src/vendor/golang.org/x/text/unicode/norm/forminfo.go

    func (p Properties) CCC() uint8 {
    	if p.index >= firstCCCZeroExcept {
    		return 0
    	}
    	return ccc[p.ccc]
    }
    
    // LeadCCC returns the CCC of the first rune in the decomposition.
    // If there is no decomposition, LeadCCC equals CCC.
    func (p Properties) LeadCCC() uint8 {
    	return ccc[p.ccc]
    }
    
    // TrailCCC returns the CCC of the last rune in the decomposition.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 10 18:59:52 UTC 2023
    - 8.7K bytes
    - Viewed (0)
  6. src/runtime/utf8.go

    func countrunes(s string) int {
    	n := 0
    	for range s {
    		n++
    	}
    	return n
    }
    
    // decoderune returns the non-ASCII rune at the start of
    // s[k:] and the index after the rune in s.
    //
    // decoderune assumes that caller has checked that
    // the to be decoded rune is a non-ASCII rune.
    //
    // If the string appears to be incomplete or decoding problems
    // are encountered (runeerror, k + 1) is returned to ensure
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 06 02:46:02 UTC 2020
    - 3.4K bytes
    - Viewed (0)
  7. internal/s3select/sql/stringfuncs.go

    )
    
    const (
    	percent    rune = '%'
    	underscore rune = '_'
    	runeZero   rune = 0
    )
    
    func evalSQLLike(text, pattern string, escape rune) (match bool, err error) {
    	s := []rune{}
    	prev := runeZero
    	hasLeadingPercent := false
    	patLen := len([]rune(pattern))
    	for i, r := range pattern {
    		if i > 0 && prev == escape {
    			switch r {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 4.2K bytes
    - Viewed (0)
  8. src/unicode/script_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package unicode_test
    
    import (
    	"testing"
    	. "unicode"
    )
    
    type T struct {
    	rune   rune
    	script string
    }
    
    var inCategoryTest = []T{
    	{0x0081, "Cc"},
    	{0x200B, "Cf"},
    	{0xf0000, "Co"},
    	{0xdb80, "Cs"},
    	{0x0236, "Ll"},
    	{0x1d9d, "Lm"},
    	{0x07cf, "Lo"},
    	{0x1f8a, "Lt"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 24 14:09:01 UTC 2019
    - 2.9K bytes
    - Viewed (0)
  9. test/alias1.go

    		// must be new code
    		rune32 = true
    	default:
    		panic("rune != int and rune != int32")
    	}
    
    	if rune32 {
    		x = int32(4)
    	} else {
    		x = int(5)
    	}
    	switch x.(type) {
    	case rune:
    		// ok
    	default:
    		panic("int (or int32) != rune")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 803 bytes
    - Viewed (0)
  10. test/fixedbugs/issue5704.go

    	checkBytes([]byte(mystring("")), `[]byte(mystring(""))`)
    	checkBytes(mybytes(""), `mybytes("")`)
    	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)
Back to top