github.com/guyezi/gofrontend@v0.0.0-20200228202240-7a62a49e62c0/libgo/go/internal/bytealg/index_generic.go (about) 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 // +build ignore_for_gccgo 6 // +build !amd64,!arm64,!s390x 7 8 package bytealg 9 10 const MaxBruteForce = 0 11 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") 16 } 17 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") 22 } 23 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") 30 }