Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for SplitN (0.16 sec)

  1. src/bytes/bytes_test.go

    		}
    
    		s := Join(a, []byte(tt.sep))
    		if string(s) != tt.s {
    			t.Errorf(`Join(Split(%q, %q, %d), %q) = %q`, tt.s, tt.sep, tt.n, tt.sep, s)
    		}
    		if tt.n < 0 {
    			b := Split([]byte(tt.s), []byte(tt.sep))
    			if !reflect.DeepEqual(a, b) {
    				t.Errorf("Split disagrees withSplitN(%q, %q, %d) = %v; want %v", tt.s, tt.sep, tt.n, b, a)
    			}
    		}
    		if len(a) > 0 {
    			in, out := a[0], s
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 24 16:07:25 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  2. istioctl/pkg/describe/describe.go

    							if gatewayName == "" || gatewayName == analyzerutil.MeshGateway {
    								continue
    							}
    							// parse gateway
    							gns := vsNamespace
    							parts := strings.SplitN(gatewayName, "/", 2)
    							if len(parts) == 2 {
    								gatewayName = parts[1]
    								gns = parts[0]
    							}
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sat Apr 13 05:23:38 GMT 2024
    - 50.4K bytes
    - Viewed (0)
  3. cmd/test-utils_test.go

    	encodedResource := req.URL.RawPath
    	encodedQuery := req.URL.RawQuery
    	if encodedResource == "" {
    		splits := strings.SplitN(req.URL.Path, "?", 2)
    		encodedResource = splits[0]
    		if len(splits) == 2 {
    			encodedQuery = splits[1]
    		}
    	}
    
    	unescapedQueries, err := unescapeQueries(encodedQuery)
    	if err != nil {
    		return err
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 17:26:51 GMT 2024
    - 76.2K bytes
    - Viewed (0)
  4. tensorflow/c/c_api_function_test.cc

           {{func_op, 0}, {func_op, 1}}, {{1, 2}, {5, 6}});
      VerifyFDef({"split3_const0", "split3_1"}, M({{"feed"}}),
                 M({{"split3"}, {"split3_0"}}),
                 {{"split3_const0:output:0", "split3_1:0"},
                  {"feed", "split3_1:1"},
                  {"split3_1:output:0", "split3"},
                  {"split3_1:output:2", "split3_0"}},
                 {});
    }
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 20 22:08:54 GMT 2023
    - 63.6K bytes
    - Viewed (6)
  5. src/main/java/org/codelibs/fess/mylasta/direction/FessProp.java

            if (params == null) {
                params = split(getCrawlerMetadataNameMapping(), "\n").get(stream -> stream.filter(StringUtil::isNotBlank).map(v -> {
                    final String[] values = v.split("=");
                    if (values.length == 2) {
                        final String[] subValues = values[1].split(":", 3);
                        if (subValues.length == 3) {
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 85K bytes
    - Viewed (0)
  6. configure.py

                               allow_non_zero=True,
                               stderr=stderr)
    
      curr_version_split = curr_version.lower().split('clang version ')
      if len(curr_version_split) > 1:
        curr_version = curr_version_split[1].split()[0]
    
      curr_version_int = convert_version_to_int(curr_version)
      # Check if current clang version can be detected properly.
      if not curr_version_int:
    Python
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 18:25:36 GMT 2024
    - 53.8K bytes
    - Viewed (1)
  7. src/main/java/org/codelibs/fess/es/client/SearchEngineClient.java

     * either express or implied. See the License for the specific language
     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.es.client;
    
    import static org.codelibs.core.stream.StreamUtil.split;
    import static org.codelibs.core.stream.StreamUtil.stream;
    import static org.codelibs.opensearch.runner.OpenSearchRunner.newConfigs;
    import static org.opensearch.core.action.ActionListener.wrap;
    
    import java.io.File;
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 84.1K bytes
    - Viewed (0)
  8. src/cmd/cgo/gcc.go

    			if !strings.HasPrefix(arg, "-g") {
    				p.GccOptions = append(p.GccOptions, arg)
    			}
    		}
    	}
    	if flag == "LDFLAGS" {
    		p.LdFlags = append(p.LdFlags, args...)
    	}
    }
    
    // splitQuoted splits the string s around each instance of one or more consecutive
    // white space characters while taking into account quotes and escaping, and
    // returns an array of substrings of s or an empty list if s contains only white space.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
  9. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelValidator.java

        private static int compareModelVersions(String first, String second) {
            // we use a dedicated comparator because we control our model version scheme.
            String[] firstSegments = first.split("\\.");
            String[] secondSegments = second.split("\\.");
            for (int i = 0; i < Math.max(firstSegments.length, secondSegments.length); i++) {
                int result = Long.valueOf(i < firstSegments.length ? firstSegments[i] : "0")
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 13:13:07 GMT 2024
    - 73.1K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/api/json/SearchApiManager.java

        @Override
        protected FormatType detectFormatType(final HttpServletRequest request) {
            final String servletPath = request.getServletPath();
            final String[] values = servletPath.replaceAll("/+", "/").split("/");
            final String value = values.length > 3 ? values[3] : null;
            if (value == null) {
                return FormatType.SEARCH;
            }
            final String type = value.toLowerCase(Locale.ROOT);
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 02:17:23 GMT 2024
    - 50.3K bytes
    - Viewed (0)
Back to top