Debian Codegraph @

internal/bytealg/index_generic.go

raw
1 // Copyright 2023 Charlie Vieth. All rights reserved.
2 // Use of this source code is governed by the MIT license.
3
4 //go:build !amd64 && !arm64 && !s390x && !ppc64le && !ppc64
5
6 package bytealg
7
8 import _ "unsafe"
9
10 // NativeIndex is true if we have a fast native (assembly) implementation
11 // of Index and IndexString. Otherwise, bytes.Index and strings.Index are used.
12 const NativeIndex = false
13
14 //go:linkname MaxBruteForce internal/bytealg.MaxBruteForce
15 var MaxBruteForce int
16
17 // Cutover reports the number of failures of IndexByte we should tolerate
18 // before switching over to Index.
19 // n is the number of bytes processed so far.
20 // See the bytes.Index implementation for details.
21 func Cutover(n int) int {
22 panic("unimplemented")
23 }
24
25 func Index(s, sep []byte) int {
26 panic("unimplemented")
27 }
28
29 func IndexString(s, substr string) int {
30 panic("unimplemented")
31 }