- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for sep (0.01 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++
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Wed Sep 03 14:04:47 UTC 2025 - 35.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, }, {
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 31.6K bytes - Viewed (0) -
src/test/java/org/codelibs/core/convert/TimestampConversionUtilTest.java
// } /** * @throws Exception */ // @Test // public void testToDate_SpecificLocale() throws Exception { // final Date date = toDate("SEP 7, 2010 11:49:10 AM", Locale.US); // assertThat(new SimpleDateFormat("yyyy/MM/dd HH:mm:ss").format(date), is("2010/09/07 11:49:10")); // } /** * @throws Exception */ @Test
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 11.4K bytes - Viewed (0) -
.idea/inspectionProfiles/Gradle.xml
<constraint name="__context__" within="" contains="" />
Registered: Wed Sep 10 11:36:15 UTC 2025 - Last Modified: Wed Jun 26 21:49:47 UTC 2024 - 15.4K bytes - Viewed (0) -
src/bytes/example_test.go
fmt.Println(bytes.Count([]byte("five"), []byte(""))) // before & after each rune // Output: // 3 // 5 } func ExampleCut() { show := func(s, sep string) { before, after, found := bytes.Cut([]byte(s), []byte(sep)) fmt.Printf("Cut(%q, %q) = %q, %q, %v\n", s, sep, before, after, found) } show("Gopher", "Go") show("Gopher", "ph") show("Gopher", "er") show("Gopher", "Badger") // Output:
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Mon May 12 16:07:54 UTC 2025 - 16.5K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/Cookie.kt
} @Suppress("NAME_SHADOWING") companion object { private val YEAR_PATTERN = Pattern.compile("(\\d{2,4})[^\\d]*") private val MONTH_PATTERN = Pattern.compile("(?i)(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec).*") private val DAY_OF_MONTH_PATTERN = Pattern.compile("(\\d{1,2})[^\\d]*") private val TIME_PATTERN = Pattern.compile("(\\d{1,2}):(\\d{1,2}):(\\d{1,2})[^\\d]*") private fun domainMatch(
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon May 05 16:01:00 UTC 2025 - 23.1K bytes - Viewed (0) -
cmd/metacache-set.go
if err != nil { return entries, err } if o.Marker != "" { err = r.forwardTo(o.Marker) if err != nil { return entries, err } } o.debugln("forwarded to ", o.Prefix, "marker:", o.Marker, "sep:", o.Separator) // Filter if !o.Recursive { entries.o = make(metaCacheEntries, 0, o.Limit) pastPrefix := false err := r.readFn(func(entry metaCacheEntry) bool {
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 30.7K bytes - Viewed (0)