• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright 2018 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5//go:build !amd64 && !arm64 && !s390x && !ppc64le && !ppc64
6
7package bytealg
8
9const MaxBruteForce = 0
10
11// Index returns the index of the first instance of b in a, or -1 if b is not present in a.
12// Requires 2 <= len(b) <= MaxLen.
13func Index(a, b []byte) int {
14	panic("unimplemented")
15}
16
17// IndexString returns the index of the first instance of b in a, or -1 if b is not present in a.
18// Requires 2 <= len(b) <= MaxLen.
19func IndexString(a, b string) int {
20	panic("unimplemented")
21}
22
23// Cutover reports the number of failures of IndexByte we should tolerate
24// before switching over to Index.
25// n is the number of bytes processed so far.
26// See the bytes.Index implementation for details.
27func Cutover(n int) int {
28	panic("unimplemented")
29}
30