- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for UTF8String (0.12 sec)
-
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) -
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) -
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) -
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) -
platforms/software/dependency-management/src/testFixtures/groovy/org/gradle/containers/GradleContainer.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 3.3K bytes - Viewed (0) -
src/vendor/golang.org/x/crypto/cryptobyte/asn1/asn1.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 11 20:28:54 UTC 2019 - 1.6K bytes - Viewed (0) -
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) -
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) -
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) -
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)