| 1 | // Code generated by 'yaegi extract bytes'. DO NOT EDIT. |
| 2 | |
| 3 | //go:build go1.22 |
| 4 | // +build go1.22 |
| 5 | |
| 6 | package stdlib |
| 7 | |
| 8 | import ( |
| 9 | "bytes" |
| 10 | "go/constant" |
| 11 | "go/token" |
| 12 | "reflect" |
| 13 | ) |
| 14 | |
| 15 | func init() { |
| 16 | Symbols["bytes/bytes"] = map[string]reflect.Value{ |
| 17 | // function, constant and variable definitions |
| 18 | "Clone": reflect.ValueOf(bytes.Clone), |
| 19 | "Compare": reflect.ValueOf(bytes.Compare), |
| 20 | "Contains": reflect.ValueOf(bytes.Contains), |
| 21 | "ContainsAny": reflect.ValueOf(bytes.ContainsAny), |
| 22 | "ContainsFunc": reflect.ValueOf(bytes.ContainsFunc), |
| 23 | "ContainsRune": reflect.ValueOf(bytes.ContainsRune), |
| 24 | "Count": reflect.ValueOf(bytes.Count), |
| 25 | "Cut": reflect.ValueOf(bytes.Cut), |
| 26 | "CutPrefix": reflect.ValueOf(bytes.CutPrefix), |
| 27 | "CutSuffix": reflect.ValueOf(bytes.CutSuffix), |
| 28 | "Equal": reflect.ValueOf(bytes.Equal), |
| 29 | "EqualFold": reflect.ValueOf(bytes.EqualFold), |
| 30 | "ErrTooLarge": reflect.ValueOf(&bytes.ErrTooLarge).Elem(), |
| 31 | "Fields": reflect.ValueOf(bytes.Fields), |
| 32 | "FieldsFunc": reflect.ValueOf(bytes.FieldsFunc), |
| 33 | "HasPrefix": reflect.ValueOf(bytes.HasPrefix), |
| 34 | "HasSuffix": reflect.ValueOf(bytes.HasSuffix), |
| 35 | "Index": reflect.ValueOf(bytes.Index), |
| 36 | "IndexAny": reflect.ValueOf(bytes.IndexAny), |
| 37 | "IndexByte": reflect.ValueOf(bytes.IndexByte), |
| 38 | "IndexFunc": reflect.ValueOf(bytes.IndexFunc), |
| 39 | "IndexRune": reflect.ValueOf(bytes.IndexRune), |
| 40 | "Join": reflect.ValueOf(bytes.Join), |
| 41 | "LastIndex": reflect.ValueOf(bytes.LastIndex), |
| 42 | "LastIndexAny": reflect.ValueOf(bytes.LastIndexAny), |
| 43 | "LastIndexByte": reflect.ValueOf(bytes.LastIndexByte), |
| 44 | "LastIndexFunc": reflect.ValueOf(bytes.LastIndexFunc), |
| 45 | "Map": reflect.ValueOf(bytes.Map), |
| 46 | "MinRead": reflect.ValueOf(constant.MakeFromLiteral("512", token.INT, 0)), |
| 47 | "NewBuffer": reflect.ValueOf(bytes.NewBuffer), |
| 48 | "NewBufferString": reflect.ValueOf(bytes.NewBufferString), |
| 49 | "NewReader": reflect.ValueOf(bytes.NewReader), |
| 50 | "Repeat": reflect.ValueOf(bytes.Repeat), |
| 51 | "Replace": reflect.ValueOf(bytes.Replace), |
| 52 | "ReplaceAll": reflect.ValueOf(bytes.ReplaceAll), |
| 53 | "Runes": reflect.ValueOf(bytes.Runes), |
| 54 | "Split": reflect.ValueOf(bytes.Split), |
| 55 | "SplitAfter": reflect.ValueOf(bytes.SplitAfter), |
| 56 | "SplitAfterN": reflect.ValueOf(bytes.SplitAfterN), |
| 57 | "SplitN": reflect.ValueOf(bytes.SplitN), |
| 58 | "Title": reflect.ValueOf(bytes.Title), |
| 59 | "ToLower": reflect.ValueOf(bytes.ToLower), |
| 60 | "ToLowerSpecial": reflect.ValueOf(bytes.ToLowerSpecial), |
| 61 | "ToTitle": reflect.ValueOf(bytes.ToTitle), |
| 62 | "ToTitleSpecial": reflect.ValueOf(bytes.ToTitleSpecial), |
| 63 | "ToUpper": reflect.ValueOf(bytes.ToUpper), |
| 64 | "ToUpperSpecial": reflect.ValueOf(bytes.ToUpperSpecial), |
| 65 | "ToValidUTF8": reflect.ValueOf(bytes.ToValidUTF8), |
| 66 | "Trim": reflect.ValueOf(bytes.Trim), |
| 67 | "TrimFunc": reflect.ValueOf(bytes.TrimFunc), |
| 68 | "TrimLeft": reflect.ValueOf(bytes.TrimLeft), |
| 69 | "TrimLeftFunc": reflect.ValueOf(bytes.TrimLeftFunc), |
| 70 | "TrimPrefix": reflect.ValueOf(bytes.TrimPrefix), |
| 71 | "TrimRight": reflect.ValueOf(bytes.TrimRight), |
| 72 | "TrimRightFunc": reflect.ValueOf(bytes.TrimRightFunc), |
| 73 | "TrimSpace": reflect.ValueOf(bytes.TrimSpace), |
| 74 | "TrimSuffix": reflect.ValueOf(bytes.TrimSuffix), |
| 75 | |
| 76 | // type definitions |
| 77 | "Buffer": reflect.ValueOf((*bytes.Buffer)(nil)), |
| 78 | "Reader": reflect.ValueOf((*bytes.Reader)(nil)), |
| 79 | } |
| 80 | } |