Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 860 for qprint (0.18 sec)

  1. src/mime/quotedprintable/reader_test.go

    	}
    }
    
    var useQprint = flag.Bool("qprint", false, "Compare against the 'qprint' program.")
    
    var badSoftRx = regexp.MustCompile(`=([^\r\n]+?\n)|([^\r\n]+$)|(\r$)|(\r[^\n]+\n)|( \r\n)`)
    
    func TestExhaustive(t *testing.T) {
    	if *useQprint {
    		_, err := exec.LookPath("qprint")
    		if err != nil {
    			t.Fatalf("Error looking for qprint: %v", err)
    		}
    	}
    
    	var buf strings.Builder
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  2. src/go/ast/print.go

    		}
    	}()
    
    	// print x
    	if x == nil {
    		p.printf("nil\n")
    		return
    	}
    	p.print(reflect.ValueOf(x))
    	p.printf("\n")
    
    	return
    }
    
    // Print prints x to standard output, skipping nil fields.
    // Print(fset, x) is the same as Fprint(os.Stdout, fset, x, NotNilFilter).
    func Print(fset *token.FileSet, x any) error {
    	return Fprint(os.Stdout, fset, x, NotNilFilter)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 28 21:32:41 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  3. src/fmt/print.go

    // It returns the number of bytes written and any write error encountered.
    func Print(a ...any) (n int, err error) {
    	return Fprint(os.Stdout, a...)
    }
    
    // Sprint formats using the default formats for its operands and returns the resulting string.
    // Spaces are added between operands when neither is a string.
    func Sprint(a ...any) string {
    	p := newPrinter()
    	p.doPrint(a)
    	s := string(p.buf)
    	p.free()
    	return s
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:22:43 UTC 2024
    - 31.8K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/printf/printf.go

    // to learn whether a function behaves like fmt.Print or fmt.Printf.
    type Result struct {
    	funcs map[*types.Func]Kind
    }
    
    // Kind reports whether fn behaves like fmt.Print or fmt.Printf.
    func (r *Result) Kind(fn *types.Func) Kind {
    	_, ok := isPrint[fn.FullName()]
    	if !ok {
    		// Next look up just "printf", for use with -printf.funcs.
    		_, ok = isPrint[strings.ToLower(fn.Name())]
    	}
    	if ok {
    		if strings.HasSuffix(fn.Name(), "f") {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 32.5K bytes
    - Viewed (0)
  5. internal/logger/console.go

    		if len(line) == 0 {
    			// No more text to print, just quit.
    			break
    		}
    
    		for {
    			// Save the attributes of the current cursor helps
    			// us save the text color of the passed error message
    			ansiSaveAttributes()
    			// Print banner with or without the log tag
    			if !tagPrinted {
    				fmt.Fprint(Output, logBanner)
    				tagPrinted = true
    			} else {
    				fmt.Fprint(Output, emptyBanner)
    			}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  6. src/fmt/fmt_test.go

    	desc  string
    	fn    func()
    }{
    	{0, `Sprintf("")`, func() { _ = Sprintf("") }},
    	{1, `Sprintf("xxx")`, func() { _ = Sprintf("xxx") }},
    	{0, `Sprintf("%x")`, func() { _ = Sprintf("%x", 7) }},
    	{1, `Sprintf("%x")`, func() { _ = Sprintf("%x", 1<<16) }},
    	{3, `Sprintf("%80000s")`, func() { _ = Sprintf("%80000s", "hello") }}, // large buffer (>64KB)
    	{1, `Sprintf("%s")`, func() { _ = Sprintf("%s", "hello") }},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:31:55 UTC 2024
    - 58.6K bytes
    - Viewed (0)
  7. src/internal/fmtsort/sort_test.go

    		m[chans[i]] = fmt.Sprint(i)
    	}
    	return m
    }
    
    type toy struct {
    	A int // Exported.
    	b int // Unexported.
    }
    
    func TestOrder(t *testing.T) {
    	for _, test := range sortTests {
    		got := sprint(test.data)
    		if got != test.print {
    			t.Errorf("%s: got %q, want %q", reflect.TypeOf(test.data), got, test.print)
    		}
    	}
    }
    
    func TestInterface(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  8. src/go/printer/printer_test.go

    	}
    
    	cfg := &Config{
    		Mode:     SourcePos, // emit line comments
    		Tabwidth: 8,
    	}
    	var buf bytes.Buffer
    	if err := cfg.Fprint(&buf, fset, f); err == nil {
    		t.Errorf("Fprint did not error for source file path containing newline")
    	}
    	if buf.Len() != 0 {
    		t.Errorf("unexpected Fprint output:\n%s", buf.Bytes())
    	}
    }
    
    // TestEmptyDecl tests that empty decls for const, var, import are printed with
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  9. src/cmd/cgo/out.go

    			fmt.Fprint(fgo2, "\tif e != 0 {\n")
    			fmt.Fprint(fgo2, "\t\treturn ")
    			if !void {
    				fmt.Fprint(fgo2, "r, ")
    			}
    			fmt.Fprint(fgo2, "e\n")
    			fmt.Fprint(fgo2, "\t}\n")
    			fmt.Fprint(fgo2, "\treturn ")
    			if !void {
    				fmt.Fprint(fgo2, "r, ")
    			}
    			fmt.Fprint(fgo2, "nil\n")
    		} else if !void {
    			fmt.Fprint(fgo2, "\treturn r\n")
    		}
    
    		fmt.Fprint(fgo2, "}\n")
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 16:41:10 UTC 2024
    - 59.6K bytes
    - Viewed (0)
  10. src/strconv/makeisprint.go

    	fmt.Fprintf(&buf, "var isNotPrint16 = []uint16{\n")
    	for _, r := range except16 {
    		fmt.Fprintf(&buf, "\t%#04x,\n", r)
    	}
    	fmt.Fprintf(&buf, "}\n\n")
    
    	fmt.Fprintf(&buf, "var isPrint32 = []uint32{\n")
    	for i := 0; i < len(range32); i += 2 {
    		fmt.Fprintf(&buf, "\t%#06x, %#06x,\n", range32[i], range32[i+1])
    	}
    	fmt.Fprintf(&buf, "}\n\n")
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 11 18:56:17 UTC 2024
    - 4.3K bytes
    - Viewed (0)
Back to top