Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 158 for isspace (0.15 sec)

  1. pkg/util/procfs/procfs_linux.go

    			if len(parts) == 0 {
    				continue
    			}
    			// Split the command line itself we are interested in just the first part
    			exe := strings.FieldsFunc(string(parts[0]), func(c rune) bool {
    				return unicode.IsSpace(c) || c == ':'
    			})
    			if len(exe) == 0 {
    				continue
    			}
    			// Check if the name of the executable is what we are looking for
    			if re.MatchString(exe[0]) {
    				// Grab the PID from the directory path
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jan 16 09:22:35 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  2. src/fmt/fmt_test.go

    	}
    }
    
    func TestIsSpace(t *testing.T) {
    	// This tests the internal isSpace function.
    	// IsSpace = isSpace is defined in export_test.go.
    	for i := rune(0); i <= unicode.MaxRune; i++ {
    		if IsSpace(i) != unicode.IsSpace(i) {
    			t.Errorf("isSpace(%U) = %v, want %v", i, IsSpace(i), unicode.IsSpace(i))
    		}
    	}
    }
    
    func hideFromVet(s string) string { return s }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:31:55 UTC 2024
    - 58.6K bytes
    - Viewed (0)
  3. src/cmd/link/internal/benchmark/bench.go

    // makeBenchString makes a benchmark string consumable by Go's benchmarking tools.
    func makeBenchString(name string) string {
    	needCap := true
    	ret := []rune("Benchmark")
    	for _, r := range name {
    		if unicode.IsSpace(r) {
    			needCap = true
    			continue
    		}
    		if needCap {
    			r = unicode.ToUpper(r)
    			needCap = false
    		}
    		ret = append(ret, r)
    	}
    	return string(ret)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 30 18:10:36 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  4. src/log/slog/text_handler.go

    			// Quote anything except a backslash that would need quoting in a
    			// JSON string, as well as space and '='
    			if b != '\\' && (b == ' ' || b == '=' || !safeSet[b]) {
    				return true
    			}
    			i++
    			continue
    		}
    		r, size := utf8.DecodeRuneInString(s[i:])
    		if r == utf8.RuneError || unicode.IsSpace(r) || !unicode.IsPrint(r) {
    			return true
    		}
    		i += size
    	}
    	return false
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 23 22:56:07 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  5. src/cmd/go/internal/work/shell_test.go

    	f.Add([]byte(`${FOO}`))
    	f.Add([]byte(`\${FOO}`))
    	f.Add([]byte(`$(/bin/false)`))
    	f.Add([]byte(`\$(/bin/false)`))
    	f.Add([]byte(`$((0))`))
    	f.Add([]byte(`\$((0))`))
    	f.Add([]byte(`unescaped space`))
    	f.Add([]byte(`escaped\ space`))
    	f.Add([]byte(`"unterminated quote`))
    	f.Add([]byte(`'unterminated quote`))
    	f.Add([]byte(`unterminated escape\`))
    	f.Add([]byte(`"quote with unterminated escape\`))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 15 15:30:05 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  6. src/encoding/csv/writer.go

    			}
    		}
    	} else {
    		if strings.ContainsRune(field, w.Comma) || strings.ContainsAny(field, "\"\r\n") {
    			return true
    		}
    	}
    
    	r1, _ := utf8.DecodeRuneInString(field)
    	return unicode.IsSpace(r1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:04:28 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/noder/noder.go

    		var path string
    	Switch:
    		switch args[0] {
    		default:
    			i := len(args)
    			for j, c := range args {
    				if unicode.IsSpace(c) {
    					i = j
    					break
    				}
    			}
    			path = args[:i]
    			args = args[i:]
    
    		case '`':
    			i := strings.Index(args[1:], "`")
    			if i < 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 11 20:40:57 UTC 2023
    - 12.5K bytes
    - Viewed (0)
  8. src/cmd/cgo/internal/testerrors/badsym_test.go

    	out := goEnv(t, "GOGCCFLAGS")
    	quote := '\000'
    	start := 0
    	lastSpace := true
    	backslash := false
    	s := string(out)
    	for i, c := range s {
    		if quote == '\000' && unicode.IsSpace(c) {
    			if !lastSpace {
    				cc = append(cc, s[start:i])
    				lastSpace = true
    			}
    		} else {
    			if lastSpace {
    				start = i
    				lastSpace = false
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 19 01:37:31 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  9. src/regexp/testdata/testregex.c

    				{
    					while (*++p && !isspace(*p));
    					while (isspace(*p))
    						p++;
    					printf("NOTE	%s\n", p);
    				}
    				continue;
    			}
    			j = 0;
    			i = 0;
    			field[i++] = p;
    			for (;;)
    			{
    				switch (*p++)
    				{
    				case 0:
    					p--;
    					j = 0;
    					goto checkfield;
    				case '\t':
    					*(delim[i] = p - 1) = 0;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 51.3K bytes
    - Viewed (0)
  10. src/crypto/tls/key_schedule_test.go

    	"hash"
    	"strings"
    	"testing"
    	"unicode"
    )
    
    // This file contains tests derived from draft-ietf-tls-tls13-vectors-07.
    
    func parseVector(v string) []byte {
    	v = strings.Map(func(c rune) rune {
    		if unicode.IsSpace(c) {
    			return -1
    		}
    		return c
    	}, v)
    	parts := strings.Split(v, ":")
    	v = parts[len(parts)-1]
    	res, err := hex.DecodeString(v)
    	if err != nil {
    		panic(err)
    	}
    	return res
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 14:56:25 UTC 2024
    - 13.2K bytes
    - Viewed (0)
Back to top