Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for LastIndex (0.15 sec)

  1. src/main/java/org/codelibs/fess/taglib/FessFunctions.java

                return "<pre class=\"" + style + "\">" + input + "</pre>";
            }
            int lastIndex = list.size();
            if (list.get(list.size() - 1).endsWith("...")) {
                lastIndex--;
            }
            if (lastIndex <= 0) {
                lastIndex = 1;
            }
            final String content = list.subList(0, lastIndex).stream().collect(Collectors.joining("\n"));
            if (StringUtil.isBlank(content)) {
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 16.9K bytes
    - Viewed (0)
  2. cmd/metacache-marker.go

    func (o *listPathOptions) parseMarker() {
    	s := o.Marker
    	if !strings.Contains(s, "[minio_cache:"+markerTagVersion) {
    		return
    	}
    	start := strings.LastIndex(s, "[")
    	o.Marker = s[:start]
    	end := strings.LastIndex(s, "]")
    	tag := strings.Trim(s[start:end], "[]")
    	tags := strings.Split(tag, ",")
    	for _, tag := range tags {
    		kv := strings.Split(tag, ":")
    		if len(kv) < 2 {
    			continue
    		}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  3. cmd/iam-object-store.go

    )
    
    // splitPath splits a path into a top-level directory and a child item. The
    // parent directory retains the trailing slash.
    func splitPath(s string, lastIndex bool) (string, string) {
    	var i int
    	if lastIndex {
    		i = strings.LastIndex(s, "/")
    	} else {
    		i = strings.Index(s, "/")
    	}
    	if i == -1 {
    		return s, ""
    	}
    	// Include the trailing slash in the parent directory.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 05 21:26:41 GMT 2024
    - 19.9K bytes
    - Viewed (0)
  4. istioctl/pkg/writer/compare/comparator.go

    func (m *nonstrictResolver) Resolve(typeURL string) (legacyproto.Message, error) {
    	// See https://github.com/golang/protobuf/issues/747#issuecomment-437463120
    	mname := typeURL
    	if slash := strings.LastIndex(typeURL, "/"); slash >= 0 {
    		mname = mname[slash+1:]
    	}
    	mt, err := protoregistry.GlobalTypes.FindMessageByName(protoreflect.FullName(mname))
    	if err != nil {
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Sun Apr 21 17:42:54 GMT 2024
    - 3.7K bytes
    - Viewed (1)
  5. internal/rest/client.go

    	return true
    }
    
    // Given a string of the form "host", "host:port", or "[ipv6::address]:port",
    // return true if the string includes a port.
    func hasPort(s string) bool { return strings.LastIndex(s, ":") > strings.LastIndex(s, "]") }
    
    // removeEmptyPort strips the empty port in ":port" to ""
    // as mandated by RFC 3986 Section 6.2.3.
    func removeEmptyPort(host string) string {
    	if hasPort(host) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 14.4K bytes
    - Viewed (0)
  6. cmd/metrics-v3-handler.go

    	if strings.HasPrefix(pathComponents, "/bucket/") {
    		// bucket specific metrics, extract the bucket name from the path.
    		// it's the last part of the path. e.g. /bucket/api/<bucket-name>
    		bucketIdx := strings.LastIndex(pathComponents, "/")
    		buckets = append(buckets, pathComponents[bucketIdx+1:])
    		// remove bucket from pathComponents as it is dyanamic and
    		// hence not included in the collector path.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu May 02 17:37:57 GMT 2024
    - 7.5K bytes
    - Viewed (0)
  7. src/bytes/example_test.go

    	// Output: foo, bar, baz
    }
    
    func ExampleLastIndex() {
    	fmt.Println(bytes.Index([]byte("go gopher"), []byte("go")))
    	fmt.Println(bytes.LastIndex([]byte("go gopher"), []byte("go")))
    	fmt.Println(bytes.LastIndex([]byte("go gopher"), []byte("rodent")))
    	// Output:
    	// 0
    	// 3
    	// -1
    }
    
    func ExampleLastIndexAny() {
    	fmt.Println(bytes.LastIndexAny([]byte("go gopher"), "MüQp"))
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Mar 04 15:54:40 GMT 2024
    - 15K bytes
    - Viewed (1)
  8. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/references/FirReferenceResolveHelper.kt

                // We want to handle qualified calls like `foo.Bar.Baz()`, but not like `foo.Bar().Baz()`
                if (qualifier is KtCallExpression && index != qualifiers.lastIndex) return null
    
                qualifier.referenceExpression() as? KtNameReferenceExpression ?: return null
            }
    
            return qualifyingReferences.map { it.getReferencedName() }
        }
    
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Mon Apr 15 10:59:01 GMT 2024
    - 37.5K bytes
    - Viewed (0)
Back to top