Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for cmpstring2 (0.22 sec)

  1. test/codegen/comparisons.go

    }
    
    func cmpstring1(x, y string) int {
    	// amd64:".*cmpstring"
    	if x < y {
    		return -1
    	}
    	// amd64:-".*cmpstring"
    	if x > y {
    		return +1
    	}
    	return 0
    }
    func cmpstring2(x, y string) int {
    	// We want to fail if there are two calls to cmpstring.
    	// They will both have the same line number, so a test
    	// like in cmpstring1 will not work. Instead, we
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 19 16:31:02 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  2. src/internal/bytealg/compare_generic.go

    		return -1
    	}
    	if len(a) > len(b) {
    		return +1
    	}
    	return 0
    }
    
    func CompareString(a, b string) int {
    	return runtime_cmpstring(a, b)
    }
    
    // runtime.cmpstring calls are emitted by the compiler.
    //
    // runtime.cmpstring should be an internal detail,
    // but widely used packages access it using linkname.
    // Notable members of the hall of shame include:
    //   - gitee.com/zhaochuninhefei/gmgo
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  3. src/crypto/x509/parser_test.go

    			expectedErr: "invalid UTF-8 string",
    		},
    		{
    			name:     "BMPString",
    			tag:      cryptobyte_asn1.Tag(asn1.TagBMPString),
    			value:    []byte{80, 81},
    			expected: string("偑"),
    		},
    		{
    			name:        "BMPString (invalid length)",
    			tag:         cryptobyte_asn1.Tag(asn1.TagBMPString),
    			value:       []byte{255},
    			expectedErr: "invalid BMPString",
    		},
    		{
    			name:     "IA5String",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 13 17:18:21 UTC 2022
    - 2.6K bytes
    - Viewed (0)
  4. test/codegen/switch.go

    	}
    }
    
    // Use single-byte ordered comparisons for binary searching strings.
    // See issue 53333.
    func mimetype(ext string) string {
    	// amd64: `CMPB\s1\(.*\), \$104$`,-`cmpstring`
    	// arm64: `MOVB\s1\(R.*\), R.*$`, `CMPW\s\$104, R.*$`, -`cmpstring`
    	switch ext {
    	// amd64: `CMPL\s\(.*\), \$1836345390$`
    	// arm64: `MOVD\s\$1836345390`, `CMPW\sR.*, R.*$`
    	case ".htm":
    		return "A"
    	// amd64: `CMPL\s\(.*\), \$1953457454$`
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 09 18:39:50 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  5. src/internal/bytealg/compare_native.go

    }
    
    // The declaration below generates ABI wrappers for functions
    // implemented in assembly in this package but declared in another
    // package.
    
    //go:linkname abigen_runtime_cmpstring runtime.cmpstring
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 23:39:07 UTC 2024
    - 726 bytes
    - Viewed (0)
  6. src/encoding/asn1/asn1.go

    		bmpString = bmpString[:l-2]
    	}
    
    	s := make([]uint16, 0, len(bmpString)/2)
    	for len(bmpString) > 0 {
    		s = append(s, uint16(bmpString[0])<<8+uint16(bmpString[1]))
    		bmpString = bmpString[2:]
    	}
    
    	return string(utf16.Decode(s)), nil
    }
    
    // A RawValue represents an undecoded ASN.1 object.
    type RawValue struct {
    	Class, Tag int
    	IsCompound bool
    	Bytes      []byte
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:04:28 UTC 2023
    - 31.8K bytes
    - Viewed (0)
  7. src/debug/macho/macho.go

    	{uint32(LoadCmdRpath), "LoadCmdRpath"},
    }
    
    func (i LoadCmd) String() string   { return stringName(uint32(i), cmdStrings, false) }
    func (i LoadCmd) GoString() string { return stringName(uint32(i), cmdStrings, true) }
    
    type (
    	// A Segment32 is a 32-bit Mach-O segment load command.
    	Segment32 struct {
    		Cmd     LoadCmd
    		Len     uint32
    		Name    [16]byte
    		Addr    uint32
    		Memsz   uint32
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 14 00:56:52 UTC 2021
    - 7.6K bytes
    - Viewed (0)
  8. operator/pkg/translate/translate_test.go

        - name: istio-ingressgateway
          enabled: true
          k8s:
            service:
              ports:
              - name: http2
                port: 80
                targetPort: 8080
    `
    	const iopString2 = `
    components:
      ingressGateways:
        - name: istio-ingressgateway
          enabled: true
          k8s:
            service:
              ports:
              - name: http2
                port: 80
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Feb 12 19:43:09 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  9. src/cmd/internal/goobj/builtinlist.go

    	{"runtime.printunlock", 1},
    	{"runtime.concatstring2", 1},
    	{"runtime.concatstring3", 1},
    	{"runtime.concatstring4", 1},
    	{"runtime.concatstring5", 1},
    	{"runtime.concatstrings", 1},
    	{"runtime.cmpstring", 1},
    	{"runtime.intstring", 1},
    	{"runtime.slicebytetostring", 1},
    	{"runtime.slicebytetostringtmp", 1},
    	{"runtime.slicerunetostring", 1},
    	{"runtime.stringtoslicebyte", 1},
    	{"runtime.stringtoslicerune", 1},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 21:08:03 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  10. pkg/volume/util/util.go

    	if runtime.GOOS == "windows" {
    		cmdString := "Get-Volume -FilePath $env:mountpath | Write-Volumecache"
    		cmd := exec.Command("powershell", "/c", cmdString)
    		env := append(os.Environ(), fmt.Sprintf("mountpath=%s", deviceMountPath))
    		cmd.SetEnv(env)
    		klog.V(8).Infof("Executing command: %q", cmdString)
    		output, err := cmd.CombinedOutput()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 12:32:15 UTC 2024
    - 28.8K bytes
    - Viewed (0)
Back to top