MCPcopy Create free account
hub / github.com/dlclark/regexp2 / parseRustRegexStringArray

Function parseRustRegexStringArray

regexp_corpus_rust_test.go:286–301  ·  view source on GitHub ↗
(t *testing.T, raw string)

Source from the content-addressed store, hash-verified

284}
285
286func parseRustRegexStringArray(t *testing.T, raw string) []string {
287 t.Helper()
288 var out []string
289 for i := 0; i < len(raw); {
290 for i < len(raw) && !isRustRegexQuote(raw[i]) {
291 i++
292 }
293 if i >= len(raw) {
294 break
295 }
296 s, next := parseRustRegexStringAt(t, raw, i)
297 out = append(out, s)
298 i = next
299 }
300 return out
301}
302
303func parseRustRegexString(t *testing.T, raw string) string {
304 t.Helper()

Callers 1

parseRustRegexRegexesFunction · 0.85

Calls 2

isRustRegexQuoteFunction · 0.85
parseRustRegexStringAtFunction · 0.85

Tested by

no test coverage detected