- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for longestSequence (0.12 sec)
-
src/cmd/vendor/rsc.io/markdown/inline.go
ticks := strings.Repeat("`", longestSequence(x.Text, '`')+1) buf.WriteString(ticks) if x.Text[0] == '`' { buf.WriteByte(' ') } buf.WriteString(x.Text) if x.Text[len(x.Text)-1] == '`' { buf.WriteByte(' ') } buf.WriteString(ticks) } // longestSequence returns the length of the longest sequence of consecutive bytes b in s. func longestSequence(s string, b byte) int { max := 0 cur := 0
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 21.9K bytes - Viewed (0)