Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 31 for containsLine (0.18 sec)

  1. src/runtime/runtime-gdb_test.go

    	// containing spaces to be double quoted.
    	var quote bool
    	for i, arg := range args {
    		if arg == "-iex" || arg == "-ex" {
    			quote = true
    		} else if quote {
    			if strings.ContainsRune(arg, ' ') {
    				args[i] = `"` + arg + `"`
    			}
    			quote = false
    		}
    	}
    }
    
    func TestGdbPython(t *testing.T) {
    	testGdbPython(t, false)
    }
    
    func TestGdbPythonCgo(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 23.2K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/syntax/printer.go

    		// case comment:
    		// 	// A multi-line comment acts like a newline; and a ""
    		// 	// comment implies by definition at least one newline.
    		// 	if text := p.pending[i].text; strings.HasPrefix(text, "/*") && strings.ContainsRune(text, '\n') {
    		// 		sawNewline = true
    		// 	}
    		// case eolComment:
    		// 	// TODO(gri) act depending on sawNewline
    		default:
    			panic("unreachable")
    		}
    	}
    
    	// print pending
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 24 07:17:27 UTC 2023
    - 21.5K bytes
    - Viewed (0)
  3. src/cmd/go/internal/script/engine.go

    			}
    			cmd.name = arg
    			return nil
    		}
    
    		cmd.rawArgs = append(cmd.rawArgs, rawArg)
    		return nil
    	}
    
    	for i := 0; ; i++ {
    		if !quoted && (i >= len(line) || strings.ContainsRune(argSepChars, rune(line[i]))) {
    			// Found arg-separating space.
    			if start >= 0 {
    				rawArg = append(rawArg, argFragment{s: line[start:i], quoted: false})
    				start = -1
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 27 01:16:19 UTC 2023
    - 22.2K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/mod/module/module.go

    		// We allow spaces (U+0020) in file names.
    		const allowed = "!#$%&()+,-.=@[]^_{}~ "
    		if '0' <= r && r <= '9' || 'A' <= r && r <= 'Z' || 'a' <= r && r <= 'z' {
    			return true
    		}
    		return strings.ContainsRune(allowed, r)
    	}
    	// It may be OK to add more ASCII punctuation here, but only carefully.
    	// For example Windows disallows < > \, and macOS disallows :, so we must not allow those.
    	return unicode.IsLetter(r)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 20:17:07 UTC 2024
    - 26.9K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/resolver.go

    	}
    	if s == "" {
    		return "", fmt.Errorf("empty string")
    	}
    	const illegalChars = `!"#$%&'()*,:;<=>?[\]^{|}` + "`\uFFFD"
    	for _, r := range s {
    		if !unicode.IsGraphic(r) || unicode.IsSpace(r) || strings.ContainsRune(illegalChars, r) {
    			return s, fmt.Errorf("invalid character %#U", r)
    		}
    	}
    	return s, nil
    }
    
    // declarePkgObj declares obj in the package scope, records its ident -> obj mapping,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 14:10:44 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  6. src/go/types/resolver.go

    	}
    	if s == "" {
    		return "", fmt.Errorf("empty string")
    	}
    	const illegalChars = `!"#$%&'()*,:;<=>?[\]^{|}` + "`\uFFFD"
    	for _, r := range s {
    		if !unicode.IsGraphic(r) || unicode.IsSpace(r) || strings.ContainsRune(illegalChars, r) {
    			return s, fmt.Errorf("invalid character %#U", r)
    		}
    	}
    	return s, nil
    }
    
    // declarePkgObj declares obj in the package scope, records its ident -> obj mapping,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 16:22:59 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/printf/printf.go

    		for _, flag := range state.flags {
    			// TODO: Disable complaint about '0' for Go 1.10. To be fixed properly in 1.11.
    			// See issues 23598 and 23605.
    			if flag == '0' {
    				continue
    			}
    			if !strings.ContainsRune(v.flags, rune(flag)) {
    				pass.ReportRangef(call, "%s format %s has unrecognized flag %c", state.name, state.format, flag)
    				return false
    			}
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 32.5K bytes
    - Viewed (0)
  8. src/go/internal/gccgoimporter/parser.go

    		p.expect('*')
    		p.expect('/')
    	}
    
    	name := p.parseName()
    	f := types.NewFunc(token.NoPos, pkg, name, p.parseFunctionType(pkg, nil))
    	p.skipInlineBody()
    
    	if name[0] == '.' || name[0] == '<' || strings.ContainsRune(name, '$') {
    		// This is an unexported function,
    		// or a function defined in a different package,
    		// or a type$equal or type$hash function.
    		// We only want to record exported functions.
    		return nil
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 02 23:14:07 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  9. src/encoding/json/encode.go

    	return enc.encode
    }
    
    func isValidTag(s string) bool {
    	if s == "" {
    		return false
    	}
    	for _, c := range s {
    		switch {
    		case strings.ContainsRune("!#$%&()*+-./:;<=>?@[]^_{|}~ ", c):
    			// Backslash and quote chars are reserved, but
    			// otherwise any punctuation chars are allowed
    			// in a tag name.
    		case !unicode.IsLetter(c) && !unicode.IsDigit(c):
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 36.2K bytes
    - Viewed (0)
  10. cmd/object-api-utils.go

    	}
    	// This is valid for AWS S3 but it will never
    	// work with file systems, we will reject here
    	// to return object name invalid rather than
    	// a cryptic error from the file system.
    	return !strings.ContainsRune(object, 0)
    }
    
    // checkObjectNameForLengthAndSlash -check for the validity of object name length and prefis as slash
    func checkObjectNameForLengthAndSlash(bucket, object string) error {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 11 03:13:30 UTC 2024
    - 36.3K bytes
    - Viewed (0)
Back to top