Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 912 for regular (0.26 sec)

  1. src/io/fs/fs.go

    // That is, it tests for the [ModeDir] bit being set in m.
    func (m FileMode) IsDir() bool {
    	return m&ModeDir != 0
    }
    
    // IsRegular reports whether m describes a regular file.
    // That is, it tests that no mode type bits are set.
    func (m FileMode) IsRegular() bool {
    	return m&ModeType == 0
    }
    
    // Perm returns the Unix permission bits in m (m & [ModePerm]).
    func (m FileMode) Perm() FileMode {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 15 21:21:41 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  2. src/cmd/gofmt/testdata/typealias.input

    import "p"
    
    type _ = int
    type a = struct{ x int }
    type b = p.B
    
    type (
    	_ = chan<- int
    	aa = interface{}
    	bb = p.BB
    )
    
    // TODO(gri) We may want to put the '=' into a separate column if
    // we have mixed (regular and alias) type declarations in a group.
    type (
    	_ chan<- int
    	_ = chan<- int
    	aa0 interface{}
    	aaa = interface{}
    	bb0 p.BB
    	bbb = p.BB
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 10 00:09:48 UTC 2017
    - 360 bytes
    - Viewed (0)
  3. platforms/core-configuration/file-collections/src/test/groovy/org/gradle/api/internal/file/DefaultFilePropertyFactoryTest.groovy

            dirVar.set((File) null)
            !dirVar.present
            dirVar.getOrNull() == null
            !fileProvider.present
            fileProvider.getOrNull() == null
        }
    
        def "can create regular file property"() {
            def pathProvider = Stub(ProviderInternal)
            _ * pathProvider.get() >> { "../some-file" }
            _ * pathProvider.present >> true
            def otherFile = tmpDir.file("some-file")
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 10.4K bytes
    - Viewed (0)
  4. src/cmd/vendor/github.com/google/pprof/profile/filter.go

    			}
    		}
    		for lab := range s.NumLabel {
    			if matchRemove(lab) {
    				delete(s.NumLabel, lab)
    			}
    		}
    	}
    	return
    }
    
    // matchesName returns whether the location matches the regular
    // expression. It checks any available function names, file names, and
    // mapping object filename.
    func (loc *Location) matchesName(re *regexp.Regexp) bool {
    	for _, ln := range loc.Line {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 22 18:58:12 UTC 2022
    - 7.5K bytes
    - Viewed (0)
  5. platforms/core-runtime/functional/src/main/java/org/gradle/internal/io/IoRunnable.java

     */
    @FunctionalInterface
    public interface IoRunnable {
        void run() throws IOException;
    
        /**
         * Wraps an {@link IOException}-throwing {@link IoRunnable} into a regular {@link Runnable}.
         *
         * Any {@code IOException}s are rethrown as {@link UncheckedIOException}.
         */
        static Runnable wrap(IoRunnable runnable) {
            return () -> {
                try {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 22 09:41:33 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  6. platforms/software/resources/src/main/java/org/gradle/internal/resource/local/FileResourceListener.java

    import org.gradle.internal.service.scopes.Scope;
    
    import java.io.File;
    
    @EventScope(Scope.Build.class)
    public interface FileResourceListener {
        /**
         * Called when a file system resource is accessed as a regular file.
         */
        void fileObserved(File file);
    
        /**
         * Called when the children of a file system resource are listed.
         */
        void directoryChildrenObserved(File file);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  7. src/encoding/json/example_text_marshaling_test.go

    	switch s {
    	default:
    		name = "unrecognized"
    	case Small:
    		name = "small"
    	case Large:
    		name = "large"
    	}
    	return []byte(name), nil
    }
    
    func Example_textMarshalJSON() {
    	blob := `["small","regular","large","unrecognized","small","normal","small","large"]`
    	var inventory []Size
    	if err := json.Unmarshal([]byte(blob), &inventory); err != nil {
    		log.Fatal(err)
    	}
    
    	counts := make(map[Size]int)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 12 14:18:06 UTC 2018
    - 1.2K bytes
    - Viewed (0)
  8. pkg/apis/core/pods/helpers_test.go

    		description string
    		path        *field.Path
    		haveSpec    *api.PodSpec
    		wantNames   []string
    	}{
    		{
    			"empty podspec",
    			field.NewPath("spec"),
    			&api.PodSpec{},
    			[]string{},
    		},
    		{
    			"regular containers",
    			field.NewPath("spec"),
    			&api.PodSpec{
    				Containers: []api.Container{
    					{Name: "c1"},
    					{Name: "c2"},
    				},
    			},
    			[]string{"spec.containers[0]", "spec.containers[1]"},
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 14 01:35:30 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  9. src/os/types_windows.go

    			// raw device files on Linux, POSIX FIFO special files, and so on), so
    			// to avoid files changing unpredictably from regular to irregular we will
    			// consider DEDUP files to be close enough to regular to treat as such.
    		default:
    			m |= ModeIrregular
    		}
    	}
    	return
    }
    
    // modePreGo1_23 returns the FileMode for the fileStat, using the pre-Go 1.23
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:44:48 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  10. operator/pkg/validate/common.go

    	if err == nil {
    		msg += ": OK\n"
    	} else {
    		msg += fmt.Sprintf(": %v\n", err)
    	}
    	scope.Debug(msg)
    }
    
    // match compiles the string to a regular expression.
    var match = regexp.MustCompile
    
    // literal compiles s into a literal regular expression, escaping any regexp
    // reserved characters.
    func literal(s string) *regexp.Regexp {
    	re := match(regexp.QuoteMeta(s))
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Aug 10 15:35:03 UTC 2023
    - 11K bytes
    - Viewed (0)
Back to top