Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for CopyToken (0.12 sec)

  1. src/encoding/xml/xml_test.go

    	var tok1 Token = elt
    	tok2 := CopyToken(tok1)
    	if tok1.(StartElement).Attr[0].Value != "en" {
    		t.Error("CopyToken overwrote Attr[0]")
    	}
    	if !reflect.DeepEqual(tok1, tok2) {
    		t.Error("CopyToken(StartElement) != StartElement")
    	}
    	tok1.(StartElement).Attr[0] = Attr{Name{"", "lang"}, "de"}
    	if reflect.DeepEqual(tok1, tok2) {
    		t.Error("CopyToken(CharData) uses same buffer.")
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 36.9K bytes
    - Viewed (0)
  2. src/encoding/xml/xml.go

    // The bytes do not include the <! and > markers.
    type Directive []byte
    
    // Copy creates a new copy of Directive.
    func (d Directive) Copy() Directive { return Directive(bytes.Clone(d)) }
    
    // CopyToken returns a copy of a Token.
    func CopyToken(t Token) Token {
    	switch v := t.(type) {
    	case CharData:
    		return v.Copy()
    	case Comment:
    		return v.Copy()
    	case Directive:
    		return v.Copy()
    	case ProcInst:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 18:46:41 UTC 2024
    - 47.3K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"(UnmarshalError).Error", Method, 0},
    		{"Attr", Type, 0},
    		{"Attr.Name", Field, 0},
    		{"Attr.Value", Field, 0},
    		{"CharData", Type, 0},
    		{"Comment", Type, 0},
    		{"CopyToken", Func, 0},
    		{"Decoder", Type, 0},
    		{"Decoder.AutoClose", Field, 0},
    		{"Decoder.CharsetReader", Field, 0},
    		{"Decoder.DefaultSpace", Field, 1},
    		{"Decoder.Entity", Field, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
  4. api/go1.txt

    pkg encoding/pem, type Block struct, Headers map[string]string
    pkg encoding/pem, type Block struct, Type string
    pkg encoding/xml, const Header ideal-string
    pkg encoding/xml, func CopyToken(Token) Token
    pkg encoding/xml, func Escape(io.Writer, []uint8)
    pkg encoding/xml, func Marshal(interface{}) ([]uint8, error)
    pkg encoding/xml, func MarshalIndent(interface{}, string, string) ([]uint8, error)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
Back to top