Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 305 for Trune (0.04 sec)

  1. 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)
  2. tensorflow/compiler/mlir/tensorflow/transforms/remove_unused_while_results.cc

        if (op != candidate_op) return false;
      }
    
      // Don't prune if the condition block argument has any user.
      if (!cond_block_argument.use_empty()) return false;
    
      // Don't prune if `body_yield_operand` has more than one use (that would mean
      // it feeds into another op apart from `Yield`).
      if (!body_yield_operand.hasOneUse()) return false;
    
      // Don't prune if any other result of the candidate op is used.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Nov 16 01:49:07 UTC 2022
    - 5K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. test/fixedbugs/issue29220.go

    // license that can be found in the LICENSE file.
    
    package main
    
    func ascii(r rune) rune {
    	switch {
    	case 97 <= r && r <= 122:
    		return r - 32
    	case 65 <= r && r <= 90:
    		return r + 32
    	default:
    		return r
    	}
    }
    
    func main() {
    	nomeObjeto := "ABE1FK21"
    	println(string(nomeObjeto[1:4]))
    	println(ascii(rune(nomeObjeto[4])) >= 48 && ascii(rune(nomeObjeto[4])) <= 57)
    	println(string(nomeObjeto[5]))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 17 22:49:21 UTC 2018
    - 556 bytes
    - Viewed (0)
  7. test/fixedbugs/issue15611.go

    // ERROR "newline in character literal|newline in rune literal"
    // ERROR "invalid character literal \(missing closing '\)|rune literal not terminated"
    
    const (
    	_ = ''     // ERROR "empty character literal or unescaped ' in character literal|empty rune literal"
    	_ = 'f'
    	_ = 'foo'  // ERROR "invalid character literal \(more than one character\)|more than one character in rune literal"
    //line issue15611.go:11
    	_ = '
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 05 00:40:38 UTC 2020
    - 685 bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/text/cases/trieval.go

    //	2..0  case mode
    //
    // For the non-exceptional cases, a rune must be either uncased, lowercase or
    // uppercase. If the rune is cased, the XOR pattern maps either a lowercase
    // rune to uppercase or an uppercase rune to lowercase (applied to the 10
    // least-significant bits of the rune).
    //
    // See the definitions below for a more detailed description of the various
    // bits.
    type info uint16
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top