Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 385 for quoting (0.19 sec)

  1. src/log/slog/text_handler.go

    }
    
    func needsQuoting(s string) bool {
    	if len(s) == 0 {
    		return true
    	}
    	for i := 0; i < len(s); {
    		b := s[i]
    		if b < utf8.RuneSelf {
    			// 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:])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 23 22:56:07 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  2. src/mime/mediatype_test.go

    		// #attwithasciifnescapedchar
    		{`attachment; filename="f\oo.html"`,
    			"attachment",
    			m("filename", "f\\oo.html")},
    		// #attwithasciifnescapedquote
    		{`attachment; filename="\"quoting\" tested.html"`,
    			"attachment",
    			m("filename", `"quoting" tested.html`)},
    		// #attwithquotedsemicolon
    		{`attachment; filename="Here's a semicolon;.html"`,
    			"attachment",
    			m("filename", "Here's a semicolon;.html")},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 26 17:58:37 UTC 2022
    - 18.1K bytes
    - Viewed (0)
  3. src/log/slog/level.go

    		return str("INFO", l-LevelInfo)
    	case l < LevelError:
    		return str("WARN", l-LevelWarn)
    	default:
    		return str("ERROR", l-LevelError)
    	}
    }
    
    // MarshalJSON implements [encoding/json.Marshaler]
    // by quoting the output of [Level.String].
    func (l Level) MarshalJSON() ([]byte, error) {
    	// AppendQuote is sufficient for JSON-encoding all Level strings.
    	// They don't contain any runes that would produce invalid JSON
    	// when escaped.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 30 17:34:43 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  4. operator/pkg/patch/patch.go

    just an example which normally is greater than the most of the lists used.
    
    2. Add new key:value to container name: n1
    
    	path: a.b.[name:n1]
    	value:
    	  new_attr: v3
    
    *NOTES*
    - Due to loss of string quoting during unmarshaling, keys and values should not be string quoted, even if they appear
    that way in the object being patched.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Aug 10 15:35:03 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  5. test-site/activator

      fi
    }
    
    echoerr () {
      echo 1>&2 "$@"
    }
    vlog () {
      [[ $verbose || $debug ]] && echoerr "$@"
    }
    dlog () {
      [[ $debug ]] && echoerr "$@"
    }
    execRunner () {
      # print the arguments one to a line, quoting any containing spaces
      [[ $verbose || $debug ]] && echo "# Executing command line:" && {
        for arg; do
          if printf "%s\n" "$arg" | grep -q ' '; then
            printf "\"%s\"\n" "$arg"
          else
    Registered: Wed Jun 12 15:38:08 UTC 2024
    - Last Modified: Mon Apr 20 08:41:37 UTC 2015
    - 9.3K bytes
    - Viewed (0)
  6. src/html/template/error.go

    	// Discussion:
    	//   This is often due to a typo in an HTML element, but some runes
    	//   are banned in tag names, attribute names, and unquoted attribute
    	//   values because they can tickle parser ambiguities.
    	//   Quoting all attributes is the best policy.
    	ErrBadHTML
    
    	// ErrBranchEnd: "{{if}} branches end in different contexts"
    	// Example:
    	//   {{if .C}}<a href="{{end}}{{.X}}
    	// Discussion:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 02 15:18:39 UTC 2023
    - 9.3K bytes
    - Viewed (0)
  7. pkg/util/iptables/iptables.go

    	out, err := runner.exec.Command(iptablesSaveCmd, "-t", string(table)).CombinedOutput()
    	if err != nil {
    		return false, fmt.Errorf("error checking rule: %v", err)
    	}
    
    	// Sadly, iptables has inconsistent quoting rules for comments. Just remove all quotes.
    	// Also, quoted multi-word comments (which are counted as a single arg)
    	// will be unpacked into multiple args,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 28.6K bytes
    - Viewed (0)
  8. src/cmd/cgo/internal/testplugin/plugin_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 s == "" || strings.ContainsAny(s, "\\ ;#*&$~?!|[]()<>{}`") {
    		s = "'" + s + "'"
    	}
    	return s
    }
    
    // asCommandLine renders cmd as something that could be copy-and-pasted into a command line
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:32:53 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  9. src/cmd/cgo/internal/testsanitizers/cc_test.go

    	CC, err := goEnv("CC")
    	if err != nil {
    		return nil, err
    	}
    
    	GOGCCFLAGS, err := goEnv("GOGCCFLAGS")
    	if err != nil {
    		return nil, err
    	}
    
    	// Split GOGCCFLAGS, respecting quoting.
    	//
    	// TODO(bcmills): This code also appears in
    	// cmd/cgo/internal/testcarchive/carchive_test.go, and perhaps ought to go in
    	// src/cmd/dist/test.go as well. Figure out where to put it so that it can be
    	// shared.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 09 20:00:56 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  10. src/runtime/runtime-gdb.py

    	def __init__(self):
    		gdb.Command.__init__(self, "iface", gdb.COMMAND_DATA, gdb.COMPLETE_SYMBOL)
    
    	def invoke(self, arg, _from_tty):
    		for obj in gdb.string_to_argv(arg):
    			try:
    				#TODO fix quoting for qualified variable names
    				obj = gdb.parse_and_eval(str(obj))
    			except Exception as e:
    				print("Can't parse ", obj, ": ", e)
    				continue
    
    			if obj['data'] == 0:
    				dtype = "nil"
    			else:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 10 12:59:20 UTC 2023
    - 15.4K bytes
    - Viewed (0)
Back to top