Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 387 for IsString (0.25 sec)

  1. subprojects/core/src/integTest/resources/org/gradle/api/resource/TextResourceIntegrationTest/shared/build.gradle

    class MyTask extends DefaultTask {
        @Nested
        TextResource config
    
        @OutputFile
        File output
    
        @TaskAction
        void generate() {
            getOutput().text = getConfig().asString()
        }
    }
    
    def generateConfigFile = tasks.register("generateConfigFile") {
        outputs.file "config.txt"
        doLast {
            file("config.txt").text = "my config"
        }
    }
    
    task generateConfigZip(type: Zip) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 27 20:48:11 UTC 2019
    - 1.3K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/transform/ArtifactTransformExecutionBuildOperationIntegrationTest.groovy

            return actionExecution.empty ? null : Iterables.getOnlyElement(actionExecution)
        }
    
        String buildCacheKeyFor(String identity) {
            def execution = transformExecutions.find { it.details.identity == identity }
            def snapshotExecution = snapshotInputsOperation(execution).result
            return snapshotExecution.hash as String
        }
    
        void enableIdentityCache() {
            // So we don't get a daemon from another test
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 12 16:27:38 UTC 2024
    - 38.5K bytes
    - Viewed (0)
  3. tensorflow/c/eager/c_api_test_util.h

                   const std::string& op_name, const std::string& send_device,
                   const std::string& recv_device,
                   tensorflow::uint64 send_device_incarnation);
    
    // Return a RecvOp op `op_name` with the attributes `send_device`,
    // `recv_device`, and `send_device_incarnation` set.
    TFE_Op* RecvOp(TFE_Context* ctx, const std::string& op_name,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jul 17 23:43:59 UTC 2023
    - 7.7K bytes
    - Viewed (0)
  4. subprojects/core/src/test/groovy/org/gradle/api/internal/resources/CharSourceBackedTextResourceTest.groovy

        def "can use char source text resource"() {
            when:
            def r = new CharSourceBackedTextResource("display name", CharSource.wrap("foo"))
    
            then:
            r.asString() == "foo"
            r.asReader().text == "foo"
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 17 02:08:55 UTC 2016
    - 1K bytes
    - Viewed (0)
  5. src/log/slog/value_access_benchmark_test.go

    		for i := 0; i < b.N; i++ {
    			for _, kv := range vs {
    				kv.Visit(v)
    			}
    		}
    	})
    }
    
    type setVisitor struct {
    	i int64
    	s string
    	b bool
    	u uint64
    	d time.Duration
    	f float64
    	a any
    }
    
    func (v *setVisitor) String(s string)          { v.s = s }
    func (v *setVisitor) Int64(i int64)            { v.i = i }
    func (v *setVisitor) Uint64(x uint64)          { v.u = x }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 21 20:55:33 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  6. src/debug/macho/file.go

    				}
    			}
    		}
    	}
    
    	return nil
    }
    
    func cstring(b []byte) string {
    	i := bytes.IndexByte(b, 0)
    	if i == -1 {
    		i = len(b)
    	}
    	return string(b[0:i])
    }
    
    // Segment returns the first Segment with the given name, or nil if no such segment exists.
    func (f *File) Segment(name string) *Segment {
    	for _, l := range f.Loads {
    		if s, ok := l.(*Segment); ok && s.Name == name {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:33:30 UTC 2023
    - 17.9K bytes
    - Viewed (0)
  7. subprojects/core/src/main/java/org/gradle/internal/scopeids/UniqueIdSerializer.java

        }
    
        @Override
        public UniqueId read(Decoder decoder) throws Exception {
            String string = decoder.readString();
            return UniqueId.from(string);
        }
    
        @Override
        public void write(Encoder encoder, UniqueId value) throws Exception {
            encoder.writeString(value.asString());
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 12 00:24:17 UTC 2017
    - 1.3K bytes
    - Viewed (0)
  8. src/debug/pe/section.go

    // in sh.Name, but if it is longer then 8 characters, it is stored
    // in COFF string table st instead.
    func (sh *SectionHeader32) fullName(st StringTable) (string, error) {
    	if sh.Name[0] != '/' {
    		return cstring(sh.Name[:]), nil
    	}
    	i, err := strconv.Atoi(cstring(sh.Name[1:]))
    	if err != nil {
    		return "", err
    	}
    	return st.String(uint32(i))
    }
    
    // TODO(brainman): copy all IMAGE_REL_* consts from ldpe.go here
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:33:30 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  9. src/syscall/syscall_plan9.go

    }
    
    //sys	bind(name string, old string, flag int) (err error)
    
    func Bind(name string, old string, flag int) (err error) {
    	if fixwd(name, old) {
    		defer runtime.UnlockOSThread()
    	}
    	return bind(name, old, flag)
    }
    
    //sys	mount(fd int, afd int, old string, flag int, aname string) (err error)
    
    func Mount(fd int, afd int, old string, flag int, aname string) (err error) {
    	if fixwd(old) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  10. api/maven-api-core/src/main/java/org/apache/maven/api/Version.java

     * @see org.apache.maven.api.services.VersionParser#parseVersion(String)
     * @see org.apache.maven.api.Session#parseVersion(String)
     */
    @Experimental
    public interface Version extends Comparable<Version> {
        /**
         * Returns a string representation of this version.
         * @return the string representation of this version
         */
        @Nonnull
        String asString();
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Dec 19 19:08:55 UTC 2023
    - 1.4K bytes
    - Viewed (0)
Back to top