Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for substVar (0.13 sec)

  1. src/internal/stringslite/strings.go

    	return bytealg.IndexByteString(s, c)
    }
    
    func Index(s, substr string) int {
    	n := len(substr)
    	switch {
    	case n == 0:
    		return 0
    	case n == 1:
    		return IndexByte(s, substr[0])
    	case n == len(s):
    		if substr == s {
    			return 0
    		}
    		return -1
    	case n > len(s):
    		return -1
    	case n <= bytealg.MaxLen:
    		// Use brute force when s and substr both are small
    		if len(s) <= bytealg.MaxBruteForce {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 04 01:23:42 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/snippets/native-binaries/google-test/groovy/libs/googleTest/1.7.0/include/gtest/gtest-spi.h

    #define EXPECT_FATAL_FAILURE(statement, substr) \
      do { \
        class GTestExpectFatalFailureHelper {\
         public:\
          static void Execute() { statement; }\
        };\
        ::testing::TestPartResultArray gtest_failures;\
        ::testing::internal::SingleFailureChecker gtest_checker(\
            &gtest_failures, ::testing::TestPartResult::kFatalFailure, (substr));\
        {\
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 9.7K bytes
    - Viewed (0)
  3. testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/gtest-spi.h

    #define EXPECT_FATAL_FAILURE(statement, substr) \
      do { \
        class GTestExpectFatalFailureHelper {\
         public:\
          static void Execute() { statement; }\
        };\
        ::testing::TestPartResultArray gtest_failures;\
        ::testing::internal::SingleFailureChecker gtest_checker(\
            &gtest_failures, ::testing::TestPartResult::kFatalFailure, (substr));\
        {\
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/api/v2/tf_dialect_to_executor_test.cc

          "tensorflow/compiler/mlir/tf2xla/api/v2/testdata/");
    }
    
    size_t CountSubstring(absl::string_view str, absl::string_view substr) {
      size_t count = 0;
      size_t idx = str.find(substr);
      while (idx != std::string::npos) {
        count++;
        idx = str.find(substr, idx + 1);
      }
      return count;
    }
    
    class TensorflowDialectToExecutorTest : public ::testing::Test {
     public:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 13 23:22:50 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  5. src/encoding/json/tags.go

    func parseTag(tag string) (string, tagOptions) {
    	tag, opt, _ := strings.Cut(tag, ",")
    	return tag, tagOptions(opt)
    }
    
    // Contains reports whether a comma-separated list of options
    // contains a particular substr flag. substr must be surrounded by a
    // string boundary or commas.
    func (o tagOptions) Contains(optionName string) bool {
    	if len(o) == 0 {
    		return false
    	}
    	s := string(o)
    	for s != "" {
    		var name string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 06 15:53:04 UTC 2021
    - 972 bytes
    - Viewed (0)
  6. src/os/user/lookup_unix.go

    			}
    		}
    	}
    }
    
    func matchGroupIndexValue(value string, idx int) lineFunc {
    	var leadColon string
    	if idx > 0 {
    		leadColon = ":"
    	}
    	substr := []byte(leadColon + value + ":")
    	return func(line []byte) (v any, err error) {
    		if !bytes.Contains(line, substr) || bytes.Count(line, colon) < 3 {
    			return
    		}
    		// wheel:*:0:root
    		parts := strings.SplitN(string(line), ":", 4)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 07 23:34:21 UTC 2023
    - 6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/metrics/error_collector_inst.cc

                if (absl::StartsWith(note_str, kErrorCodePrefix)) {
                  error_code = note_str.substr(sizeof(kErrorCodePrefix) - 1);
                }
    
                error_message += "\n";
                if (note_str.size() <= kMaxAcceptedNoteSize) {
                  error_message += note_str;
                } else {
                  error_message += note_str.substr(0, kMaxAcceptedNoteSize);
                  error_message += "...";
                }
              }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 25 01:48:36 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/main/resources/footer.html

        function getCurrentChapterFileName(givenUrl) {
            var currentChapterFileName = givenUrl.substr(givenUrl.lastIndexOf("/") + 1);
            if (currentChapterFileName === "index.html" || currentChapterFileName === "") {
                currentChapterFileName = givenUrl.substr(0, givenUrl.lastIndexOf("/"));
                currentChapterFileName = currentChapterFileName.substr(currentChapterFileName.lastIndexOf("/") + 1) + "/index.html";
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 09:28:20 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  9. tensorflow/c/eager/immediate_execution_tensor_handle.cc

        value_string = "<error computing value>";
      }
      if (value_string.length() > 100) {
        // The default NumPy-style output can be distractingly long in error
        // messages.
        value_string = absl::StrCat(value_string.substr(0, 100), " [...]");
      }
      Status s;
      const char* device_name = DeviceName(&s);
      if (!s.ok()) {
        device_name = "<error fetching device name>";
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 15 09:49:45 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  10. src/net/http/main_test.go

    		").noteClientGone(":     "a closenotifier sender",
    	}
    	var stacks string
    	for i := 0; i < 2500; i++ {
    		bad = ""
    		stacks = strings.Join(interestingGoroutines(), "\n\n")
    		for substr, what := range badSubstring {
    			if strings.Contains(stacks, substr) {
    				bad = what
    			}
    		}
    		if bad == "" {
    			leakReported = false
    			return
    		}
    		// Bad stuff found, but goroutines might just still be
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 22:49:46 UTC 2024
    - 4.9K bytes
    - Viewed (0)
Back to top