- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 138 for indexByte (0.34 sec)
-
test/fixedbugs/issue19658.go
out := buf.Bytes() panicIdx := bytes.Index(out, []byte("panic: ")) if panicIdx == -1 { log.Fatalf("expected a panic in output for %s, got: %s", tc.Type, out) } eolIdx := bytes.IndexByte(out[panicIdx:], '\n') + panicIdx if panicIdx == -1 { log.Fatalf("expected a newline in output for %s after the panic, got: %s", tc.Type, out) } out = out[0:eolIdx] if string(out) != tc.Expect {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 11 20:56:32 UTC 2023 - 2.3K bytes - Viewed (0) -
src/html/template/css.go
func decodeCSS(s []byte) []byte { i := bytes.IndexByte(s, '\\') if i == -1 { return s } // The UTF-8 sequence for a codepoint is never longer than 1 + the // number hex digits need to represent that codepoint, so len(s) is an // upper bound on the output length. b := make([]byte, 0, len(s)) for len(s) != 0 { i := bytes.IndexByte(s, '\\') if i == -1 { i = len(s) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 02 19:38:18 UTC 2023 - 7K bytes - Viewed (0) -
src/internal/bytealg/indexbyte_s390x.s
// Copyright 2018 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. #include "go_asm.h" #include "textflag.h" TEXT ·IndexByte(SB),NOSPLIT|NOFRAME,$0-40 MOVD b_base+0(FP), R3// b_base => R3 MOVD b_len+8(FP), R4 // b_len => R4 MOVBZ c+24(FP), R5 // c => R5 MOVD $ret+32(FP), R2 // &ret => R9 BR indexbytebody<>(SB)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 08 20:52:47 UTC 2018 - 2.5K bytes - Viewed (0) -
src/vendor/golang.org/x/net/http/httpguts/httplex.go
// contains token amongst its comma-separated tokens, ASCII // case-insensitively. func headerValueContainsToken(v string, token string) bool { for comma := strings.IndexByte(v, ','); comma != -1; comma = strings.IndexByte(v, ',') { if tokenEqual(trimOWS(v[:comma]), token) { return true } v = v[comma+1:] } return tokenEqual(trimOWS(v), token) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 8.7K bytes - Viewed (0) -
pkg/test/echo/server/forwarder/config.go
c.headers.Del(hostHeader) c.urlHost, c.urlPath = splitPath(c.Request.Url) c.method = c.Request.Method if c.method == "" { c.method = "GET" } if i := strings.IndexByte(c.Request.Url, ':'); i > 0 { c.scheme = scheme.Instance(strings.ToLower(c.Request.Url[0:i])) } else { return fmt.Errorf("missing protocol scheme in the request URL: %s", c.Request.Url) } var err error
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sun Oct 08 09:39:20 UTC 2023 - 9.8K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/mod/sumdb/tlog/note.go
// It returns the record id, the record text, and the remainder of text. func ParseRecord(msg []byte) (id int64, text, rest []byte, err error) { // Leading record id. i := bytes.IndexByte(msg, '\n') if i < 0 { return 0, nil, nil, errMalformedRecord } id, err = strconv.ParseInt(string(msg[:i]), 10, 64) if err != nil { return 0, nil, nil, errMalformedRecord } msg = msg[i+1:]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 29 20:10:15 UTC 2019 - 3.7K bytes - Viewed (0) -
src/cmd/vendor/rsc.io/markdown/heading.go
i := strings.LastIndexByte(s, '{') if i < 0 { return "", s } if i+1 >= len(s) || s[i+1] != '#' { p.corner = true // goldmark accepts {} return "", s } j := i + strings.IndexByte(s[i:], '}') if j < 0 || trimRightSpaceTab(s[j+1:]) != "" { return "", s } id = strings.TrimSpace(s[i+2 : j]) if id == "" { p.corner = true // goldmark accepts {#} return "", s }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 24 13:01:26 UTC 2024 - 3.6K bytes - Viewed (0) -
src/internal/bytealg/indexbyte_amd64.s
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build !plan9 #include "go_asm.h" #include "textflag.h" TEXT ·IndexByte(SB), NOSPLIT, $0-40 MOVQ b_base+0(FP), SI MOVQ b_len+8(FP), BX MOVB c+24(FP), AL LEAQ ret+32(FP), R8 JMP indexbytebody<>(SB) TEXT ·IndexByteString(SB), NOSPLIT, $0-32 MOVQ s_base+0(FP), SI
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 01 19:06:01 UTC 2023 - 3.1K bytes - Viewed (0) -
src/debug/dwarf/buf.go
return nil } data := b.data[0:n] b.data = b.data[n:] b.off += Offset(n) return data } func (b *buf) skip(n int) { b.bytes(n) } func (b *buf) string() string { i := bytes.IndexByte(b.data, 0) if i < 0 { b.error("underflow") return "" } s := string(b.data[0:i]) b.data = b.data[i+1:] b.off += Offset(i + 1) return s } func (b *buf) uint16() uint16 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 21 17:14:08 UTC 2022 - 3.7K bytes - Viewed (0) -
src/internal/bytealg/indexbyte_arm64.s
// Copyright 2018 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. #include "textflag.h" TEXT ·IndexByte(SB),NOSPLIT,$0-40 MOVD b_base+0(FP), R0 MOVD b_len+8(FP), R2 MOVBU c+24(FP), R1 MOVD $ret+32(FP), R8 B indexbytebody<>(SB) TEXT ·IndexByteString(SB),NOSPLIT,$0-32 MOVD s_base+0(FP), R0 MOVD s_len+8(FP), R2 MOVBU c+16(FP), R1
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 08 20:52:47 UTC 2018 - 3.3K bytes - Viewed (0)