Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 39 for Clip (0.03 sec)

  1. guava/src/com/google/common/escape/ArrayBasedUnicodeEscaper.java

        // where {hi,lo} are characters forming a surrogate pair such that:
        // codePointOf(hi, lo) > safeMax
        // which would result in the surrogate pair being (wrongly) considered safe.
        // If we clip the safe range used during the per-character tests so it is
        // below the values of characters in surrogate pairs, this cannot occur.
        // This approach does mean that we break out of the fast path code in cases
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 8.5K bytes
    - Viewed (0)
  2. src/log/slog/record.go

    	}
    }
    
    // Clone returns a copy of the record with no shared state.
    // The original record and the clone can both be modified
    // without interfering with each other.
    func (r Record) Clone() Record {
    	r.back = slices.Clip(r.back) // prevent append from mutating shared array
    	return r
    }
    
    // NumAttrs returns the number of attributes in the [Record].
    func (r Record) NumAttrs() int {
    	return r.nFront + len(r.back)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 16:30:56 UTC 2023
    - 6K bytes
    - Viewed (0)
  3. src/cmd/go/internal/mvs/graph.go

    // The caller must ensure that the root slice is not modified while the Graph
    // may be in use.
    func NewGraph(cmp func(p, v1, v2 string) int, roots []module.Version) *Graph {
    	g := &Graph{
    		cmp:      cmp,
    		roots:    slices.Clip(roots),
    		required: make(map[module.Version][]module.Version),
    		isRoot:   make(map[module.Version]bool),
    		selected: make(map[string]string),
    	}
    
    	for _, m := range roots {
    		g.isRoot[m] = true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 01 02:52:19 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/unusedresult/unusedresult.go

    		"context.WithTimeout":  true,
    		"context.WithValue":    true,
    		"errors.New":           true,
    		"fmt.Errorf":           true,
    		"fmt.Sprint":           true,
    		"fmt.Sprintf":          true,
    		"slices.Clip":          true,
    		"slices.Compact":       true,
    		"slices.CompactFunc":   true,
    		"slices.Delete":        true,
    		"slices.DeleteFunc":    true,
    		"slices.Grow":          true,
    		"slices.Insert":        true,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 19:00:13 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  5. src/cmd/go/internal/vcweb/hg.go

    		defer cancel()
    
    		cmd := exec.CommandContext(ctx, h.hgPath, "serve", "--port", "0", "--address", "localhost", "--accesslog", os.DevNull, "--name", "vcweb", "--print-url")
    		cmd.Dir = dir
    		cmd.Env = append(slices.Clip(env), "PWD="+dir)
    
    		cmd.Cancel = func() error {
    			err := cmd.Process.Signal(os.Interrupt)
    			if err != nil && !errors.Is(err, os.ErrProcessDone) {
    				err = cmd.Process.Kill()
    			}
    			return err
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 01 02:52:19 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  6. src/cmd/go/go_unix_test.go

    	// with a signal they might fail to clean up some temp files, and we don't
    	// want that to cause an "unexpected files" failure at the end of the run.
    	cmd.Env = append(slices.Clip(tg.env), tempEnvName()+"="+t.TempDir())
    
    	cmd.SysProcAttr = &syscall.SysProcAttr{
    		Setpgid: true,
    	}
    	cmd.Cancel = func() error {
    		pgid := cmd.Process.Pid
    		return syscall.Kill(-pgid, syscall.SIGINT)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 19 16:17:55 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/base/Java8Compatibility.java

     */
    @J2ktIncompatible
    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    final class Java8Compatibility {
      static void clear(Buffer b) {
        b.clear();
      }
    
      static void flip(Buffer b) {
        b.flip();
      }
    
      static void limit(Buffer b, int limit) {
        b.limit(limit);
      }
    
      static void position(Buffer b, int position) {
        b.position(position);
      }
    
      private Java8Compatibility() {}
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 23 15:09:35 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  8. guava/src/com/google/common/base/Java8Compatibility.java

     */
    @J2ktIncompatible
    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    final class Java8Compatibility {
      static void clear(Buffer b) {
        b.clear();
      }
    
      static void flip(Buffer b) {
        b.flip();
      }
    
      static void limit(Buffer b, int limit) {
        b.limit(limit);
      }
    
      static void position(Buffer b, int position) {
        b.position(position);
      }
    
      private Java8Compatibility() {}
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 23 15:09:35 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/io/Java8Compatibility.java

     */
    @J2ktIncompatible
    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    final class Java8Compatibility {
      static void clear(Buffer b) {
        b.clear();
      }
    
      static void flip(Buffer b) {
        b.flip();
      }
    
      static void limit(Buffer b, int limit) {
        b.limit(limit);
      }
    
      static void mark(Buffer b) {
        b.mark();
      }
    
      static void position(Buffer b, int position) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 28 20:13:02 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  10. guava/src/com/google/common/io/Java8Compatibility.java

     */
    @J2ktIncompatible
    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    final class Java8Compatibility {
      static void clear(Buffer b) {
        b.clear();
      }
    
      static void flip(Buffer b) {
        b.flip();
      }
    
      static void limit(Buffer b, int limit) {
        b.limit(limit);
      }
    
      static void mark(Buffer b) {
        b.mark();
      }
    
      static void position(Buffer b, int position) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 28 20:13:02 UTC 2023
    - 1.4K bytes
    - Viewed (0)
Back to top