Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 78 for xstr (0.04 sec)

  1. samples/wasm_modules/header_injector/plugin.cc

    // limitations under the License.
    
    #include "plugin.h"
    
    #ifndef INJECTION_VERSION
    #error INJECTION_VERSION must be defined
    #endif // INJECTION_VERSION
    
    #define xstr(s) str(s)
    #define str(s) #s
    
    // Boilderplate code to register the extension implementation.
    static RegisterContextFactory register_HeaderInjector(CONTEXT_FACTORY(HeaderInjectorContext),
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Aug 24 21:22:06 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  2. src/regexp/testdata/testregex.c

    static void*
    compf(const regex_t* re, const char* xstr, size_t xlen, regdisc_t* disc)
    {
    	Disc_t*		dp = (Disc_t*)disc;
    
    	return (void*)((char*)0 + ++dp->ordinal);
    }
    
    static int
    execf(const regex_t* re, void* data, const char* xstr, size_t xlen, const char* sstr, size_t slen, char** snxt, regdisc_t* disc)
    {
    	Disc_t*		dp = (Disc_t*)disc;
    
    	sfprintf(dp->sp, "{%-.*s}(%lu:%d)", xlen, xstr, (char*)data - (char*)0, slen);
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 51.3K bytes
    - Viewed (0)
  3. src/runtime/iface_test.go

    func (TL) Method1() {}
    func (TL) Method2() {}
    
    type T8 uint8
    type T16 uint16
    type T32 uint32
    type T64 uint64
    type Tstr string
    type Tslice []byte
    
    func (T8) Method1()     {}
    func (T16) Method1()    {}
    func (T32) Method1()    {}
    func (T64) Method1()    {}
    func (Tstr) Method1()   {}
    func (Tslice) Method1() {}
    
    var (
    	e  any
    	e_ any
    	i1 I1
    	i2 I2
    	ts TS
    	tm TM
    	tl TL
    	ok bool
    )
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 7.5K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/mod/sumdb/tlog/tile.go

    const pathBase = 1000
    
    // Path returns a tile coordinate path describing t.
    func (t Tile) Path() string {
    	n := t.N
    	nStr := fmt.Sprintf("%03d", n%pathBase)
    	for n >= pathBase {
    		n /= pathBase
    		nStr = fmt.Sprintf("x%03d/%s", n%pathBase, nStr)
    	}
    	pStr := ""
    	if t.W != 1<<uint(t.H) {
    		pStr = fmt.Sprintf(".p/%d", t.W)
    	}
    	var L string
    	if t.L == -1 {
    		L = "data"
    	} else {
    		L = fmt.Sprintf("%d", t.L)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 13K bytes
    - Viewed (0)
  5. tensorflow/c/tf_tstring.cc

    TF_TString_Type TF_StringGetType(const TF_TString *str) {
      return TF_TString_GetType(str);
    }
    
    size_t TF_StringGetSize(const TF_TString *tstr) {
      return TF_TString_GetSize(tstr);
    }
    
    size_t TF_StringGetCapacity(const TF_TString *str) {
      return TF_TString_GetCapacity(str);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 25 03:28:30 UTC 2021
    - 1.5K bytes
    - Viewed (0)
  6. src/cmd/go/internal/str/str.go

    // Copyright 2017 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Package str provides string manipulation utilities.
    package str
    
    import (
    	"fmt"
    	"strings"
    	"unicode"
    	"unicode/utf8"
    )
    
    // StringList flattens its arguments into a single []string.
    // Each argument in args must have type string or []string.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 23 20:08:07 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  7. tensorflow/c/tf_tstring.h

    TF_CAPI_EXPORT extern const char *TF_StringGetDataPointer(
        const TF_TString *tstr);
    
    TF_CAPI_EXPORT extern TF_TString_Type TF_StringGetType(const TF_TString *str);
    
    TF_CAPI_EXPORT extern size_t TF_StringGetSize(const TF_TString *tstr);
    
    TF_CAPI_EXPORT extern size_t TF_StringGetCapacity(const TF_TString *str);
    
    TF_CAPI_EXPORT extern void TF_StringDealloc(TF_TString *tstr);
    
    #ifdef __cplusplus
    } /* end extern "C" */
    #endif
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 27 21:07:00 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  8. operator/pkg/validate/validate.go

    	pstr := path.String()
    	msg := fmt.Sprintf("validate %s:%v(%T) ", pstr, val, val)
    	if util.IsValueNil(val) || util.IsEmptyString(val) {
    		if checkRequired && requiredValues[pstr] {
    			return util.NewErrs(fmt.Errorf("field %s is required but not set", util.ToYAMLPathString(pstr)))
    		}
    		msg += fmt.Sprintf("validate %s: OK (empty value)", pstr)
    		scope.Debug(msg)
    		return nil
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jan 12 16:04:15 UTC 2023
    - 7.7K bytes
    - Viewed (0)
  9. src/go/doc/testdata/example.go

    		out := <-outC
    
    		// report any errors
    		tstr := fmt.Sprintf("(%.2f seconds)", dt.Seconds())
    		if g, e := strings.TrimSpace(out), strings.TrimSpace(eg.Output); g != e {
    			fmt.Printf("--- FAIL: %s %s\ngot:\n%s\nwant:\n%s\n",
    				eg.Name, tstr, g, e)
    			ok = false
    		} else if *chatty {
    			fmt.Printf("--- PASS: %s %s\n", eg.Name, tstr)
    		}
    	}
    
    	return
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Oct 02 02:28:27 UTC 2022
    - 1.6K bytes
    - Viewed (0)
  10. operator/pkg/validate/validate_values.go

    }
    
    // ValuesValidate validates the values of the tree using the supplied Func
    func ValuesValidate(validations map[string]ValidatorFunc, node any, path util.Path) (errs util.Errors) {
    	pstr := path.String()
    	scope.Debugf("ValuesValidate %s", pstr)
    	vf := validations[pstr]
    	if vf != nil {
    		errs = util.AppendErrs(errs, vf(path, node))
    	}
    
    	nn, ok := node.(map[string]any)
    	if !ok {
    		// Leaf, nothing more to recurse.
    		return errs
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 25 19:30:47 UTC 2022
    - 2.3K bytes
    - Viewed (0)
Back to top