1// +build appengine appenginevm
2
3package jsonparser
4
5import (
6 "strconv"
7)
8
9// See fastbytes_unsafe.go for explanation on why *[]byte is used (signatures must be consistent with those in that file)
10
11func equalStr(b *[]byte, s string) bool {
12 return string(*b) == s
13}
14
15func parseFloat(b *[]byte) (float64, error) {
16 return strconv.ParseFloat(string(*b), 64)
17}
18
19func bytesToString(b *[]byte) string {
20 return string(*b)
21}
22
23func StringToBytes(s string) []byte {
24 return []byte(s)
25}