Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 618 for Trune (0.06 sec)

  1. test/fixedbugs/issue13162.go

    	r = '\x00'
    	for i, r = range s {
    		b[i] = byte(r)
    	}
    	if want := n - 1; i != want {
    		fmt.Printf("index after range with side-effect = %d want %d\n", i, want)
    		os.Exit(1)
    	}
    	if want := rune(n); r != want {
    		fmt.Printf("rune after range with side-effect = %q want %q\n", r, want)
    		os.Exit(1)
    	}
    
    	i = -1
    	// i is shadowed here, so its value should be unchanged.
    	for i := range s {
    		b[i] = s[i]
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 30 18:17:20 UTC 2016
    - 1.6K bytes
    - Viewed (0)
  2. test/fixedbugs/issue43762.go

    var _ = true == '\'' // ERROR "invalid operation: (cannot compare true)|(true) == '\\'' \(mismatched types untyped bool and untyped rune\)"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 17 02:30:22 UTC 2021
    - 607 bytes
    - Viewed (0)
  3. .github/workflows/arm-ci-extended.yml

                echo "Running container(s) found" && \
                docker stop $running_containers;
              fi
              docker container prune -f
              docker image prune -af
          - name: Clean repository
            shell: bash
            run: find /home/ubuntu/actions-runner/_work/tensorflow/tensorflow/. -name . -o -prune -exec sudo rm -rf -- {} + || true
          - name: Checkout repository for nightly (skipped for releases)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 10:24:16 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  4. .github/workflows/arm-ci-extended-cpp.yml

                echo "Running container(s) found" && \
                docker stop $running_containers;
              fi
              docker container prune -f
              docker image prune -af
          - name: Clean repository
            shell: bash
            run: find /home/ubuntu/actions-runner/_work/tensorflow/tensorflow/. -name . -o -prune -exec sudo rm -rf -- {} + || true
          - name: Checkout repository for nightly (skipped for releases)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 07 17:41:21 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  5. src/regexp/syntax/compile.go

    	c.inst(InstFail)
    }
    
    var anyRuneNotNL = []rune{0, '\n' - 1, '\n' + 1, unicode.MaxRune}
    var anyRune = []rune{0, unicode.MaxRune}
    
    func (c *compiler) compile(re *Regexp) frag {
    	switch re.Op {
    	case OpNoMatch:
    		return c.fail()
    	case OpEmptyMatch:
    		return c.nop()
    	case OpLiteral:
    		if len(re.Rune) == 0 {
    			return c.nop()
    		}
    		var f frag
    		for j := range re.Rune {
    			f1 := c.rune(re.Rune[j:j+1], re.Flags)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 13 14:52:20 UTC 2021
    - 6.8K bytes
    - Viewed (0)
  6. test/stringrange.go

    package main
    
    import (
    	"fmt"
    	"os"
    	"unicode/utf8"
    )
    
    func main() {
    	s := "\000\123\x00\xca\xFE\u0123\ubabe\U0000babe\U0010FFFFx"
    	expect := []rune{0, 0123, 0, 0xFFFD, 0xFFFD, 0x123, 0xbabe, 0xbabe, 0x10FFFF, 'x'}
    	offset := 0
    	var i int
    	var c rune
    	ok := true
    	cnum := 0
    	for i, c = range s {
    		r, size := utf8.DecodeRuneInString(s[i:len(s)]) // check it another way
    		if i != offset {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 08 21:01:23 UTC 2012
    - 1.5K bytes
    - Viewed (0)
  7. src/text/scanner/scanner.go

    		}
    	}
    	return
    }
    
    func (s *Scanner) scanNumber(ch rune, seenDot bool) (rune, rune) {
    	base := 10         // number base
    	prefix := rune(0)  // one of 0 (decimal), '0' (0-octal), 'x', 'o', or 'b'
    	digsep := 0        // bit 0: digit present, bit 1: '_' present
    	invalid := rune(0) // invalid digit in literal, or 0
    
    	// integer part
    	var tok rune
    	var ds int
    	if !seenDot {
    		tok = Int
    		if ch == '0' {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:57:51 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  8. pkg/kubelet/cm/util/cdi/cdi.go

    				c, name)
    		}
    	}
    	if !isAlphaNumeric(rune(name[len(name)-1])) {
    		return fmt.Errorf("invalid name %q, should end with a letter or digit", name)
    	}
    	return nil
    }
    
    func isLetter(c rune) bool {
    	return ('A' <= c && c <= 'Z') || ('a' <= c && c <= 'z')
    }
    
    func isDigit(c rune) bool {
    	return '0' <= c && c <= '9'
    }
    
    func isAlphaNumeric(c rune) bool {
    	return isLetter(c) || isDigit(c)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 11 09:48:24 UTC 2023
    - 9.5K bytes
    - Viewed (0)
  9. src/strings/strings_test.go

    	{"x \xc0\xc0 ", "x \xc0\xc0"},
    	{"x ☺\xc0\xc0 ", "x ☺\xc0\xc0"},
    	{"x ☺ ", "x ☺"},
    }
    
    func tenRunes(ch rune) string {
    	r := make([]rune, 10)
    	for i := range r {
    		r[i] = ch
    	}
    	return string(r)
    }
    
    // User-defined self-inverse mapping function
    func rot13(r rune) rune {
    	step := rune(13)
    	if r >= 'a' && r <= 'z' {
    		return ((r - 'a' + step) % 26) + 'a'
    	}
    	if r >= 'A' && r <= 'Z' {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 12:58:37 UTC 2024
    - 53K bytes
    - Viewed (0)
  10. test/switch5.go

    // written, not just their values. Particularly useful for runes.
    func f8(r rune) {
    	const x = 10
    	switch r {
    	case 33, 33: // ERROR "duplicate case (33 in switch)?"
    	case 34, '"': // ERROR "duplicate case '"' .value 34. in switch"
    	case 35, rune('#'): // ERROR "duplicate case (rune.'#'. .value 35. in switch)?"
    	case 36, rune(36): // ERROR "duplicate case (rune.36. .value 36. in switch)?"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 14 21:28:48 UTC 2020
    - 2.3K bytes
    - Viewed (0)
Back to top