Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for myrunes (0.16 sec)

  1. src/regexp/syntax/parse.go

    	instSize = 5 * 8 // byte, 2 uint32, slice is 5 64-bit words
    )
    
    // maxRunes is the maximum number of runes allowed in a regexp tree
    // counting the runes in all the nodes.
    // Ignoring character classes p.numRunes is always less than the length of the regexp.
    // Character classes can make it much larger: each \pL adds 1292 runes.
    // 128 MB is enough for 32M runes, which is over 26k \pL instances.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 13:59:01 UTC 2024
    - 52.1K bytes
    - Viewed (0)
  2. src/bytes/bytes_test.go

    		}
    		if !Equal(actual, tc.out) {
    			t.Errorf("%s(%q) = %q; want %q", funcName, tc.in, actual, tc.out)
    		}
    	}
    }
    
    func tenRunes(r rune) string {
    	runes := make([]rune, 10)
    	for i := range runes {
    		runes[i] = r
    	}
    	return string(runes)
    }
    
    // User-defined self-inverse mapping function
    func rot13(r rune) rune {
    	const step = 13
    	if r >= 'a' && r <= 'z' {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 12:58:37 UTC 2024
    - 56.5K bytes
    - Viewed (0)
  3. src/fmt/fmt_test.go

    	{"%+q", "abc\xffdef", `"abc\xffdef"`},
    	{"%#q", "abc\xffdef", `"abc\xffdef"`},
    	{"%#+q", "abc\xffdef", `"abc\xffdef"`},
    	// Runes that are not printable.
    	{"%q", "\U0010ffff", `"\U0010ffff"`},
    	{"%+q", "\U0010ffff", `"\U0010ffff"`},
    	{"%#q", "\U0010ffff", "`􏿿`"},
    	{"%#+q", "\U0010ffff", "`􏿿`"},
    	// Runes that are not valid.
    	{"%q", string(rune(0x110000)), `"�"`},
    	{"%+q", string(rune(0x110000)), `"\ufffd"`},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:31:55 UTC 2024
    - 58.6K bytes
    - Viewed (0)
  4. src/bufio/bufio_test.go

    			t.Errorf("#%d: got error %v; want EOF", rno, err)
    		}
    	}
    }
    
    // Test that UnreadRune fails if the preceding operation was not a ReadRune.
    func TestUnreadRuneError(t *testing.T) {
    	buf := make([]byte, 3) // All runes in this test are 3 bytes long
    	r := NewReader(&StringReader{data: []string{"日本語日本語日本語"}})
    	if r.UnreadRune() == nil {
    		t.Error("expected error on UnreadRune from fresh buffer")
    	}
    	_, _, err := r.ReadRune()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 10 18:56:01 UTC 2023
    - 51.5K bytes
    - Viewed (0)
  5. src/strings/strings_test.go

    		if r1 != r2 {
    			t.Errorf("%s diff at %d: U+%04X U+%04X", m, i, r1, r2)
    		}
    	}
    	return false
    }
    
    func TestCaseConsistency(t *testing.T) {
    	// Make a string of all the runes.
    	numRunes := int(unicode.MaxRune + 1)
    	if testing.Short() {
    		numRunes = 1000
    	}
    	a := make([]rune, numRunes)
    	for i := range a {
    		a[i] = rune(i)
    	}
    	s := string(a)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 12:58:37 UTC 2024
    - 53K bytes
    - Viewed (0)
  6. src/html/template/exec_test.go

    	{"bug17d", "{{index .NonEmptyInterfacePtS 0}}", "a", tVal, true},
    	{"bug17e", "{{range .NonEmptyInterfacePtS}}-{{.}}-{{end}}", "-a--b-", tVal, true},
    
    	// More variadic function corner cases. Some runes would get evaluated
    	// as constant floats instead of ints. Issue 34483.
    	{"bug18a", "{{eq . '.'}}", "true", '.', true},
    	{"bug18b", "{{eq . 'e'}}", "true", 'e', true},
    	{"bug18c", "{{eq . 'P'}}", "true", 'P', true},
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 24 21:59:12 UTC 2024
    - 57.6K bytes
    - Viewed (0)
  7. src/text/template/exec_test.go

    	{"bug17d", "{{index .NonEmptyInterfacePtS 0}}", "a", tVal, true},
    	{"bug17e", "{{range .NonEmptyInterfacePtS}}-{{.}}-{{end}}", "-a--b-", tVal, true},
    
    	// More variadic function corner cases. Some runes would get evaluated
    	// as constant floats instead of ints. Issue 34483.
    	{"bug18a", "{{eq . '.'}}", "true", '.', true},
    	{"bug18b", "{{eq . 'e'}}", "true", 'e', true},
    	{"bug18c", "{{eq . 'P'}}", "true", 'P', true},
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 22:23:55 UTC 2024
    - 60.1K bytes
    - Viewed (0)
  8. src/cmd/go/internal/modload/load.go

    // regardless of the whether the "all" pattern is a root.
    // (This is necessary to maintain the “import invariant” described in
    // https://golang.org/design/36460-lazy-module-loading.)
    //
    // Because "go mod vendor" prunes out the tests of vendored packages, the
    // behavior of the "all" pattern with -mod=vendor in Go 1.11–1.15 is the same
    // as the "all" pattern (regardless of the -mod flag) in 1.16+.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 14:56:56 UTC 2024
    - 84K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/g3doc/_includes/tf_passes.md

      }
      return %graph#0, %graph#1, %graph#2, %graph#3, %graph#4, %graph#5 : !tf_res, !tf_res, tensor<f32>, tensor<f32>, tensor<i32>, tensor<i32>
    }
    ```
    ### `-tf-executor-graph-pruning`
    
    _Prunes unreachable ops in a tf_executor.graph_
    
    This pass removes ops from a `tf_executor.graph` that are not transitively, via
    data or control dependencies, connected to the associated `tf_executor.fetch`
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 02 02:26:39 UTC 2023
    - 96.4K bytes
    - Viewed (0)
  10. src/reflect/type.go

    		// Strictly speaking, control chars include the range [0x7f, 0x9f], not just
    		// [0x00, 0x1f], but in practice, we ignore the multi-byte control characters
    		// as it is simpler to inspect the tag's bytes than the tag's runes.
    		i = 0
    		for i < len(tag) && tag[i] > ' ' && tag[i] != ':' && tag[i] != '"' && tag[i] != 0x7f {
    			i++
    		}
    		if i == 0 || i+1 >= len(tag) || tag[i] != ':' || tag[i+1] != '"' {
    			break
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 85.5K bytes
    - Viewed (0)
Back to top