libgo: update to Go 1.11
[official-gcc.git] / libgo / go / internal / bytealg / index_generic.go
blobc595c231cf019c4c88446c2f0fa311648f5f19f5
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.
5 // +build ignore_for_gccgo
6 // +build !amd64,!arm64,!s390x
8 package bytealg
10 const MaxBruteForce = 0
12 // Index returns the index of the first instance of b in a, or -1 if b is not present in a.
13 // Requires 2 <= len(b) <= MaxLen.
14 func Index(a, b []byte) int {
15 panic("unimplemented")
18 // IndexString returns the index of the first instance of b in a, or -1 if b is not present in a.
19 // Requires 2 <= len(b) <= MaxLen.
20 func IndexString(a, b string) int {
21 panic("unimplemented")
24 // Cutover reports the number of failures of IndexByte we should tolerate
25 // before switching over to Index.
26 // n is the number of bytes processed so far.
27 // See the bytes.Index implementation for details.
28 func Cutover(n int) int {
29 panic("unimplemented")