Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 60 for appendTo (0.17 sec)

  1. src/cmd/asm/internal/lex/stack.go

    // it resumes reading the next one down.
    type Stack struct {
    	tr []TokenReader
    }
    
    // Push adds tr to the top (end) of the input stack. (Popping happens automatically.)
    func (s *Stack) Push(tr TokenReader) {
    	s.tr = append(s.tr, tr)
    }
    
    func (s *Stack) Next() ScanToken {
    	tos := s.tr[len(s.tr)-1]
    	tok := tos.Next()
    	for tok == scanner.EOF && len(s.tr) > 1 {
    		tos.Close()
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Jan 09 22:33:23 GMT 2017
    - 1.2K bytes
    - Viewed (0)
  2. src/archive/tar/reader.go

    			if (len(sparseMap)%2 == 0 && key != paxGNUSparseOffset) ||
    				(len(sparseMap)%2 == 1 && key != paxGNUSparseNumBytes) ||
    				strings.Contains(value, ",") {
    				return nil, ErrHeader
    			}
    			sparseMap = append(sparseMap, value)
    		default:
    			paxHdrs[key] = value
    		}
    	}
    	if len(sparseMap) > 0 {
    		paxHdrs[paxGNUSparseMap] = strings.Join(sparseMap, ",")
    	}
    	return paxHdrs, nil
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 08 01:59:14 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  3. src/archive/tar/writer_test.go

    	for len(sa) > 0 && len(sb) > 0 {
    		if sa[0] == sb[0] {
    			ss = append(ss, identity+sa[0])
    		} else {
    			ss = append(ss, uniqueA+sa[0])
    			ss = append(ss, uniqueB+sb[0])
    		}
    		sa, sb = sa[1:], sb[1:]
    	}
    	for len(sa) > 0 {
    		ss = append(ss, uniqueA+sa[0])
    		sa = sa[1:]
    	}
    	for len(sb) > 0 {
    		ss = append(ss, uniqueB+sb[0])
    		sb = sb[1:]
    	}
    	return strings.Join(ss, "\n")
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Feb 27 16:39:23 GMT 2024
    - 38.7K bytes
    - Viewed (0)
  4. src/archive/tar/tar_test.go

    		}
    		if !v.wantValid {
    			continue
    		}
    		gotAligned := alignSparseEntries(append([]sparseEntry{}, v.in...), v.size)
    		if !equalSparseEntries(gotAligned, v.wantAligned) {
    			t.Errorf("test %d, alignSparseEntries():\ngot  %v\nwant %v", i, gotAligned, v.wantAligned)
    		}
    		gotInverted := invertSparseEntries(append([]sparseEntry{}, v.in...), v.size)
    		if !equalSparseEntries(gotInverted, v.wantInverted) {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24K bytes
    - Viewed (0)
  5. api/go1.19.txt

    pkg flag, method (*FlagSet) TextVar(encoding.TextUnmarshaler, string, encoding.TextMarshaler, string) #45754
    pkg fmt, func Append([]uint8, ...interface{}) []uint8 #47579
    pkg fmt, func Appendf([]uint8, string, ...interface{}) []uint8 #47579
    pkg fmt, func Appendln([]uint8, ...interface{}) []uint8 #47579
    pkg go/doc, method (*Package) HTML(string) []uint8 #51082
    pkg go/doc, method (*Package) Markdown(string) []uint8 #51082
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Fri Dec 02 16:29:41 GMT 2022
    - 17.9K bytes
    - Viewed (1)
  6. src/cmd/asm/internal/asm/asm.go

    	"cmd/internal/sys"
    )
    
    // TODO: configure the architecture
    
    var testOut *strings.Builder // Gathers output when testing.
    
    // append adds the Prog to the end of the program-thus-far.
    // If doLabel is set, it also defines the labels collect for this Prog.
    func (p *Parser) append(prog *obj.Prog, cond string, doLabel bool) {
    	if cond != "" {
    		switch p.arch.Family {
    		case sys.ARM:
    			if !arch.ARMConditionCodes(prog, cond) {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Feb 21 14:34:57 GMT 2024
    - 25.3K bytes
    - Viewed (0)
  7. src/cmd/asm/internal/asm/endtoend_test.go

    			switch c {
    			case '{', '[':
    				nest++
    			case '}', ']':
    				nest--
    			case ',':
    				buf = append(buf, ',')
    				if nest == 0 {
    					buf = append(buf, ' ')
    				}
    				for i+1 < len(printed) && (printed[i+1] == ' ' || printed[i+1] == '\t') {
    					i++
    				}
    				continue
    			}
    			buf = append(buf, c)
    		}
    
    		f := strings.Fields(string(buf))
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Dec 07 18:42:59 GMT 2023
    - 11.6K bytes
    - Viewed (0)
  8. src/cmd/api/testdata/src/pkg/p4/p4.go

    }
    
    func (p Pair[X1, _]) First() X1 {
    	return p.f1
    }
    
    func (p Pair[_, X2]) Second() X2 {
    	return p.f2
    }
    
    // Deprecated: Use something else.
    func Clone[S ~[]T, T any](s S) S {
    	return append(S(nil), s...)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Dec 02 16:29:41 GMT 2022
    - 552 bytes
    - Viewed (0)
  9. src/cmd/asm/internal/lex/lex.go

    func Tokenize(str string) []Token {
    	t := NewTokenizer("command line", strings.NewReader(str), nil)
    	var tokens []Token
    	for {
    		tok := t.Next()
    		if tok == scanner.EOF {
    			break
    		}
    		tokens = append(tokens, Make(tok, t.Text()))
    	}
    	return tokens
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 18:31:05 GMT 2023
    - 4.1K bytes
    - Viewed (0)
  10. api/go1.2.txt

    pkg syscall (linux-arm-cgo), const NLMSG_NOOP ideal-int
    pkg syscall (linux-arm-cgo), const NLMSG_OVERRUN ideal-int
    pkg syscall (linux-arm-cgo), const NLM_F_ACK ideal-int
    pkg syscall (linux-arm-cgo), const NLM_F_APPEND ideal-int
    pkg syscall (linux-arm-cgo), const NLM_F_ATOMIC ideal-int
    pkg syscall (linux-arm-cgo), const NLM_F_CREATE ideal-int
    pkg syscall (linux-arm-cgo), const NLM_F_DUMP ideal-int
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Fri Oct 18 04:36:59 GMT 2013
    - 1.9M bytes
    - Viewed (2)
Back to top