Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 126 for qsort (0.04 sec)

  1. src/internal/fmtsort/sort.go

    // Each KeyValue pair contains a map key and its corresponding value.
    type SortedMap []KeyValue
    
    // KeyValue holds a single key and value pair found in a map.
    type KeyValue struct {
    	Key, Value reflect.Value
    }
    
    // Sort accepts a map and returns a SortedMap that has the same keys and
    // values but in a stable sorted order according to the keys, modulo issues
    // raised by unorderable key values such as NaNs.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 19:31:45 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  2. src/cmd/nm/nm.go

    	"bufio"
    	"flag"
    	"fmt"
    	"log"
    	"os"
    	"sort"
    
    	"cmd/internal/objfile"
    	"cmd/internal/telemetry"
    )
    
    const helpText = `usage: go tool nm [options] file...
      -n
          an alias for -sort address (numeric),
          for compatibility with other nm commands
      -size
          print symbol size in decimal between address and type
      -sort {address,name,none,size}
          sort output in the given order (default name)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/reconcilers/peer_endpoint_lease_test.go

    					}
    				}
    			}
    
    			leases, err := fakeReconciler.ListLeases()
    			if err != nil {
    				t.Errorf("unexpected error: %v", err)
    			}
    			// sort for comparison
    			sort.Strings(leases)
    			sort.Strings(test.expectLeases)
    			if !reflect.DeepEqual(leases, test.expectLeases) {
    				t.Errorf("expected %v got: %v", test.expectLeases, leases)
    			}
    
    			for _, server := range test.servers {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  4. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/renderer/declarations/modifiers/renderers/KtModifiersSorter.kt

    public interface KaModifiersSorter {
        public fun sort(
            analysisSession: KaSession,
            modifiers: List<KtModifierKeywordToken>,
            owner: KaDeclarationSymbol,
        ): List<KtModifierKeywordToken>
    
        public object CANONICAL : KaModifiersSorter {
            override fun sort(
                analysisSession: KaSession,
                modifiers: List<KtModifierKeywordToken>,
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:34 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  5. src/slices/sort_test.go

    		n /= 100
    	}
    	data := make([]int, n)
    	for i := 0; i < len(data); i++ {
    		data[i] = rand.Intn(100)
    	}
    	if IsSorted(data) {
    		t.Fatalf("terrible rand.rand")
    	}
    	Sort(data)
    	if !IsSorted(data) {
    		t.Errorf("sort didn't sort - 1M ints")
    	}
    }
    
    type intPair struct {
    	a, b int
    }
    
    type intPairs []intPair
    
    // Pairs compare on a only.
    func intPairCmp(x, y intPair) int {
    	return x.a - y.a
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 19:20:55 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  6. pkg/config/analysis/analyzers/sidecar/util.go

    // limitations under the License.
    
    package sidecar
    
    import (
    	"sort"
    
    	"istio.io/istio/pkg/config/resource"
    )
    
    func getNames(entries []*resource.Instance) []string {
    	names := make([]string, 0, len(entries))
    	for _, rs := range entries {
    		names = append(names, string(rs.Metadata.FullName.Name))
    	}
    	sort.Strings(names)
    	return names
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun May 05 03:44:57 UTC 2024
    - 884 bytes
    - Viewed (0)
  7. src/cmd/fix/main.go

    func usage() {
    	fmt.Fprintf(os.Stderr, "usage: go tool fix [-diff] [-r fixname,...] [-force fixname,...] [path ...]\n")
    	flag.PrintDefaults()
    	fmt.Fprintf(os.Stderr, "\nAvailable rewrites are:\n")
    	sort.Sort(byName(fixes))
    	for _, f := range fixes {
    		if f.disabled {
    			fmt.Fprintf(os.Stderr, "\n%s (disabled)\n", f.name)
    		} else {
    			fmt.Fprintf(os.Stderr, "\n%s\n", f.name)
    		}
    		desc := strings.TrimSpace(f.desc)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  8. pkg/config/analysis/analyzers/telemetry/util.go

    // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    // See the License for the specific language governing permissions and
    // limitations under the License.
    package telemetry
    
    import (
    	"sort"
    
    	"istio.io/api/mesh/v1alpha1"
    	"istio.io/istio/pkg/config/analysis"
    	"istio.io/istio/pkg/config/analysis/analyzers/util"
    	"istio.io/istio/pkg/config/resource"
    	"istio.io/istio/pkg/config/schema/gvk"
    )
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun May 05 03:44:57 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  9. src/net/lookup_windows_test.go

    		}
    		if len(txt) == 0 {
    			t.Fatalf("no results")
    		}
    		expected, err := nslookupTXT(server)
    		if err != nil {
    			t.Skipf("skipping failed nslookup %s test: %s", server, err)
    		}
    		slices.Sort(expected)
    		slices.Sort(txt)
    		if !reflect.DeepEqual(expected, txt) {
    			t.Errorf("different results %s:\texp:%v\tgot:%v", server, toJson(expected), toJson(txt))
    		}
    	})
    }
    
    func TestLookupLocalPTR(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  10. istioctl/pkg/writer/ztunnel/configdump/workload.go

    	verifiedWorkloads := make([]*ZtunnelWorkload, 0, len(zDump.Workloads))
    	for _, wl := range zDump.Workloads {
    		if filter.Verify(wl) {
    			verifiedWorkloads = append(verifiedWorkloads, wl)
    		}
    	}
    
    	// Sort by name, node
    	sort.Slice(verifiedWorkloads, func(i, j int) bool {
    		in := verifiedWorkloads[i].Namespace + "." + verifiedWorkloads[i].Name
    		jn := verifiedWorkloads[j].Namespace + "." + verifiedWorkloads[j].Name
    		if in != jn {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 20:18:34 UTC 2024
    - 3.9K bytes
    - Viewed (0)
Back to top