Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 54 for containsLine (0.17 sec)

  1. src/cmd/compile/internal/types2/resolver.go

    	}
    	if s == "" {
    		return "", fmt.Errorf("empty string")
    	}
    	const illegalChars = `!"#$%&'()*,:;<=>?[\]^{|}` + "`\uFFFD"
    	for _, r := range s {
    		if !unicode.IsGraphic(r) || unicode.IsSpace(r) || strings.ContainsRune(illegalChars, r) {
    			return s, fmt.Errorf("invalid character %#U", r)
    		}
    	}
    	return s, nil
    }
    
    // declarePkgObj declares obj in the package scope, records its ident -> obj mapping,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 14:10:44 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  2. src/go/types/resolver.go

    	}
    	if s == "" {
    		return "", fmt.Errorf("empty string")
    	}
    	const illegalChars = `!"#$%&'()*,:;<=>?[\]^{|}` + "`\uFFFD"
    	for _, r := range s {
    		if !unicode.IsGraphic(r) || unicode.IsSpace(r) || strings.ContainsRune(illegalChars, r) {
    			return s, fmt.Errorf("invalid character %#U", r)
    		}
    	}
    	return s, nil
    }
    
    // declarePkgObj declares obj in the package scope, records its ident -> obj mapping,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 16:22:59 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  3. src/bytes/bytes_test.go

    	{[]byte("a☺b☻c☹d"), '☻', true},
    	{[]byte("aRegExp*"), '*', true},
    }
    
    func TestContainsRune(t *testing.T) {
    	for _, ct := range ContainsRuneTests {
    		if ContainsRune(ct.b, ct.r) != ct.expected {
    			t.Errorf("ContainsRune(%q, %q) = %v, want %v",
    				ct.b, ct.r, !ct.expected, ct.expected)
    		}
    	}
    }
    
    func TestContainsFunc(t *testing.T) {
    	for _, ct := range ContainsRuneTests {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 12:58:37 UTC 2024
    - 56.5K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/printf/printf.go

    		for _, flag := range state.flags {
    			// TODO: Disable complaint about '0' for Go 1.10. To be fixed properly in 1.11.
    			// See issues 23598 and 23605.
    			if flag == '0' {
    				continue
    			}
    			if !strings.ContainsRune(v.flags, rune(flag)) {
    				pass.ReportRangef(call, "%s format %s has unrecognized flag %c", state.name, state.format, flag)
    				return false
    			}
    		}
    	}
    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. src/go/internal/gccgoimporter/parser.go

    		p.expect('*')
    		p.expect('/')
    	}
    
    	name := p.parseName()
    	f := types.NewFunc(token.NoPos, pkg, name, p.parseFunctionType(pkg, nil))
    	p.skipInlineBody()
    
    	if name[0] == '.' || name[0] == '<' || strings.ContainsRune(name, '$') {
    		// This is an unexported function,
    		// or a function defined in a different package,
    		// or a type$equal or type$hash function.
    		// We only want to record exported functions.
    		return nil
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 02 23:14:07 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  6. src/encoding/json/encode.go

    	return enc.encode
    }
    
    func isValidTag(s string) bool {
    	if s == "" {
    		return false
    	}
    	for _, c := range s {
    		switch {
    		case strings.ContainsRune("!#$%&()*+-./:;<=>?@[]^_{|}~ ", c):
    			// Backslash and quote chars are reserved, but
    			// otherwise any punctuation chars are allowed
    			// in a tag name.
    		case !unicode.IsLetter(c) && !unicode.IsDigit(c):
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 36.2K bytes
    - Viewed (0)
  7. cmd/object-api-utils.go

    	}
    	// This is valid for AWS S3 but it will never
    	// work with file systems, we will reject here
    	// to return object name invalid rather than
    	// a cryptic error from the file system.
    	return !strings.ContainsRune(object, 0)
    }
    
    // checkObjectNameForLengthAndSlash -check for the validity of object name length and prefis as slash
    func checkObjectNameForLengthAndSlash(bucket, object string) error {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 11 03:13:30 UTC 2024
    - 36.3K bytes
    - Viewed (0)
  8. docs/debugging/xl-meta/main.go

    			if m.objSize == 0 {
    				m.objSize = ei.V2Obj.Size
    			}
    			m.data = ei.V2Obj.EcM
    			m.parity = ei.V2Obj.EcN
    			if len(ei.V2Obj.PartNums) == 1 && !strings.ContainsRune(ei.V2Obj.MetaUsr.Etag, '-') {
    				m.wantMD5 = ei.V2Obj.MetaUsr.Etag
    			}
    			if m.shards == 0 {
    				m.shards = m.data + m.parity
    			}
    			idx = ei.V2Obj.EcIndex - 1
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 31 14:49:23 UTC 2024
    - 38.5K bytes
    - Viewed (0)
  9. src/fmt/fmt_test.go

    				chars = "0123456789ABCDEF"
    			default:
    				pattern = "PTR"
    				chars = "0123456789abcdefABCDEF"
    			}
    			p := s[:i] + pattern
    			for j := i; j < len(s); j++ {
    				if !strings.ContainsRune(chars, rune(s[j])) {
    					p += s[j:]
    					break
    				}
    			}
    			s = p
    		}
    		if s != tt.out {
    			if _, ok := tt.val.(string); ok {
    				// Don't requote the already-quoted strings.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:31:55 UTC 2024
    - 58.6K bytes
    - Viewed (0)
  10. src/go/printer/nodes.go

    	// U+FFFD."
    	if s == "" {
    		return lit
    	}
    	const illegalChars = `!"#$%&'()*,:;<=>?[\]^{|}` + "`\uFFFD"
    	for _, r := range s {
    		if !unicode.IsGraphic(r) || unicode.IsSpace(r) || strings.ContainsRune(illegalChars, r) {
    			return lit
    		}
    	}
    
    	// otherwise, return the double-quoted path
    	s = strconv.Quote(s)
    	if s == lit.Value {
    		return lit // nothing wrong with lit
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 17 18:53:17 UTC 2023
    - 52.6K bytes
    - Viewed (0)
Back to top