Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 385 for quoting (0.27 sec)

  1. src/strconv/quote.go

    }
    
    func appendQuotedWith(buf []byte, s string, quote byte, ASCIIonly, graphicOnly bool) []byte {
    	// Often called with big strings, so preallocate. If there's quoting,
    	// this is conservative but still helps a lot.
    	if cap(buf)-len(buf) < len(s) {
    		nBuf := make([]byte, len(buf), len(buf)+1+len(s)+1)
    		copy(nBuf, buf)
    		buf = nBuf
    	}
    	buf = append(buf, quote)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:21:28 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/util/net/http_test.go

    			header:  `1 - "text"`,
    			wantErr: "not 3 digits",
    		},
    		{
    			name:    "bad code",
    			header:  `A - "text"`,
    			wantErr: "not 3 digits",
    		},
    		{
    			name:    "invalid date quoting",
    			header:  `  299 - "text\"\\\a\b\c"  "Tue, 15 Nov 1994 08:12:31 GMT `,
    			wantErr: "unterminated date segment",
    		},
    		{
    			name:    "invalid post-date",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 18 01:21:56 UTC 2023
    - 24.5K bytes
    - Viewed (0)
  3. src/cmd/go/internal/work/shell.go

    	// prefix here does not make most output any more verbose.
    	if err != nil {
    		err = errors.New(cmdline[0] + ": " + err.Error())
    	}
    	return buf.Bytes(), err
    }
    
    // joinUnambiguously prints the slice, quoting where necessary to make the
    // output unambiguous.
    // TODO: See issue 5279. The printing of commands needs a complete redo.
    func joinUnambiguously(a []string) string {
    	var buf strings.Builder
    	for i, s := range a {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  4. src/net/mail/message.go

    		break
    	}
    	if quoteLocal {
    		local = quoteString(local)
    
    	}
    
    	s := "<" + local + "@" + domain + ">"
    
    	if a.Name == "" {
    		return s
    	}
    
    	// If every character is printable ASCII, quoting is simple.
    	allPrintable := true
    	for _, r := range a.Name {
    		// isWSP here should actually be isFWS,
    		// but we don't support folding yet.
    		if !isVchar(r) && !isWSP(r) || isMultibyte(r) {
    			allPrintable = false
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 11:31:03 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/docs/userguide/releases/migrating/migrating_from_groovy_to_kotlin_dsl.adoc

    An extreme example would be a build that uses tasks and plugins that are implemented in Java, Groovy and Kotlin, while also using both Kotlin DSL and Groovy DSL build scripts.
    
    Quoting the Kotlin reference documentation:
    
    > Kotlin is designed with Java Interoperability in mind. Existing Java code can be called from Kotlin in a natural way, and Kotlin code can be used from Java rather smoothly as well.
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 01 15:00:23 UTC 2024
    - 26.9K bytes
    - Viewed (0)
  6. hack/lib/golang.sh

    declare -a KUBE_TEST_PLATFORMS
    kube::golang::setup_platforms() {
      if [[ -n "${KUBE_BUILD_PLATFORMS:-}" ]]; then
        # KUBE_BUILD_PLATFORMS needs to be read into an array before the next
        # step, or quoting treats it all as one element.
        local -a platforms
        IFS=" " read -ra platforms <<< "${KUBE_BUILD_PLATFORMS}"
    
        # Deduplicate to ensure the intersection trick with kube::golang::dups
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 01 16:43:08 UTC 2024
    - 32.8K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/debug_test.go

    func escape(s string) string {
    	s = strings.Replace(s, "\\", "\\\\", -1)
    	s = strings.Replace(s, "'", "\\'", -1)
    	// Conservative guess at characters that will force quoting
    	if strings.ContainsAny(s, "\\ ;#*&$~?!|[]()<>{}`") {
    		s = " '" + s + "'"
    	} else {
    		s = " " + s
    	}
    	return s
    }
    
    func expect(want string, got tstring) {
    	if want != "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 16:11:47 UTC 2024
    - 28.6K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/func.go

    }
    
    // NameABI returns the function name followed by comma and the ABI number.
    // This is intended for use with GOSSAFUNC and HTML dumps, and differs from
    // the linker's "<1>" convention because "<" and ">" require shell quoting
    // and are not legal file names (for use with GOSSADIR) on Windows.
    func (f *Func) NameABI() string {
    	return FuncNameABI(f.Name, f.ABISelf.Which())
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  9. src/os/exec/exec.go

    // CommandLineToArgvW (which is the most common way). Notable exceptions are
    // msiexec.exe and cmd.exe (and thus, all batch files), which have a different
    // unquoting algorithm. In these or other similar cases, you can do the
    // quoting yourself and provide the full command line in SysProcAttr.CmdLine,
    // leaving Args empty.
    func Command(name string, arg ...string) *Cmd {
    	cmd := &Cmd{
    		Path: name,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 20:13:53 UTC 2024
    - 41.4K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/mod/modfile/rule.go

    			}
    
    		default:
    			if !unicode.IsPrint(r) {
    				return true
    			}
    		}
    	}
    	return s == "" || strings.Contains(s, "//") || strings.Contains(s, "/*")
    }
    
    // AutoQuote returns s or, if quoting is required for s to appear in a go.mod,
    // the quotation of s.
    func AutoQuote(s string) string {
    	if MustQuote(s) {
    		return strconv.Quote(s)
    	}
    	return s
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 18:34:56 UTC 2024
    - 46.5K bytes
    - Viewed (0)
Back to top