- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 43 for containsLine (0.17 sec)
-
internal/hash/checksum.go
func NewChecksumWithType(alg ChecksumType, value string) *Checksum { if !alg.IsSet() { return nil } wantParts := 0 if strings.ContainsRune(value, '-') { valSplit := strings.Split(value, "-") if len(valSplit) != 2 { return nil } value = valSplit[0] nParts, err := strconv.Atoi(valSplit[1]) if err != nil { return nil
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed May 08 16:18:34 UTC 2024 - 12.6K bytes - Viewed (0) -
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) -
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) -
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) -
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) -
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) -
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) -
src/cmd/compile/internal/syntax/printer.go
// case comment: // // A multi-line comment acts like a newline; and a "" // // comment implies by definition at least one newline. // if text := p.pending[i].text; strings.HasPrefix(text, "/*") && strings.ContainsRune(text, '\n') { // sawNewline = true // } // case eolComment: // // TODO(gri) act depending on sawNewline default: panic("unreachable") } } // print pending
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 24 07:17:27 UTC 2023 - 21.5K bytes - Viewed (0) -
src/cmd/go/internal/script/engine.go
} cmd.name = arg return nil } cmd.rawArgs = append(cmd.rawArgs, rawArg) return nil } for i := 0; ; i++ { if !quoted && (i >= len(line) || strings.ContainsRune(argSepChars, rune(line[i]))) { // Found arg-separating space. if start >= 0 { rawArg = append(rawArg, argFragment{s: line[start:i], quoted: false}) start = -1 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 27 01:16:19 UTC 2023 - 22.2K bytes - Viewed (0) -
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)