Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for UTF8String (0.12 sec)

  1. src/crypto/x509/parser_test.go

    			value:       []byte{1, 2, 3},
    			expectedErr: "invalid PrintableString",
    		},
    		{
    			name:     "UTF8String",
    			tag:      cryptobyte_asn1.UTF8String,
    			value:    []byte{80, 81, 82},
    			expected: string("PQR"),
    		},
    		{
    			name:        "UTF8String (invalid)",
    			tag:         cryptobyte_asn1.UTF8String,
    			value:       []byte{255},
    			expectedErr: "invalid UTF-8 string",
    		},
    		{
    			name:     "BMPString",
    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. platforms/documentation/docs/src/snippets/native-binaries/objective-c/groovy/src/main/objc/greeter.m

    #import "greeter.h"
    
    @implementation Greeter
    
    - (void) sayHello {
        NSString *helloWorld = @"Hello world!";
        fprintf(stdout, "%s\n", [helloWorld UTF8String]);
    }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 172 bytes
    - Viewed (0)
  3. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/ObjectiveCHelloWorldApp.groovy

                    NSString *helloWorld = @"${HELLO_WORLD}";
                    #ifdef FRENCH
                    helloWorld = @"${HELLO_WORLD_FRENCH}";
                    #endif
                    fprintf(stdout, "%s\\n", [helloWorld UTF8String]);
                }
                @end
            """),
                    sourceFile("objc", "sum.m", """
                #include "common.h"
    
                int sum (int a, int b)
                {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/snippets/native-binaries/objective-cpp/groovy/src/main/objcpp/greeter.mm

    #import <iostream>
    #import "greeter.h"
    
    @implementation Greeter
    
    - (void) sayHello {
        NSString *helloWorld = @"Hello world!";
        std::cout << [helloWorld UTF8String] << std::endl;
    }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 192 bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/testFixtures/groovy/org/gradle/containers/GradleContainer.groovy

                    super.accept(outputFrame)
                    println(outputFrame.utf8String)
                }
            }
            def stderrConsumer = new ToStringConsumer() {
                @Override
                void accept(OutputFrame outputFrame) {
                    super.accept(outputFrame)
                    System.err.println(outputFrame.utf8String)
                }
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  6. src/vendor/golang.org/x/crypto/cryptobyte/asn1/asn1.go

    const (
    	BOOLEAN           = Tag(1)
    	INTEGER           = Tag(2)
    	BIT_STRING        = Tag(3)
    	OCTET_STRING      = Tag(4)
    	NULL              = Tag(5)
    	OBJECT_IDENTIFIER = Tag(6)
    	ENUM              = Tag(10)
    	UTF8String        = Tag(12)
    	SEQUENCE          = Tag(16 | classConstructed)
    	SET               = Tag(17 | classConstructed)
    	PrintableString   = Tag(19)
    	T61String         = Tag(20)
    	IA5String         = Tag(22)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 11 20:28:54 UTC 2019
    - 1.6K bytes
    - Viewed (0)
  7. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerAdapter.kt

       * when a value has both a context or application tag and a universal tag.
       *
       * Use this for EXPLICIT tag types:
       *
       * ```
       * [5] EXPLICIT UTF8String
       * ```
       *
       * @param forceConstructed non-null to set the constructed bit to the specified value, even if the
       *     writing process sets something else. This is used to encode SEQUENCES in values that are
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  8. okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerTest.kt

      }
    
      @Test fun `implicit tag`() {
        // [5] IMPLICIT UTF8String
        val bytes = "85026869".decodeHex()
        val implicitAdapter = Adapters.UTF8_STRING.withTag(tag = 5L)
        assertThat(implicitAdapter.fromDer(bytes)).isEqualTo("hi")
        assertThat(implicitAdapter.toDer("hi")).isEqualTo(bytes)
      }
    
      @Test fun `encode implicit`() {
        // [5] IMPLICIT UTF8String
        val implicitAdapter = Adapters.UTF8_STRING.withTag(tag = 5L)
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 31.7K bytes
    - Viewed (0)
  9. src/encoding/asn1/marshal.go

    		if params.stringType == 0 {
    			// This is a string without an explicit string type. We'll use
    			// a PrintableString if the character set in the string is
    			// sufficiently limited, otherwise we'll use a UTF8String.
    			for _, r := range v.String() {
    				if r >= utf8.RuneSelf || !isPrintable(byte(r), rejectAsterisk, rejectAmpersand) {
    					if !utf8.ValidString(v.String()) {
    						return nil, errors.New("asn1: string not valid UTF-8")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  10. src/encoding/asn1/asn1.go

    // byte slice and returns it.
    func parseT61String(bytes []byte) (ret string, err error) {
    	return string(bytes), nil
    }
    
    // UTF8String
    
    // parseUTF8String parses an ASN.1 UTF8String (raw UTF-8) from the given byte
    // array and returns it.
    func parseUTF8String(bytes []byte) (ret string, err error) {
    	if !utf8.Valid(bytes) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:04:28 UTC 2023
    - 31.8K bytes
    - Viewed (0)
Back to top