Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 29 for containsLine (0.29 sec)

  1. src/regexp/syntax/regexp.go

    	}
    	writeRegexp(&b, re, must, flags)
    	return b.String()
    }
    
    const meta = `\.+*?()|[]{}^$`
    
    func escape(b *strings.Builder, r rune, force bool) {
    	if unicode.IsPrint(r) {
    		if strings.ContainsRune(meta, r) || force {
    			b.WriteRune('\\')
    		}
    		b.WriteRune(r)
    		return
    	}
    
    	switch r {
    	case '\a':
    		b.WriteString(`\a`)
    	case '\f':
    		b.WriteString(`\f`)
    	case '\n':
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 16:41:51 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  2. chainable_api.go

    	return
    }
    
    // Omit specify fields that you want to ignore when creating, updating and querying
    func (db *DB) Omit(columns ...string) (tx *DB) {
    	tx = db.getInstance()
    
    	if len(columns) == 1 && strings.ContainsRune(columns[0], ',') {
    		tx.Statement.Omits = strings.FieldsFunc(columns[0], utils.IsValidDBNameChar)
    	} else {
    		tx.Statement.Omits = columns
    	}
    	return
    }
    
    // Where add conditions
    //
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 09:47:34 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  3. src/go/build/read.go

    func isValidImport(s string) bool {
    	const illegalChars = `!"#$%&'()*,:;<=>?[\]^{|}` + "`\uFFFD"
    	for _, r := range s {
    		if !unicode.IsGraphic(r) || unicode.IsSpace(r) || strings.ContainsRune(illegalChars, r) {
    			return false
    		}
    	}
    	return s != ""
    }
    
    // parseGoEmbed parses the text following "//go:embed" to extract the glob patterns.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  4. src/cmd/go/internal/work/shell.go

    		}
    	}
    
    	if cfg.BuildN || cfg.BuildX {
    		var envcmdline string
    		for _, e := range env {
    			if j := strings.IndexByte(e, '='); j != -1 {
    				if strings.ContainsRune(e[j+1:], '\'') {
    					envcmdline += fmt.Sprintf("%s=%q", e[:j], e[j+1:])
    				} else {
    					envcmdline += fmt.Sprintf("%s='%s'", e[:j], e[j+1:])
    				}
    				envcmdline += " "
    			}
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  5. src/strings/strings_test.go

    	{"a☺b☻c☹d", 'x', false},
    	{"a☺b☻c☹d", '☻', true},
    	{"aRegExp*", '*', true},
    }
    
    func TestContainsRune(t *testing.T) {
    	for _, ct := range ContainsRuneTests {
    		if ContainsRune(ct.str, ct.r) != ct.expected {
    			t.Errorf("ContainsRune(%q, %q) = %v, want %v",
    				ct.str, 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
    - 53K bytes
    - Viewed (0)
  6. src/runtime/runtime-gdb_test.go

    	// containing spaces to be double quoted.
    	var quote bool
    	for i, arg := range args {
    		if arg == "-iex" || arg == "-ex" {
    			quote = true
    		} else if quote {
    			if strings.ContainsRune(arg, ' ') {
    				args[i] = `"` + arg + `"`
    			}
    			quote = false
    		}
    	}
    }
    
    func TestGdbPython(t *testing.T) {
    	testGdbPython(t, false)
    }
    
    func TestGdbPythonCgo(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 23.2K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/mod/module/module.go

    		// We allow spaces (U+0020) in file names.
    		const allowed = "!#$%&()+,-.=@[]^_{}~ "
    		if '0' <= r && r <= '9' || 'A' <= r && r <= 'Z' || 'a' <= r && r <= 'z' {
    			return true
    		}
    		return strings.ContainsRune(allowed, r)
    	}
    	// It may be OK to add more ASCII punctuation here, but only carefully.
    	// For example Windows disallows < > \, and macOS disallows :, so we must not allow those.
    	return unicode.IsLetter(r)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 20:17:07 UTC 2024
    - 26.9K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top