- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for parseWords (0.37 sec)
-
src/test/java/org/codelibs/opensearch/extension/kuromoji/index/analysis/JapaneseStopTokenFilterFactory.java
this.ignoreCase = settings.getAsBoolean("ignore_case", false); this.removeTrailing = settings.getAsBoolean("remove_trailing", true); this.stopWords = Analysis.parseWords(env, settings, "stopwords", JapaneseAnalyzer.getDefaultStopSet(), NAMED_STOP_WORDS, ignoreCase); } @Override public TokenStream create(TokenStream tokenStream) { if (removeTrailing) {
Registered: Wed Jun 12 15:38:08 UTC 2024 - Last Modified: Thu Feb 22 01:36:54 UTC 2024 - 2.4K bytes - Viewed (0) -
src/net/netip/slow_test.go
} ret[i] = uint8(val) } return AddrFrom4([4]byte{ret[0], ret[1], ret[2], ret[3]}), nil } // parseWord converts a 16-bit hex string into its corresponding // two-byte value. func parseWord(s string) (byte, byte, error) { if len(s) > 4 { return 0, 0, fmt.Errorf("parseWord(%q): invalid word", s) } ret, err := strconv.ParseUint(s, 16, 16) if err != nil { return 0, 0, err }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 11 19:54:31 UTC 2024 - 5.8K bytes - Viewed (0) -
pkg/kube/inject/validate.go
err = multierror.Append(err, fmt.Errorf("invalid value '%s' for annotation '%s': %v", value, name, e)) } } } return } func validatePortList(parameterName, ports string) error { if _, err := parsePorts(ports); err != nil { return fmt.Errorf("%s invalid: %v", parameterName, err) } return nil } // validateInterceptionMode validates the interceptionMode annotation
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 17 20:06:41 UTC 2024 - 5.9K bytes - Viewed (0) -
cni/pkg/plugin/sidecar_redirect.go
port, err := strconv.ParseUint(strings.TrimSpace(portStr), 10, 16) if err != nil { return 0, fmt.Errorf("failed parsing port %q: %v", portStr, err) } return uint16(port), nil } func parsePorts(portsString string) ([]int, error) { portsString = strings.TrimSpace(portsString) ports := make([]int, 0) if len(portsString) > 0 { for _, portStr := range splitPorts(portsString) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Jan 26 20:34:28 UTC 2024 - 10.6K bytes - Viewed (0) -
src/cmd/go/internal/modindex/build.go
var errNoModules = errors.New("not using modules") func findImportComment(data []byte) (s string, line int) { // expect keyword package word, data := parseWord(data) if string(word) != "package" { return "", 0 } // expect package name _, data = parseWord(data) // now ready for import comment, a // or /* */ comment // beginning and ending on the current line.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 25 17:39:23 UTC 2023 - 26.8K bytes - Viewed (0) -
src/go/build/build.go
} } return false } func findImportComment(data []byte) (s string, line int) { // expect keyword package word, data := parseWord(data) if string(word) != "package" { return "", 0 } // expect package name _, data = parseWord(data) // now ready for import comment, a // or /* */ comment // beginning and ending on the current line.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 16:25:21 UTC 2024 - 62.3K bytes - Viewed (0)