- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 35 for sep (0.13 sec)
-
src/bytes/bytes.go
} // Count counts the number of non-overlapping instances of sep in s. // If sep is an empty slice, Count returns 1 + the number of UTF-8-encoded code points in s. func Count(s, sep []byte) int { // special case if len(sep) == 0 { return utf8.RuneCount(s) + 1 } if len(sep) == 1 { return bytealg.Count(s, sep[0]) } n := 0 for { i := Index(s, sep) if i == -1 { return n } n++
Go - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Mon Feb 19 19:51:15 GMT 2024 - 33.8K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/helper/SuggestHelper.java
final String[] readings; if (StringUtil.isBlank(reading)) { readings = word.replace(" ", TEXT_SEP).replaceAll(TEXT_SEP + "+", TEXT_SEP).split(TEXT_SEP); } else { readings = reading.replace(" ", TEXT_SEP).replaceAll(TEXT_SEP + "+", TEXT_SEP).split(TEXT_SEP); } final List<String> labelList = new ArrayList<>(); if (tags != null) {
Java - Registered: Mon Apr 22 08:04:10 GMT 2024 - Last Modified: Thu Feb 22 01:37:57 GMT 2024 - 18K bytes - Viewed (0) -
src/main/webapp/js/admin/searchlist.js
$(function() { var SEP_CHAR = "-", langCode, browserLang = (window.navigator.languages && window.navigator.languages[0]) || window.navigator.language || window.navigator.userLanguage || window.navigator.browserLanguage; if (browserLang) { langCode = browserLang.split(SEP_CHAR)[0]; } else { langCode = "en"; } $.validate({ modules: "html5", lang: langCode });
JavaScript - Registered: Mon Apr 22 08:04:10 GMT 2024 - Last Modified: Wed Sep 12 06:47:49 GMT 2018 - 422 bytes - Viewed (0) -
schema/utils.go
var embeddedCacheKey = "embedded_cache_store" func ParseTagSetting(str string, sep string) map[string]string { settings := map[string]string{} names := strings.Split(str, sep) for i := 0; i < len(names); i++ { j := i if len(names[j]) > 0 { for { if names[j][len(names[j])-1] == '\\' { i++ names[j] = names[j][0:len(names[j])-1] + sep + names[i] names[i] = "" } else { break } }
Go - Registered: Sun Apr 21 09:35:09 GMT 2024 - Last Modified: Sat Aug 19 13:35:14 GMT 2023 - 5.5K bytes - Viewed (0) -
cmd/metacache-entries_test.go
testName string entry string dir string sep string want bool }{ { testName: "basic-file", entry: "src/file", dir: "src/", sep: slashSeparator, want: true, }, { testName: "basic-dir", entry: "src/dir/", dir: "src/", sep: slashSeparator, want: true, }, {
Go - Registered: Sun Apr 21 19:28:08 GMT 2024 - Last Modified: Sun Jan 02 17:15:06 GMT 2022 - 31.6K bytes - Viewed (0) -
src/bytes/bytes_test.go
func benchmarkIndexHard(b *testing.B, sep []byte) { for i := 0; i < b.N; i++ { Index(benchInputHard, sep) } } func benchmarkLastIndexHard(b *testing.B, sep []byte) { for i := 0; i < b.N; i++ { LastIndex(benchInputHard, sep) } } func benchmarkCountHard(b *testing.B, sep []byte) { for i := 0; i < b.N; i++ { Count(benchInputHard, sep) } }
Go - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Wed Jan 24 16:07:25 GMT 2024 - 56.2K bytes - Viewed (0) -
istioctl/pkg/writer/table/writer.go
output := c.getTableOutput(c.rows) if len(output) == 0 { return } sep := getMaxWidths(output) for _, row := range output { for i, col := range row { _, _ = fmt.Fprint(c.writer, col.String()) if i == len(row)-1 { _, _ = fmt.Fprint(c.writer, "\n") } else { padAmount := sep[i] - utf8.RuneCount([]byte(col.Value)) + 2 _, _ = fmt.Fprint(c.writer, strings.Repeat(" ", padAmount))
Go - Registered: Wed Apr 24 22:53:08 GMT 2024 - Last Modified: Sat Oct 08 04:41:42 GMT 2022 - 2.8K bytes - Viewed (0) -
maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/profile/Os.java
Java - Registered: Sun Apr 21 03:35:09 GMT 2024 - Last Modified: Fri Apr 12 10:50:18 GMT 2024 - 7.3K bytes - Viewed (0) -
src/bytes/example_test.go
func ExampleCutPrefix() { show := func(s, sep string) { after, found := bytes.CutPrefix([]byte(s), []byte(sep)) fmt.Printf("CutPrefix(%q, %q) = %q, %v\n", s, sep, after, found) } show("Gopher", "Go") show("Gopher", "ph") // Output: // CutPrefix("Gopher", "Go") = "pher", true // CutPrefix("Gopher", "ph") = "Gopher", false } func ExampleCutSuffix() { show := func(s, sep string) {
Go - Registered: Tue Apr 23 11:13:09 GMT 2024 - Last Modified: Mon Mar 04 15:54:40 GMT 2024 - 15K bytes - Viewed (1) -
src/test/java/org/codelibs/core/convert/DateConversionUtilTest.java
} /** * @throws Exception */ @Test public void testToDate_SpecificLocale() throws Exception { final Date date = toDate("SEP 7, 2010", Locale.US); assertThat(new SimpleDateFormat("yyyy/MM/dd").format(date), is("2010/09/07")); } /** * @throws Exception */ @Test
Java - Registered: Fri Apr 26 20:58:09 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 9.4K bytes - Viewed (0)