Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 133 for atoi32 (0.29 sec)

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

    			rel = rel[:i]
    			break
    		}
    	}
    
    	next := func() (int, bool) {
    		for i := 0; i < len(rel); i++ {
    			if rel[i] == '.' {
    				ver, err := strconv.Atoi(rel[:i])
    				rel = rel[i+1:]
    				return ver, err == nil
    			}
    		}
    		ver, err := strconv.Atoi(rel)
    		rel = ""
    		return ver, err == nil
    	}
    	if major, ok = next(); !ok || rel == "" {
    		return
    	}
    	if minor, ok = next(); !ok || rel == "" {
    		return
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 30 17:48:21 UTC 2023
    - 1K bytes
    - Viewed (0)
  2. src/fmt/stringer_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package fmt_test
    
    import (
    	. "fmt"
    	"testing"
    )
    
    type TI int
    type TI8 int8
    type TI16 int16
    type TI32 int32
    type TI64 int64
    type TU uint
    type TU8 uint8
    type TU16 uint16
    type TU32 uint32
    type TU64 uint64
    type TUI uintptr
    type TF float64
    type TF32 float32
    type TF64 float64
    type TB bool
    type TS string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 2.1K bytes
    - Viewed (0)
  3. test/fixedbugs/issue7690.go

    		return
    	}
    	m2 := re.FindStringSubmatch(string(buf2))
    	if m2 == nil {
    		println("BUG: cannot find main.main in second trace")
    		return
    	}
    
    	n1, _ := strconv.Atoi(m1[1])
    	n2, _ := strconv.Atoi(m2[1])
    	if n1+1 != n2 {
    		println("BUG: expect runtime.Stack on back to back lines, have", n1, n2)
    		println(string(buf1))
    		println(string(buf2))
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 1.2K bytes
    - Viewed (0)
  4. src/time/zoneinfo_plan9.go

    			return UTC, nil
    		}
    		return nil, errBadData
    	}
    
    	var zones [2]zone
    
    	// standard timezone offset
    	o, err := atoi(f[1])
    	if err != nil {
    		return nil, errBadData
    	}
    	zones[0] = zone{name: f[0], offset: o, isDST: false}
    
    	// alternate timezone offset
    	o, err = atoi(f[3])
    	if err != nil {
    		return nil, errBadData
    	}
    	zones[1] = zone{name: f[2], offset: o, isDST: true}
    
    	// transition time pairs
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 16 23:09:19 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/sys/plan9/syscall_plan9.go

    			p = i + 1
    			nf++
    		}
    	}
    	f[nf] = buf[p:]
    	nf++
    
    	if nf != len(f) {
    		return syscall.ErrorString("invalid wait message")
    	}
    	w.Pid = int(atoi(f[0]))
    	w.Time[0] = uint32(atoi(f[1]))
    	w.Time[1] = uint32(atoi(f[2]))
    	w.Time[2] = uint32(atoi(f[3]))
    	w.Msg = cstring(f[4])
    	if w.Msg == "''" {
    		// await() returns '' for no error
    		w.Msg = ""
    	}
    	return
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 16 22:24:28 UTC 2022
    - 7K bytes
    - Viewed (0)
  6. internal/config/heal/heal.go

    	}
    	cfg.IOCount, err = strconv.Atoi(env.Get(EnvIOCount, kvs.GetWithDefault(IOCount, DefaultKVS)))
    	if err != nil {
    		return cfg, fmt.Errorf("'heal:max_io' value invalid: %w", err)
    	}
    	if ws := env.Get(EnvDriveWorkers, kvs.GetWithDefault(DriveWorkers, DefaultKVS)); ws != "" {
    		w, err := strconv.Atoi(ws)
    		if err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  7. src/syscall/syscall_plan9.go

    			p = i + 1
    			nf++
    		}
    	}
    	f[nf] = buf[p:]
    	nf++
    
    	if nf != len(f) {
    		return NewError("invalid wait message")
    	}
    	w.Pid = int(atoi(f[0]))
    	w.Time[0] = uint32(atoi(f[1]))
    	w.Time[1] = uint32(atoi(f[2]))
    	w.Time[2] = uint32(atoi(f[3]))
    	w.Msg = cstring(f[4])
    	if w.Msg == "''" {
    		// await() returns '' for no error
    		w.Msg = ""
    	}
    	return
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  8. src/os/user/listgroups_unix.go

    	"io"
    	"os"
    	"strconv"
    )
    
    func listGroupsFromReader(u *User, r io.Reader) ([]string, error) {
    	if u.Username == "" {
    		return nil, errors.New("user: list groups: empty username")
    	}
    	primaryGid, err := strconv.Atoi(u.Gid)
    	if err != nil {
    		return nil, fmt.Errorf("user: list groups for %s: invalid gid %q", u.Username, u.Gid)
    	}
    
    	userCommas := []byte("," + u.Username + ",")  // ,john,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 07 23:34:21 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  9. src/strconv/doc.go

    // Package strconv implements conversions to and from string representations
    // of basic data types.
    //
    // # Numeric Conversions
    //
    // The most common numeric conversions are [Atoi] (string to int) and [Itoa] (int to string).
    //
    //	i, err := strconv.Atoi("-42")
    //	s := strconv.Itoa(-42)
    //
    // These assume decimal and the Go int type.
    //
    // [ParseBool], [ParseFloat], [ParseInt], and [ParseUint] convert strings to values:
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:21:28 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types/goversion.go

    	}
    
    	matches := goVersionRE.FindStringSubmatch(s)
    	if matches == nil {
    		return lang{}, fmt.Errorf(`should be something like "go1.12"`)
    	}
    	major, err := strconv.Atoi(matches[1])
    	if err != nil {
    		return lang{}, err
    	}
    	minor, err := strconv.Atoi(matches[2])
    	if err != nil {
    		return lang{}, err
    	}
    	return lang{major: major, minor: minor}, nil
    }
    
    // currentLang returns the current language version.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 08 21:36:02 UTC 2024
    - 2.4K bytes
    - Viewed (0)
Back to top