Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for xstr (0.12 sec)

  1. staging/src/k8s.io/apimachinery/pkg/util/strategicpatch/patch.go

    }
    
    func (ss SortableSliceOfMaps) Len() int {
    	return len(ss.s)
    }
    
    func (ss SortableSliceOfMaps) Less(i, j int) bool {
    	iStr := fmt.Sprintf("%v", ss.s[i][ss.k])
    	jStr := fmt.Sprintf("%v", ss.s[j][ss.k])
    	return sort.StringsAreSorted([]string{iStr, jStr})
    }
    
    func (ss SortableSliceOfMaps) Swap(i, j int) {
    	tmp := ss.s[i]
    	ss.s[i] = ss.s[j]
    	ss.s[j] = tmp
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 23:34:23 UTC 2023
    - 75.5K bytes
    - Viewed (0)
  2. src/encoding/xml/marshal_test.go

    			Uint8: 255,
    			Bool:  true,
    			Str:   "str",
    			Bytes: []byte("byt"),
    			PStr:  &empty,
    			Ptr:   &PresenceTest{},
    		},
    		ExpectXML: `<OmitFieldTest>` +
    			`<Int>8</Int>` +
    			`<int>9</int>` +
    			`<Float>23.5</Float>` +
    			`<Uint8>255</Uint8>` +
    			`<Bool>true</Bool>` +
    			`<Str>str</Str>` +
    			`<Bytes>byt</Bytes>` +
    			`<PStr></PStr>` +
    			`<Ptr></Ptr>` +
    			`</OmitFieldTest>`,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 18:46:41 UTC 2024
    - 66K bytes
    - Viewed (0)
  3. src/math/big/int_test.go

    	} {
    		i, ok := new(Int).SetString(test.istr, 0)
    		if !ok {
    			t.Errorf("SetString(%s) failed", test.istr)
    			continue
    		}
    
    		// Test against expectation.
    		f, acc := i.Float64()
    		if f != test.f || acc != test.acc {
    			t.Errorf("%s: got %f (%s); want %f (%s)", test.istr, f, acc, test.f, test.acc)
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 58.5K bytes
    - Viewed (0)
  4. tensorflow/c/c_api_test.cc

      TF_TString tstr[1];
      TF_TString_Init(&tstr[0]);
      TF_TString_Copy(&tstr[0], test_string, sizeof(test_string) - 1);
    
      auto deallocator = [](void* data, size_t len, void* arg) {};
      unique_tensor_ptr t_in(TF_NewTensor(TF_STRING, nullptr, 0, &tstr[0],
                                          sizeof(tstr), deallocator, nullptr),
                             TF_DeleteTensor);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 03:35:10 UTC 2024
    - 96.9K bytes
    - Viewed (0)
  5. src/regexp/syntax/parse.go

    		if i < len(sub) {
    			istr, iflags = p.leadingString(sub[i])
    			if iflags == strflags {
    				same := 0
    				for same < len(str) && same < len(istr) && str[same] == istr[same] {
    					same++
    				}
    				if same > 0 {
    					// Matches at least one rune in current range.
    					// Keep going around.
    					str = str[:same]
    					continue
    				}
    			}
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 13:59:01 UTC 2024
    - 52.1K bytes
    - Viewed (0)
  6. src/testing/testing.go

    	if t.parent == nil {
    		return
    	}
    	dstr := fmtDuration(t.duration)
    	format := "--- %s: %s (%s)\n"
    	if t.Failed() {
    		t.flushToParent(t.name, format, "FAIL", t.name, dstr)
    	} else if t.chatty != nil {
    		if t.Skipped() {
    			t.flushToParent(t.name, format, "SKIP", t.name, dstr)
    		} else {
    			t.flushToParent(t.name, format, "PASS", t.name, dstr)
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 76.1K bytes
    - Viewed (0)
  7. src/cmd/cgo/gcc.go

    		if !ok {
    			return
    		}
    
    		for _, c := range f.Calls {
    			if !c.Done && c.Call.Lparen == call.Lparen {
    				cstr, nu := p.rewriteCall(f, c)
    				if cstr != "" {
    					// Smuggle the rewritten call through an ident.
    					*px = ast.NewIdent(cstr)
    					if nu {
    						needsUnsafe = true
    					}
    					c.Done = true
    				}
    			}
    		}
    	})
    	return *arg, needsUnsafe
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 97K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/sys/unix/syscall_zos_s390x.go

    	runtime.ExitSyscall()
    	if r0 == 0 {
    		err = errnoErr2(e1, e2)
    	} else {
    		name = u2s(unsafe.Pointer(r0))
    	}
    	return
    }
    
    func u2s(cstr unsafe.Pointer) string {
    	str := (*[1024]uint8)(cstr)
    	i := 0
    	for str[i] != 0 {
    		i++
    	}
    	return string(str[:i])
    }
    
    func Close(fd int) (err error) {
    	runtime.EnterSyscall()
    	r0, e2, e1 := CallLeFuncWithErr(GetZosLibVec()+SYS_CLOSE<<4, uintptr(fd))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 84.4K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/sys/windows/syscall_windows.go

    // in the form of "{XXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}".
    func (guid GUID) String() string {
    	var str [100]uint16
    	chars := stringFromGUID2(&guid, &str[0], int32(len(str)))
    	if chars <= 1 {
    		return ""
    	}
    	return string(utf16.Decode(str[:chars-1]))
    }
    
    // KnownFolderPath returns a well-known folder path for the current user, specified by one of
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 05 22:18:42 UTC 2024
    - 82.8K bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/snippets/native-binaries/google-test/groovy/libs/googleTest/1.7.0/include/gtest/gtest.h

    //   with two C strings, you are testing how their locations in memory
    //   are related, not how their content is related.  To compare two C
    //   strings by content, use {ASSERT|EXPECT}_STR*().
    //
    //   3. {ASSERT|EXPECT}_EQ(expected, actual) is preferred to
    //   {ASSERT|EXPECT}_TRUE(expected == actual), as the former tells you
    //   what the actual value is when it fails, and similarly for the
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 86.4K bytes
    - Viewed (0)
Back to top