Skip gnat.dg/prot7.adb on hppa.
[official-gcc.git] / libgo / go / strconv / bytealg.go
bloba2bb12c5f219fed757cf22048b22a5ac0a329904
1 // Copyright 2009 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 //go:build !compiler_bootstrap
6 // +build !compiler_bootstrap
8 package strconv
10 import "internal/bytealg"
12 // index returns the index of the first instance of c in s, or -1 if missing.
13 func index(s string, c byte) int {
14 return bytealg.IndexByteString(s, c)