Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 245 for rune1 (0.04 sec)

  1. src/regexp/syntax/prog.go

    	case InstNop:
    		bw(b, "nop -> ", u32(i.Out))
    	case InstRune:
    		if i.Rune == nil {
    			// shouldn't happen
    			bw(b, "rune <nil>")
    		}
    		bw(b, "rune ", strconv.QuoteToASCII(string(i.Rune)))
    		if Flags(i.Arg)&FoldCase != 0 {
    			bw(b, "/i")
    		}
    		bw(b, " -> ", u32(i.Out))
    	case InstRune1:
    		bw(b, "rune1 ", strconv.QuoteToASCII(string(i.Rune)), " -> ", u32(i.Out))
    	case InstRuneAny:
    		bw(b, "any -> ", u32(i.Out))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:50:01 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  2. src/fmt/scan.go

    // If the first byte is hex and the second is not, processing stops.
    func (s *ss) hexByte() (b byte, ok bool) {
    	rune1 := s.getRune()
    	if rune1 == eof {
    		return
    	}
    	value1, ok := hexDigit(rune1)
    	if !ok {
    		s.UnreadRune()
    		return
    	}
    	value2, ok := hexDigit(s.mustReadRune())
    	if !ok {
    		s.errorString("illegal hex digit")
    		return
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 21:56:20 UTC 2024
    - 31.9K bytes
    - Viewed (0)
  3. src/cmd/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: Wed Jan 24 13:01:26 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  4. 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)
  5. src/regexp/onepass.go

    			if syntax.Flags(inst.Arg)&syntax.FoldCase != 0 {
    				r0 := inst.Rune[0]
    				runes = append(runes, r0, r0)
    				for r1 := unicode.SimpleFold(r0); r1 != r0; r1 = unicode.SimpleFold(r1) {
    					runes = append(runes, r1, r1)
    				}
    				slices.Sort(runes)
    			} else {
    				runes = append(runes, inst.Rune[0], inst.Rune[0])
    			}
    			onePassRunes[pc] = runes
    			inst.Next = make([]uint32, len(onePassRunes[pc])/2+1)
    			for i := range inst.Next {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:36:03 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  6. src/regexp/syntax/regexp.go

    	case OpLiteral:
    		for _, r := range re.Rune {
    			escape(b, r, false)
    		}
    	case OpCharClass:
    		if len(re.Rune)%2 != 0 {
    			b.WriteString(`[invalid char class]`)
    			break
    		}
    		b.WriteRune('[')
    		if len(re.Rune) == 0 {
    			b.WriteString(`^\x00-\x{10FFFF}`)
    		} else if re.Rune[0] == 0 && re.Rune[len(re.Rune)-1] == unicode.MaxRune && len(re.Rune) > 2 {
    			// Contains 0 and MaxRune. Probably a negated class.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 16:41:51 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/apis/meta/fuzzer/fuzzer.go

    		partLen = c.Rand.Intn(63) + 1 // len is [1, 63]
    	}
    
    	runes := make([]rune, partLen)
    	if partLen == 0 {
    		return string(runes)
    	}
    
    	runes[0] = validStartEnd[c.Rand.Intn(len(validStartEnd))].choose(c.Rand)
    	for i := range runes[1:] {
    		runes[i+1] = validMiddle[c.Rand.Intn(len(validMiddle))].choose(c.Rand)
    	}
    	runes[len(runes)-1] = validStartEnd[c.Rand.Intn(len(validStartEnd))].choose(c.Rand)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 03 15:12:26 UTC 2024
    - 9.9K 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. src/regexp/onepass_test.go

    		[]rune{69, 74},
    		[]rune{65, 69},
    		[]rune{},
    		[]uint32{mergeFailed},
    		1, 2,
    	},
    	{
    		// overlap from above
    		[]rune{69, 74},
    		[]rune{71, 74},
    		[]rune{},
    		[]uint32{mergeFailed},
    		1, 2,
    	},
    	{
    		// overlap from below
    		[]rune{69, 74},
    		[]rune{65, 71},
    		[]rune{},
    		[]uint32{mergeFailed},
    		1, 2,
    	},
    	{
    		// out of order []rune
    		[]rune{69, 74, 60, 65},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:36:03 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  10. src/unicode/utf8/utf8.go

    		return rune(p0&mask2)<<6 | rune(b1&maskx), 2
    	}
    	b2 := p[2]
    	if b2 < locb || hicb < b2 {
    		return RuneError, 1
    	}
    	if sz <= 3 {
    		return rune(p0&mask3)<<12 | rune(b1&maskx)<<6 | rune(b2&maskx), 3
    	}
    	b3 := p[3]
    	if b3 < locb || hicb < b3 {
    		return RuneError, 1
    	}
    	return rune(p0&mask4)<<18 | rune(b1&maskx)<<12 | rune(b2&maskx)<<6 | rune(b3&maskx), 4
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 02:00:36 UTC 2024
    - 16.4K bytes
    - Viewed (0)
Back to top