Files
yaegi/stdlib/go1_22_unicode_utf8.go
ee5ed52051 feat: support go1.22
* feat: support go1.22

* Temporary fix for consistency tests due to language change in for loops

* review: clean old files

---------

Co-authored-by: Fernandez Ludovic <[email protected]>
2024-03-05 17:56:04 +01:00

39 lines
1.6 KiB
Go

// Code generated by 'yaegi extract unicode/utf8'. DO NOT EDIT.
//go:build go1.22
// +build go1.22
package stdlib
import (
"go/constant"
"go/token"
"reflect"
"unicode/utf8"
)
func init() {
Symbols["unicode/utf8/utf8"] = map[string]reflect.Value{
// function, constant and variable definitions
"AppendRune": reflect.ValueOf(utf8.AppendRune),
"DecodeLastRune": reflect.ValueOf(utf8.DecodeLastRune),
"DecodeLastRuneInString": reflect.ValueOf(utf8.DecodeLastRuneInString),
"DecodeRune": reflect.ValueOf(utf8.DecodeRune),
"DecodeRuneInString": reflect.ValueOf(utf8.DecodeRuneInString),
"EncodeRune": reflect.ValueOf(utf8.EncodeRune),
"FullRune": reflect.ValueOf(utf8.FullRune),
"FullRuneInString": reflect.ValueOf(utf8.FullRuneInString),
"MaxRune": reflect.ValueOf(constant.MakeFromLiteral("1114111", token.INT, 0)),
"RuneCount": reflect.ValueOf(utf8.RuneCount),
"RuneCountInString": reflect.ValueOf(utf8.RuneCountInString),
"RuneError": reflect.ValueOf(constant.MakeFromLiteral("65533", token.INT, 0)),
"RuneLen": reflect.ValueOf(utf8.RuneLen),
"RuneSelf": reflect.ValueOf(constant.MakeFromLiteral("128", token.INT, 0)),
"RuneStart": reflect.ValueOf(utf8.RuneStart),
"UTFMax": reflect.ValueOf(constant.MakeFromLiteral("4", token.INT, 0)),
"Valid": reflect.ValueOf(utf8.Valid),
"ValidRune": reflect.ValueOf(utf8.ValidRune),
"ValidString": reflect.ValueOf(utf8.ValidString),
}
}