Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 401 for Trune (0.04 sec)

  1. operator/pkg/helmreconciler/prune.go

    		{Group: "autoscaling", Version: "v2", Kind: name.HPAStr},
    		gvk.EnvoyFilter.Kubernetes(),
    	}
    	return res
    }
    
    // Prune removes any resources not specified in manifests generated by HelmReconciler h.
    func (h *HelmReconciler) Prune(manifests name.ManifestMap, all bool) error {
    	return h.runForAllTypes(func(labels map[string]string, objects *unstructured.UnstructuredList) error {
    		var errs util.Errors
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 02 08:32:06 UTC 2024
    - 15.9K bytes
    - Viewed (0)
  2. 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)
  3. src/cmd/vendor/golang.org/x/text/unicode/norm/normalize.go

    			return false
    		}
    		bp, _ = rb.f.quickSpan(rb.src, bp, len(b), true)
    	}
    	return true
    }
    
    func cmpNormalBytes(rb *reorderBuffer) bool {
    	b := rb.out
    	for i := 0; i < rb.nrune; i++ {
    		info := rb.rune[i]
    		if int(info.size) > len(b) {
    			return false
    		}
    		p := info.pos
    		pe := p + info.size
    		for ; p < pe; p++ {
    			if b[0] != rb.byte[p] {
    				return false
    			}
    			b = b[1:]
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  4. src/bytes/buffer_test.go

    		}
    	})
    	if n > 0 {
    		t.Errorf("allocations occurred while appending")
    	}
    }
    
    func TestRuneIO(t *testing.T) {
    	const NRune = 1000
    	// Built a test slice while we write the data
    	b := make([]byte, utf8.UTFMax*NRune)
    	var buf Buffer
    	n := 0
    	for r := rune(0); r < NRune; r++ {
    		size := utf8.EncodeRune(b[n:], r)
    		nbytes, err := buf.WriteRune(r)
    		if err != nil {
    			t.Fatalf("WriteRune(%U) error: %s", r, err)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:31:36 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  5. src/unicode/letter.go

    				// is odd so we take the low bit from _case.
    				return rune(cr.Lo) + ((r-rune(cr.Lo))&^1 | rune(_case&1)), true
    			}
    			return r + delta, true
    		}
    		if r < rune(cr.Lo) {
    			hi = m
    		} else {
    			lo = m + 1
    		}
    	}
    	return r, false
    }
    
    // To maps the rune to the specified case: [UpperCase], [LowerCase], or [TitleCase].
    func To(_case int, r rune) rune {
    	r, _ = to(_case, r, CaseRanges)
    	return r
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 06 20:02:46 UTC 2023
    - 10K bytes
    - Viewed (0)
  6. src/unicode/utf16/utf16.go

    	}
    	return replacementChar
    }
    
    // EncodeRune returns the UTF-16 surrogate pair r1, r2 for the given rune.
    // If the rune is not a valid Unicode code point or does not need encoding,
    // EncodeRune returns U+FFFD, U+FFFD.
    func EncodeRune(r rune) (r1, r2 rune) {
    	if r < surrSelf || r > maxRune {
    		return replacementChar, replacementChar
    	}
    	r -= surrSelf
    	return surr1 + (r>>10)&0x3ff, surr2 + r&0x3ff
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 19:08:48 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  7. src/internal/fuzz/encoding_test.go

    }
    
    func FuzzRuneRoundTrip(f *testing.F) {
    	f.Add(rune(-1))
    	f.Add(rune(0xd800))
    	f.Add(rune(0xdfff))
    	f.Add(rune(unicode.ReplacementChar))
    	f.Add(rune(unicode.MaxASCII))
    	f.Add(rune(unicode.MaxLatin1))
    	f.Add(rune(unicode.MaxRune))
    	f.Add(rune(unicode.MaxRune + 1))
    	f.Add(rune(-0x80000000))
    	f.Add(rune(0x7fffffff))
    
    	f.Fuzz(func(t *testing.T, r1 rune) {
    		b := marshalCorpusFile(r1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 00:20:34 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  8. src/unicode/utf16/utf16_test.go

    	}
    }
    
    type decodeTest struct {
    	in  []uint16
    	out []rune
    }
    
    var decodeTests = []decodeTest{
    	{[]uint16{1, 2, 3, 4}, []rune{1, 2, 3, 4}},
    	{[]uint16{0xffff, 0xd800, 0xdc00, 0xd800, 0xdc01, 0xd808, 0xdf45, 0xdbff, 0xdfff},
    		[]rune{0xffff, 0x10000, 0x10001, 0x12345, 0x10ffff}},
    	{[]uint16{0xd800, 'a'}, []rune{0xfffd, 'a'}},
    	{[]uint16{0xdfff}, []rune{0xfffd}},
    }
    
    func TestAllocationsDecode(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 19:08:48 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  9. src/regexp/onepass_test.go

    		[]rune{69, 69},
    		[]rune{69, 69},
    		[]rune{},
    		[]uint32{mergeFailed},
    		1, 2,
    	},
    	{
    		// append right-first
    		[]rune{69, 69},
    		[]rune{71, 71},
    		[]rune{69, 69, 71, 71},
    		[]uint32{1, 2},
    		1, 2,
    	},
    	{
    		// append, left-first
    		[]rune{71, 71},
    		[]rune{69, 69},
    		[]rune{69, 69, 71, 71},
    		[]uint32{2, 1},
    		1, 2,
    	},
    	{
    		// successful interleave
    		[]rune{60, 60, 71, 71, 101, 101},
    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