Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for bmpString (0.4 sec)

  1. 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)
  2. 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)
  3. src/crypto/x509/parser.go

    		// handful of CA certificates that contain it. At least
    		// one of which will not expire until 2027.
    		b == '&'
    }
    
    // parseASN1String parses the ASN.1 string types T61String, PrintableString,
    // UTF8String, BMPString, IA5String, and NumericString. This is mostly copied
    // from the respective encoding/asn1.parse... methods, rather than just
    // increasing the API surface of that package.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:00:16 UTC 2024
    - 38.5K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. src/cmd/compile/internal/typecheck/_builtin/runtime.go

    func concatstring4(*[32]byte, string, string, string, string) string
    func concatstring5(*[32]byte, string, string, string, string, string) string
    func concatstrings(*[32]byte, []string) string
    
    func cmpstring(string, string) int
    func intstring(*[4]byte, int64) string
    func slicebytetostring(buf *[32]byte, ptr *byte, n int) string
    func slicebytetostringtmp(ptr *byte, n int) string
    func slicerunetostring(*[32]byte, []rune) string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 21:08:03 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/typecheck/builtin.go

    	{"printunlock", funcTag, 9},
    	{"concatstring2", funcTag, 34},
    	{"concatstring3", funcTag, 35},
    	{"concatstring4", funcTag, 36},
    	{"concatstring5", funcTag, 37},
    	{"concatstrings", funcTag, 39},
    	{"cmpstring", funcTag, 40},
    	{"intstring", funcTag, 43},
    	{"slicebytetostring", funcTag, 44},
    	{"slicebytetostringtmp", funcTag, 45},
    	{"slicerunetostring", funcTag, 48},
    	{"stringtoslicebyte", funcTag, 50},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 21:08:03 UTC 2024
    - 16.2K bytes
    - Viewed (0)
Back to top