Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 289 for quoting (0.24 sec)

  1. staging/src/k8s.io/apiserver/pkg/cel/mutation/optional_test.go

    		},
    		{
    			// The root cause of the behavior above is that, has on an object (or Message in the Language Def),
    			// still require the field to be declared in the schema.
    			//
    			// Quoting from
    			// https://github.com/google/cel-spec/blob/master/doc/langdef.md#field-selection
    			//
    			// To test for the presence of a field, the boolean-valued macro has(e.f) can be used.
    			//
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 25 21:52:39 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  2. src/encoding/csv/writer.go

    func NewWriter(w io.Writer) *Writer {
    	return &Writer{
    		Comma: ',',
    		w:     bufio.NewWriter(w),
    	}
    }
    
    // Write writes a single CSV record to w along with any necessary quoting.
    // A record is a slice of strings with each string being one field.
    // Writes are buffered, so [Writer.Flush] must eventually be called to ensure
    // that the record is written to the underlying [io.Writer].
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:04:28 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  3. src/cmd/vendor/github.com/google/pprof/internal/driver/svg.go

    // panning inside a web browser. It uses the svgpan library, which is
    // embedded into the svgpan.JSSource variable.
    func massageSVG(svg string) string {
    	// Work around for dot bug which misses quoting some ampersands,
    	// resulting on unparsable SVG.
    	svg = strings.Replace(svg, "&;", "&;", -1)
    
    	// Dot's SVG output is
    	//
    	//    <svg width="___" height="___"
    	//     viewBox="___" xmlns=...>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 15:19:53 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  4. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/process/ArgWriter.java

                    }
                    return Collections.singletonList("@" + argsFile.getAbsolutePath());
                }
            };
        }
    
        /**
         * Writes a set of args on a single line, escaping and quoting as required.
         */
        @Override
        public ArgWriter args(Object... args) {
            for (int i = 0; i < args.length; i++) {
                Object arg = args[i];
                if (i > 0) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 10:14:33 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  5. platforms/jvm/plugins-application/src/main/java/org/gradle/api/internal/plugins/StartScriptTemplateBindingFactory.java

            boolean wasOnBackslash = false;
            StringBuilder escapedJvmOpt = new StringBuilder();
            CharacterIterator it = new StringCharacterIterator(jvmOpts);
    
            //argument quoting:
            // - " must be encoded as \"
            // - % must be encoded as %%
            // - pathological case: \" must be encoded as \\\", but other than that, \ MUST NOT be quoted
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 28 23:38:57 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top