Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 59 for stringify (0.25 sec)

  1. src/html/template/css.go

    	case '\t', '\n', '\f', '\r', ' ':
    		return true
    	}
    	return false
    }
    
    // cssEscaper escapes HTML and CSS special characters using \<hex>+ escapes.
    func cssEscaper(args ...any) string {
    	s, _ := stringify(args...)
    	var b strings.Builder
    	r, w, written := rune(0), 0, 0
    	for i := 0; i < len(s); i += w {
    		// See comment in htmlEscaper.
    		r, w = utf8.DecodeRuneInString(s[i:])
    		var repl string
    		switch {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 02 19:38:18 UTC 2023
    - 7K bytes
    - Viewed (0)
  2. src/html/template/content.go

    		v = v.Elem()
    	}
    	return v.Interface()
    }
    
    // stringify converts its arguments to a string and the type of the content.
    // All pointers are dereferenced, as in the text/template package.
    func stringify(args ...any) (string, contentType) {
    	if len(args) == 1 {
    		switch s := indirect(args[0]).(type) {
    		case string:
    			return s, contentTypePlain
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 01 14:30:25 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  3. src/context/context.go

    // delegates all other calls to the embedded Context.
    type valueCtx struct {
    	Context
    	key, val any
    }
    
    // stringify tries a bit to stringify v, without using fmt, since we don't
    // want context depending on the unicode tables. This is only used by
    // *valueCtx.String().
    func stringify(v any) string {
    	switch s := v.(type) {
    	case stringer:
    		return s.String()
    	case string:
    		return s
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 23.7K bytes
    - Viewed (0)
  4. src/html/template/js.go

    // or in an HTML5 event handler attribute such as onclick.
    func jsStrEscaper(args ...any) string {
    	s, t := stringify(args...)
    	if t == contentTypeJSStr {
    		return replace(s, jsStrNormReplacementTable)
    	}
    	return replace(s, jsStrReplacementTable)
    }
    
    func jsTmplLitEscaper(args ...any) string {
    	s, _ := stringify(args...)
    	return replace(s, jsBqStrReplacementTable)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  5. staging/src/k8s.io/cli-runtime/pkg/genericclioptions/record_flags.go

    		return nil, err
    	}
    	newData, err := json.Marshal(objCopy)
    	if err != nil {
    		return nil, err
    	}
    
    	return jsonpatch.CreateMergePatch(oldData, newData)
    }
    
    // parseCommandArguments will stringify and return all environment arguments ie. a command run by a client
    // using the factory.
    // Set showSecrets false to filter out stuff like secrets.
    func parseCommandArguments(cmd *cobra.Command) string {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/telemetry/package-lock.json

            "micromatch": "^4.0.4"
          },
          "engines": {
            "node": ">=8.6.0"
          }
        },
        "node_modules/fast-json-stable-stringify": {
          "version": "2.1.0",
          "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz",
          "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==",
          "dev": true
        },
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:57:25 UTC 2024
    - 156K bytes
    - Viewed (0)
  7. kotlin-js-store/yarn.lock

      integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==
    
    fast-json-stable-stringify@^2.0.0:
      version "2.1.0"
      resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz#874bf69c6f404c2b5d99c481341399fd55892633"
      integrity sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Jul 22 12:28:51 UTC 2023
    - 87.4K bytes
    - Viewed (0)
  8. samples/bookinfo/src/productpage/static/tailwind/tailwind.css

    t")for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=G0;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let n=new W0(t,this.result.root,this.result.opts).generate();return this.result.css=n[0],this.result.map=n[1],this.result}walkSync(e){e[qe]=!0;let...
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 28 14:48:01 UTC 2024
    - 357.1K bytes
    - Viewed (1)
  9. src/cmd/compile/internal/typecheck/iexport.go

    //         PkgPath   stringOff
    //         Signature Signature
    //     }
    //
    //     type StructType struct {
    //         Tag     itag // structType
    //         PkgPath stringOff
    //         Fields []struct {
    //             Pos      Pos
    //             Name     stringOff
    //             Type     typeOff
    //             Embedded bool
    //             Note     stringOff
    //         }
    //     }
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jul 21 02:40:02 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  10. src/internal/trace/traceviewer/static/trace_viewer_full.html

    function applyDefaults(passthrough,url,httpMethodName,body,headers,withCredentials,cached){headers=headers?JSON.parse(JSON.stringify(headers)):{};if(body){if(!isString(body)){body=JSON.stringify(body);headers['Content-Type']=headers['Content-Type']||'application/json';}}else{body=null;}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 20:45:06 UTC 2023
    - 2.5M bytes
    - Viewed (1)
Back to top