Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 63 for stringify (0.16 sec)

  1. test/typeparam/stringerimp.dir/a.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package a
    
    type Stringer interface {
    	String() string
    }
    
    func Stringify[T Stringer](s []T) (ret []string) {
    	for _, v := range s {
    		ret = append(ret, v.String())
    	}
    	return ret
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 21 03:41:18 UTC 2021
    - 340 bytes
    - Viewed (0)
  2. src/html/template/url.go

    // explicitly indicate that such a URL is expected and safe by encapsulating it
    // in a template.URL value.
    func urlFilter(args ...any) string {
    	s, t := stringify(args...)
    	if t == contentTypeURL {
    		return s
    	}
    	if !isSafeURL(s) {
    		return "#" + filterFailsafe
    	}
    	return s
    }
    
    // isSafeURL is true if s is a relative URL or if URL has a protocol in
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 06 15:48:16 UTC 2022
    - 6.6K bytes
    - Viewed (0)
  3. pkg/ctrlz/assets/static/js/prism-1.14.0.min.js

    gth)for(var m,l=0;m=h[l++];)m(g)}}},d=c.Token=function(f,g,h,l,m){this.type=f,this.content=g,this.alias=h,this.length=0|(l||'').length,this.greedy=!!m};if(d.stringify=function(f,g,h){if('string'==typeof f)return f;if('Array'===c.util.type(f))return f.map(function(q){return d.stringify(q,g,f)}).join('');var l={type:f.type,content:d.stringify(f.content,g,h),tag:'span',classes:['token',f.type],attributes:{},language:g,parent:h};if(f.alias){var m='Array'===c.util.type(f.alias)?f.alias:[f.alias];Arra...
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 16.3K bytes
    - Viewed (0)
  4. src/main/webapp/js/search.js

                  $favorited.fadeIn(1000);
                });
              }
            })
            .fail(function(data) {
              $favorite.attr("href", "#" + docId);
              // alert(JSON.stringify(data));
            });
        }
        $(this).attr("href", "#");
        return false;
      });
    
      if ($favorites.length > 0) {
        $.ajax({
          dataType: "json",
          cache: false,
          type: "get",
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Mar 30 05:45:24 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top