Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for sortedKeys1 (0.19 sec)

  1. src/cmd/vendor/github.com/google/pprof/profile/merge.go

    	return sampleKey(buf.String())
    }
    
    type sampleKey string
    
    // sortedKeys1 returns the sorted keys found in a string->[]string map.
    //
    // Note: this is currently non-generic since github pprof runs golint,
    // which does not support generics. When that issue is fixed, it can
    // be merged with sortedKeys2 and made into a generic function.
    func sortedKeys1(m map[string][]string) []string {
    	if len(m) == 0 {
    		return nil
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 15:19:53 UTC 2024
    - 17K bytes
    - Viewed (0)
  2. internal/kms/context.go

    		}
    		return b.Bytes(), nil
    	}
    
    	sortedKeys := make([]string, 0, len(c))
    	for k := range c {
    		sortedKeys = append(sortedKeys, k)
    	}
    	sort.Strings(sortedKeys)
    
    	b.WriteByte('{')
    	for i, k := range sortedKeys {
    		b.WriteByte('"')
    		escapeStringJSON(b, k)
    		b.WriteString(`":"`)
    		escapeStringJSON(b, c[k])
    		b.WriteByte('"')
    		if i < len(sortedKeys)-1 {
    			b.WriteByte(',')
    		}
    	}
    	b.WriteByte('}')
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Jan 02 17:15:06 UTC 2022
    - 6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

              // there's a way around creating the separate sortedKeys array, and if we're allocating
              // one array of size n, we might as well allocate two -- to say nothing of the allocation
              // done in Arrays.sort.
              for (int i = 0; i < size; i++) {
                // We're careful to put only K instances in.
                if (i > 0 && comparator.compare((K) sortedKeys[i - 1], (K) sortedKeys[i]) == 0) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 53K bytes
    - Viewed (0)
  4. src/go/doc/doc.go

    	var r reader
    	r.readPackage(pkg, mode)
    	r.computeMethodSets()
    	r.cleanupTypes()
    	p := &Package{
    		Doc:        r.doc,
    		Name:       pkg.Name,
    		ImportPath: importPath,
    		Imports:    sortedKeys(r.imports),
    		Filenames:  r.filenames,
    		Notes:      r.notes,
    		Bugs:       noteBodies(r.notes["BUG"]),
    		Consts:     sortedValues(r.values, token.CONST),
    		Types:      sortedTypes(r.types, mode&AllMethods != 0),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  5. src/go/doc/reader.go

    		if t.decl == nil || !visible {
    			delete(r.types, t.name)
    		}
    	}
    }
    
    // ----------------------------------------------------------------------------
    // Sorting
    
    func sortedKeys(m map[string]int) []string {
    	list := make([]string, len(m))
    	i := 0
    	for key := range m {
    		list[i] = key
    		i++
    	}
    	slices.Sort(list)
    	return list
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 27.5K bytes
    - Viewed (0)
Back to top