Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 210 for passstring (0.19 sec)

  1. src/cmd/cgo/internal/testerrors/ptr_test.go

    		    extern unsigned char *GoFn22();`,
    		support: `//export GoFn22
    		          func GoFn22() *byte { return (*byte)(C.malloc(1)) }`,
    		body: `C.GoFn22()`,
    	},
    	{
    		// Passing a Go string is fine.
    		name: "passstring",
    		c: `#include <stddef.h>
    		    typedef struct { const char *p; ptrdiff_t n; } gostring23;
    		    gostring23 f23(gostring23 s) { return s; }`,
    		imports: []string{"unsafe"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 03 16:07:49 UTC 2023
    - 21.2K bytes
    - Viewed (0)
  2. samples/guide/src/main/java/okhttp3/recipes/kt/PostString.kt

    import okhttp3.HttpUrl.Companion.toHttpUrl
    import okhttp3.MediaType.Companion.toMediaType
    import okhttp3.OkHttpClient
    import okhttp3.Request
    import okhttp3.RequestBody.Companion.toRequestBody
    
    class PostString {
      private val client = OkHttpClient()
    
      fun run() {
        val postBody =
          """
          |Releases
          |--------
          |
          | * _1.0_ May 6, 2013
          | * _1.1_ June 15, 2013
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  3. internal/s3select/sql/parser_test.go

    	}
    	for i, tc := range validCases {
    		err := p.ParseString(tc, &id)
    		if err != nil {
    			t.Fatalf("%d: %v", i, err)
    		}
    		// repr.Println(id, repr.Indent("  "), repr.OmitEmpty(true))
    	}
    
    	invalidCases := []string{
    		"+a",
    		"-a",
    		"1a",
    		`"ab`,
    		`abc"`,
    		`aa""a`,
    		`"a"a"`,
    	}
    	for i, tc := range invalidCases {
    		err := p.ParseString(tc, &id)
    		if err == nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  4. platforms/native/platform-native/src/main/java/org/gradle/nativeplatform/internal/CompilerOutputFileNamingScheme.java

    package org.gradle.nativeplatform.internal;
    
    import org.apache.commons.io.FilenameUtils;
    import org.gradle.internal.file.RelativeFilePathResolver;
    
    import java.io.File;
    
    import static org.gradle.internal.hash.Hashing.hashString;
    
    public class CompilerOutputFileNamingScheme {
        private String objectFileNameSuffix;
        private File outputBaseFolder;
        private final RelativeFilePathResolver fileResolver;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  5. internal/pubsub/pubsub_test.go

    	time.Sleep(100 * time.Millisecond)
    	ps.Lock()
    	if len(ps.subs) != 1 {
    		t.Fatal("expected 1 subscriber")
    	}
    	ps.Unlock()
    	close(doneCh2)
    }
    
    type maskString string
    
    func (m maskString) Mask() uint64 {
    	return 1
    }
    
    func TestPubSub(t *testing.T) {
    	ps := New[Maskable, Maskable](1)
    	ch1 := make(chan Maskable, 1)
    	doneCh1 := make(chan struct{})
    	defer close(doneCh1)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  6. platforms/core-configuration/kotlin-dsl-provider-plugins/src/main/kotlin/org/gradle/kotlin/dsl/provider/plugins/precompiled/PrecompiledScriptPlugin.kt

        val compiledScriptTypeName by lazy {
            packagePrefixed(scriptClassNameForFile(scriptFile))
        }
    
        val packageName: String? by lazy {
            packageNameOf(scriptText)
        }
    
        val hashString by lazy {
            PrecompiledScriptDependenciesResolver.hashOfNormalisedString(scriptText)
        }
    
        val scriptText: String
            get() = convertLineSeparatorsToUnix(scriptFile.readText())
    
        private
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 8.2K bytes
    - Viewed (0)
  7. maven-compat/src/main/java/org/apache/maven/repository/metadata/MetadataGraphVertex.java

                return super.hashCode();
            }
            StringBuilder hashString = new StringBuilder(128);
            hashString.append(md.groupId).append('|');
            hashString.append(md.artifactId).append('|');
    
            if (compareVersion) {
                hashString.append(md.version).append('|');
            }
    
            if (compareScope) {
                hashString.append(md.getArtifactScope()).append('|');
            }
    
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Sep 06 11:28:54 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  8. subprojects/core/src/test/groovy/org/gradle/api/internal/file/copy/DuplicateHandlingCopyActionExecutorTest.groovy

            actions {}
    
            when:
            visit()
    
            then:
            2 * delegateAction.processFile({ it.relativePath.pathString == '/root/path/file1.txt' })
            1 * delegateAction.processFile({ it.relativePath.pathString == '/root/path/file2.txt' })
        }
    
        def duplicatesExcludedByPerFileConfiguration() {
            given:
            files 'path/file1.txt', 'path/file2.txt', 'path/file1.txt'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 02 14:30:00 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  9. subprojects/core/src/test/groovy/org/gradle/api/internal/file/copy/CopyActionExecuterTest.groovy

            when:
            executer.execute(copySpec, copyAction)
    
            then:
            1 * action.processFile({ it.relativePath.pathString == "a" })
            0 * action.processFile(_)
        }
    
        Closure path(path) {
            return { println it.relativePath.pathString; it.relativePath.pathString == path }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 28 12:39:32 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  10. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/metadata/HasKotlinFlagsMetadataQuery.kt

        val properties = propertiesSupplier.get()
        for (p in properties) {
            when (jvmSignature) {
                p.fieldSignature?.asString() -> return predicate(p.flags)
                p.getterSignature?.asString() -> return predicate(p.getterFlags)
                p.setterSignature?.asString() -> return predicate(p.setterFlags)
            }
        }
        return false
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 07 08:14:15 UTC 2023
    - 4.5K bytes
    - Viewed (0)
Back to top