Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for esc (0.02 sec)

  1. pilot/pkg/serviceregistry/kube/controller/endpointslice.go

    	if event == model.EventDelete {
    		esc.deleteEndpointSlice(ep)
    	} else {
    		esc.updateEndpointSlice(ep)
    	}
    	hostnames := esc.c.hostNamesForNamespacedName(namespacedName)
    	// Trigger EDS push for all hostnames.
    	esc.pushEDS(hostnames, namespacedName.Namespace)
    
    	name := serviceNameForEndpointSlice(esLabels)
    	namespace := ep.GetNamespace()
    	svc := esc.c.services.Get(name, namespace)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 16.9K bytes
    - Viewed (0)
  2. src/html/template/js_test.go

    		{"foo\xed\xa0\x80bar", "foo\xed\xa0\x80bar"},
    	}
    
    	for _, test := range tests {
    		esc := jsStrEscaper(test.x)
    		if esc != test.esc {
    			t.Errorf("%q: want %q got %q", test.x, test.esc, esc)
    		}
    	}
    }
    
    func TestJSRegexpEscaper(t *testing.T) {
    	tests := []struct {
    		x   any
    		esc string
    	}{
    		{"", `(?:)`},
    		{"foo", `foo`},
    		{"\u0000", `\u0000`},
    		{"\t", `\t`},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 27 02:20:11 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  3. src/text/tabwriter/tabwriter_test.go

    		8, 0, 1, '.', Debug,
    		"",
    		"",
    	},
    
    	{
    		"1b esc stripped",
    		8, 0, 1, '.', StripEscape,
    		"\xff\xff",
    		"",
    	},
    
    	{
    		"1b esc",
    		8, 0, 1, '.', 0,
    		"\xff\xff",
    		"\xff\xff",
    	},
    
    	{
    		"1c esc stripped",
    		8, 0, 1, '.', StripEscape,
    		"\xff\t\xff",
    		"\t",
    	},
    
    	{
    		"1c esc",
    		8, 0, 1, '.', 0,
    		"\xff\t\xff",
    		"\xff\t\xff",
    	},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 16:46:34 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  4. src/encoding/xml/xml.go

    	var esc []byte
    	last := 0
    	for i := 0; i < len(s); {
    		r, width := utf8.DecodeRune(s[i:])
    		i += width
    		switch r {
    		case '"':
    			esc = escQuot
    		case '\'':
    			esc = escApos
    		case '&':
    			esc = escAmp
    		case '<':
    			esc = escLT
    		case '>':
    			esc = escGT
    		case '\t':
    			esc = escTab
    		case '\n':
    			if !escapeNewline {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 18:46:41 UTC 2024
    - 47.3K bytes
    - Viewed (0)
  5. src/html/template/escape.go

    		lastCmd := p.Cmds[pipelineLen-1]
    		if idNode, ok := lastCmd.Args[0].(*parse.IdentifierNode); ok {
    			if esc := idNode.Ident; predefinedEscapers[esc] {
    				// Pipeline ends with a predefined escaper.
    				if len(p.Cmds) == 1 && len(lastCmd.Args) > 1 {
    					// Special case: pipeline is of the form {{ esc arg1 arg2 ... argN }},
    					// where esc is the predefined escaper, and arg1...argN are its arguments.
    					// Convert this into the equivalent form
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 02 15:18:39 UTC 2023
    - 32.4K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/walk/convert.go

    		xe.SetBounded(true)
    		value = xe
    	case n.Op() == ir.ONAME && n.(*ir.Name).Class == ir.PEXTERN && n.(*ir.Name).Readonly():
    		// n is a readonly global; use it directly.
    		value = n
    	case conv.Esc() == ir.EscNone && fromType.Size() <= 1024:
    		// n does not escape. Use a stack temporary initialized to n.
    		value = typecheck.TempAt(base.Pos, ir.CurFunc, fromType)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 09 17:28:22 UTC 2023
    - 18.2K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/walk/complit.go

    		}
    		a = initStackTemp(init, x, vstat)
    	} else if n.Esc() == ir.EscNone {
    		a = initStackTemp(init, typecheck.TempAt(base.Pos, ir.CurFunc, t), vstat)
    	} else {
    		a = ir.NewUnaryExpr(base.Pos, ir.ONEW, ir.TypeNode(t))
    	}
    	appendWalkStmt(init, ir.NewAssignStmt(base.Pos, vauto, a))
    
    	if vstat != nil && n.Prealloc == nil && n.Esc() != ir.EscNone {
    		// If we allocated on the heap with ONEW, copy the static to the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:03:54 UTC 2023
    - 19.5K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/walk/builtin.go

    // walkMakeMap walks an OMAKEMAP node.
    func walkMakeMap(n *ir.MakeExpr, init *ir.Nodes) ir.Node {
    	t := n.Type()
    	hmapType := reflectdata.MapType()
    	hint := n.Len
    
    	// var h *hmap
    	var h ir.Node
    	if n.Esc() == ir.EscNone {
    		// Allocate hmap on stack.
    
    		// var hv hmap
    		// h = &hv
    		h = stackTempAddr(init, hmapType)
    
    		// Allocate one bucket pointed to by hmap.buckets on stack if hint
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 22:35:22 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  9. src/html/template/template.go

    // nameSpace is the data structure shared by all templates in an association.
    type nameSpace struct {
    	mu      sync.Mutex
    	set     map[string]*Template
    	escaped bool
    	esc     escaper
    }
    
    // Templates returns a slice of the templates associated with t, including t
    // itself.
    func (t *Template) Templates() []*Template {
    	ns := t.nameSpace
    	ns.mu.Lock()
    	defer ns.mu.Unlock()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 21:00:46 UTC 2024
    - 17K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ir/fmt.go

    		// Useful to see where Defn is set and what node it points to
    		fmt.Fprintf(w, " outer(%p)", n.Name().Outer)
    	}
    
    	if EscFmt != nil {
    		if esc := EscFmt(n); esc != "" {
    			fmt.Fprintf(w, " %s", esc)
    		}
    	}
    
    	if n.Sym() != nil && n.Op() != ONAME && n.Op() != ONONAME && n.Op() != OTYPE {
    		fmt.Fprintf(w, " %+v", n.Sym())
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 05 15:20:28 UTC 2023
    - 26K bytes
    - Viewed (0)
Back to top