Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 110 for indexByte (0.22 sec)

  1. src/vendor/golang.org/x/sys/cpu/cpu.go

    func processOptions() {
    	env := os.Getenv("GODEBUG")
    field:
    	for env != "" {
    		field := ""
    		i := strings.IndexByte(env, ',')
    		if i < 0 {
    			field, env = env, ""
    		} else {
    			field, env = env[:i], env[i+1:]
    		}
    		if len(field) < 4 || field[:4] != "cpu." {
    			continue
    		}
    		i = strings.IndexByte(field, '=')
    		if i < 0 {
    			print("GODEBUG sys/cpu: no value specified for \"", field, "\"\n")
    			continue
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  2. src/cmd/dist/testjson.go

    }
    
    func (f *testJSONFilter) Write(b []byte) (int, error) {
    	bn := len(b)
    
    	// Process complete lines, and buffer any incomplete lines.
    	for len(b) > 0 {
    		nl := bytes.IndexByte(b, '\n')
    		if nl < 0 {
    			f.lineBuf.Write(b)
    			break
    		}
    		var line []byte
    		if f.lineBuf.Len() > 0 {
    			// We have buffered data. Add the rest of the line from b and
    			// process the complete line.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 20:46:32 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  3. internal/jwt/parser.go

    func ParseUnverifiedStandardClaims(token []byte, claims *StandardClaims, buf []byte) (*SigningMethodHMAC, error) {
    	if bytes.Count(token, []byte(".")) != 2 {
    		return nil, jwtgo.ErrSignatureInvalid
    	}
    
    	i := bytes.IndexByte(token, '.')
    	j := bytes.LastIndexByte(token, '.')
    
    	n, err := base64DecodeBytes(token[:i], buf)
    	if err != nil {
    		return nil, &jwtgo.ValidationError{Inner: err, Errors: jwtgo.ValidationErrorMalformed}
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue May 09 07:53:08 UTC 2023
    - 13.9K bytes
    - Viewed (0)
  4. src/cmd/go/internal/vet/vetflag.go

    				log.Fatalf("%s requires a filename", arg)
    			}
    			vetTool = args[i+1]
    			return
    		} else if strings.HasPrefix(arg, "-vettool=") ||
    			strings.HasPrefix(arg, "--vettool=") {
    			vetTool = arg[strings.IndexByte(arg, '=')+1:]
    			return
    		}
    	}
    }
    
    // vetFlags processes the command line, splitting it at the first non-flag
    // into the list of flags and list of packages.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 19 14:42:39 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  5. src/internal/filepathlite/path.go

    func FromSlash(path string) string {
    	if Separator == '/' {
    		return path
    	}
    	return replaceStringByte(path, '/', Separator)
    }
    
    func replaceStringByte(s string, old, new byte) string {
    	if stringslite.IndexByte(s, old) == -1 {
    		return s
    	}
    	n := []byte(s)
    	for i := range n {
    		if n[i] == old {
    			n[i] = new
    		}
    	}
    	return string(n)
    }
    
    // Split is filepath.Split.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 23:07:50 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/sys/unix/xattr_bsd.go

    //go:build freebsd || netbsd
    
    package unix
    
    import (
    	"strings"
    	"unsafe"
    )
    
    // Derive extattr namespace and attribute name
    
    func xattrnamespace(fullattr string) (ns int, attr string, err error) {
    	s := strings.IndexByte(fullattr, '.')
    	if s == -1 {
    		return -1, "", ENOATTR
    	}
    
    	namespace := fullattr[0:s]
    	attr = fullattr[s+1:]
    
    	switch namespace {
    	case "user":
    		return EXTATTR_NAMESPACE_USER, attr, nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  7. src/cmd/vendor/rsc.io/markdown/html.go

    		// zero or more characters not including ", and a final ".”
    		if j := strings.IndexByte(s[i+1:], s[i]); j >= 0 {
    			end := i + 1 + j + 1
    			return s[i:end], end, true
    		}
    	}
    
    	// β€œAn unquoted attribute value is a nonempty string of characters
    	// not including spaces, tabs, line endings, ", ', =, <, >, or `.”
    	j := i
    	for j < len(s) && strings.IndexByte(" \t\n\"'=<>`", s[j]) < 0 {
    		j++
    	}
    	if j > i {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  8. cmd/streaming-v4-unsigned.go

    	input := bufio.NewScanner(bytes.NewReader(valueBuffer.Bytes()))
    	for input.Scan() {
    		line := strings.TrimSpace(input.Text())
    		if line == "" {
    			continue
    		}
    		// Find first separator.
    		idx := strings.IndexByte(line, trailerKVSeparator[0])
    		if idx <= 0 || idx >= len(line) {
    			if cr.debug {
    				fmt.Printf("Could not find separator, got %q\n", line)
    			}
    			return errMalformedEncoding
    		}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat May 06 02:53:12 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  9. src/encoding/csv/reader.go

    			if i >= 0 {
    				field = field[:i]
    			} else {
    				field = field[:len(field)-lengthNL(field)]
    			}
    			// Check to make sure a quote does not appear in field.
    			if !r.LazyQuotes {
    				if j := bytes.IndexByte(field, '"'); j >= 0 {
    					col := pos.col + j
    					err = &ParseError{StartLine: recLine, Line: r.numLine, Column: col, Err: ErrBareQuote}
    					break parseField
    				}
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:32:28 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  10. src/cmd/internal/test2json/test2json.go

    			c.testName = c.report[indent-1].Test
    		}
    		c.output.write(origLine)
    		return
    	}
    
    	// Parse out action and test name.
    	i := 0
    	if actionColon {
    		i = bytes.IndexByte(line, ':') + 1
    	}
    	if i == 0 {
    		i = len(updates[0])
    	}
    	action := strings.ToLower(strings.TrimSuffix(strings.TrimSpace(string(line[4:i])), ":"))
    	name := strings.TrimSpace(string(line[i:]))
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 09 17:33:07 UTC 2022
    - 14.5K bytes
    - Viewed (0)
Back to top