Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 1,853 for runUse (0.16 sec)

  1. src/internal/types/testdata/spec/conversions.go

    }
    
    // "x is a string and T is a slice of bytes or runes"
    
    func _[T ~[]byte](x string) T { return T(x) }
    func _[T ~[]rune](x string) T { return T(x) }
    func _[T ~[]rune](x *string) T {
    	return T(x /* ERROR "cannot convert x (variable of type *string) to type T: cannot convert *string to type []rune (in T)" */)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:27 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  2. 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)
  3. src/cmd/vendor/golang.org/x/text/cases/context.go

    // unbounded lookahead is needed for cased runes.
    type context struct {
    	dst, src []byte
    	atEOF    bool
    
    	pDst int // pDst points past the last written rune in dst.
    	pSrc int // pSrc points to the start of the currently scanned rune.
    
    	// checkpoints safe to return in Transform, where nDst <= pDst and nSrc <= pSrc.
    	nDst, nSrc int
    	err        error
    
    	sz   int  // size of current rune
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  4. src/html/template/html.go

    	// Treated as a quoting character by IE.
    	'`': "&#96;",
    }
    
    // htmlReplacer returns s with runes replaced according to replacementTable
    // and when badRunes is true, certain bad runes are allowed through unescaped.
    func htmlReplacer(s string, replacementTable []string, badRunes bool) string {
    	written, b := 0, new(strings.Builder)
    	r, w := rune(0), 0
    	for i := 0; i < len(s); i += w {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 02 19:42:28 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  5. src/vendor/golang.org/x/text/unicode/bidi/bracket.go

    // resolvePairedBrackets runs the paired bracket part of the UBA algorithm.
    //
    // For each rune, it takes the indexes into the original string, the class the
    // bracket type (in pairTypes) and the bracket identifier (pairValues). It also
    // takes the direction type for the start-of-sentence and the embedding level.
    //
    // The identifiers for bracket types are the rune of the canonicalized opening
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 19:27:51 UTC 2019
    - 11.2K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/endpoints/filters/warning.go

    		return
    	}
    	r.recorded[text] = true
    	r.ordered = append(r.ordered, recordedWarning{agent: agent, text: text})
    
    	// truncate on a rune boundary, if needed
    	textRuneLength := utf8.RuneCountInString(text)
    	if r.truncating && textRuneLength > truncateItemRunes {
    		text = string([]rune(text)[:truncateItemRunes])
    		textRuneLength = truncateItemRunes
    	}
    
    	// compute the header
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 01 16:14:06 UTC 2020
    - 3.6K bytes
    - Viewed (0)
  7. src/text/template/parse/lex.go

    }
    
    // next returns the next rune in the input.
    func (l *lexer) next() rune {
    	if int(l.pos) >= len(l.input) {
    		l.atEOF = true
    		return eof
    	}
    	r, w := utf8.DecodeRuneInString(l.input[l.pos:])
    	l.pos += Pos(w)
    	if r == '\n' {
    		l.line++
    	}
    	return r
    }
    
    // peek returns but does not consume the next rune in the input.
    func (l *lexer) peek() rune {
    	r := l.next()
    	l.backup()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 04 22:36:12 UTC 2022
    - 18.1K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/SequentialExecutorTest.java

        final AtomicInteger numCalls = new AtomicInteger();
    
        Runnable runMe =
            new Runnable() {
              @Override
              public void run() {
                numCalls.incrementAndGet();
                throw new RuntimeException("FAKE EXCEPTION!");
              }
            };
    
        e.execute(runMe);
        e.execute(runMe);
        fakePool.runAll();
    
        assertEquals(2, numCalls.get());
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 11.4K bytes
    - Viewed (0)
  9. src/strconv/quote_test.go

    	{string(rune(14)), false},
    	{string(rune(15)), false},
    	{string(rune(16)), false},
    	{string(rune(17)), false},
    	{string(rune(18)), false},
    	{string(rune(19)), false},
    	{string(rune(20)), false},
    	{string(rune(21)), false},
    	{string(rune(22)), false},
    	{string(rune(23)), false},
    	{string(rune(24)), false},
    	{string(rune(25)), false},
    	{string(rune(26)), false},
    	{string(rune(27)), false},
    	{string(rune(28)), false},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 31 20:37:15 UTC 2022
    - 9.6K bytes
    - Viewed (0)
  10. src/runtime/string_test.go

    }
    
    var sinkInt int
    
    func BenchmarkRuneCount(b *testing.B) {
    	// Each sub-benchmark counts the runes in a string in a different way.
    	b.Run("lenruneslice", func(b *testing.B) {
    		for _, sd := range stringdata {
    			b.Run(sd.name, func(b *testing.B) {
    				for i := 0; i < b.N; i++ {
    					sinkInt += len([]rune(sd.data))
    				}
    			})
    		}
    	})
    	b.Run("rangeloop", func(b *testing.B) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 13 14:05:23 UTC 2022
    - 13.3K bytes
    - Viewed (0)
Back to top