- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 1,073 for parens (0.18 sec)
-
src/regexp/syntax/regexp.go
case OpCapture: if x.Cap != y.Cap || x.Name != y.Name || !x.Sub[0].Equal(y.Sub[0]) { return false } } return true } // printFlags is a bit set indicating which flags (including non-capturing parens) to print around a regexp. type printFlags uint8 const ( flagI printFlags = 1 << iota // (?i: flagM // (?m: flagS // (?s:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 29 16:41:51 UTC 2024 - 11.6K bytes - Viewed (0) -
src/runtime/string.go
// //go:linkname slicebytetostring func slicebytetostring(buf *tmpBuf, ptr *byte, n int) string { if n == 0 { // Turns out to be a relatively common case. // Consider that you want to parse out data between parens in "foo()bar", // you find the indices and convert the subslice to string. return "" } if raceenabled { racereadrangepc(unsafe.Pointer(ptr), uintptr(n), getcallerpc(),
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:17:26 UTC 2024 - 13.4K bytes - Viewed (0) -
src/fmt/scan.go
} return string(s.buf) } // complexTokens returns the real and imaginary parts of the complex number starting here. // The number might be parenthesized and has the format (N+Ni) where N is a floating-point // number and there are no spaces within. func (s *ss) complexTokens() (real, imag string) { // TODO: accept N and Ni independently? parens := s.accept("(") real = s.floatToken() s.buf = s.buf[:0]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 21:56:20 UTC 2024 - 31.9K bytes - Viewed (0) -
src/go/printer/printer_test.go
func f() ` if got != want { t.Fatalf("got:\n%s\nwant:\n%s\n", got, want) } } // TestChanType tests that the tree for <-(<-chan int), without // ParenExpr, is correctly formatted with parens. // Test case for issue #63362. func TestChanType(t *testing.T) { expr := &ast.UnaryExpr{ Op: token.ARROW, X: &ast.CallExpr{ Fun: &ast.ChanType{ Dir: ast.RECV,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 03 14:56:25 UTC 2024 - 20.4K bytes - Viewed (0) -
src/cmd/vendor/rsc.io/markdown/link.go
case '?', '!', '.', ',', ':', '@', '_', '~': // Trim certain trailing punctuation. i-- continue Trim case ')': // Trim trailing unmatched (by count only) parens. if paren < 0 { for s[i-1] == ')' && paren < 0 { paren++ i-- } continue Trim } case ';': // Trim entity reference. // After doing the work of the scan, we either cut that part off the string
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 24 13:01:26 UTC 2024 - 20.7K bytes - Viewed (0) -
src/go/doc/example.go
if isTest(name, "Test") || isTest(name, "Benchmark") || isTest(name, "Fuzz") { hasTests = true continue } if !isTest(name, "Example") { continue } if params := f.Type.Params; len(params.List) != 0 { continue // function has params; not a valid example } if f.Body == nil { // ast.File.Body nil dereference (see issue 28044) continue } var doc string if f.Doc != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 21.4K bytes - Viewed (0) -
src/go/types/resolver.go
} if t := d.decl.Type; t.Params.NumFields() != 0 || t.Results != nil { // TODO(rFindley) Should this be a hard error? check.softErrorf(d.decl.Name, code, "func %s must have no arguments and no return values", name) } } if name == "init" { // don't declare init functions in the package scope - they are invisible obj.parent = pkg.scope check.recordDef(d.decl.Name, obj)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 16:22:59 UTC 2024 - 26.1K bytes - Viewed (0) -
src/time/format_test.go
} s = suffix } return out } noParens := func(r rune) rune { if r == '(' || r == ')' { return -1 } return r } for _, marked := range nextStdChunkTests { // marked is an expected output from markChunks. // If we delete the parens and pass it through markChunks, // we should get the original back. format := strings.Map(noParens, marked) out := markChunks(format) if out != marked {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 00:58:29 UTC 2024 - 36.4K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/typecheck.go
} } return true } func hasddd(params []*types.Field) bool { // TODO(mdempsky): Simply check the last param. for _, tl := range params { if tl.IsDDD() { return true } } return false } // typecheck assignment: type list = expression list func typecheckaste(op ir.Op, call ir.Node, isddd bool, params []*types.Field, nl ir.Nodes, desc func() string) { var t *types.Type
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 20 19:08:34 UTC 2024 - 30.5K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/text/internal/language/compact/parents.go
// Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. package compact // parents maps a compact index of a tag to the compact index of the parent of // this tag. var parents = []ID{ // 775 elements // Entry 0 - 3F 0x0000, 0x0000, 0x0001, 0x0001, 0x0000, 0x0004, 0x0000, 0x0006, 0x0000, 0x0008, 0x0000, 0x000a, 0x000a, 0x000a, 0x000a, 0x000a, 0x000a, 0x000a, 0x000a, 0x000a, 0x000a, 0x000a, 0x000a, 0x000a,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 24 13:01:26 UTC 2024 - 6.7K bytes - Viewed (0)