github.com/gnolang/gno@v0.0.0-20240520182011-228e9d0192ce/gnovm/stdlibs/regexp/syntax/op_string.gno (about) 1 // Code generated by "stringer -type Op -trimprefix Op"; DO NOT EDIT. 2 3 package syntax 4 5 import "strconv" 6 7 const ( 8 _Op_name_0 = "NoMatchEmptyMatchLiteralCharClassAnyCharNotNLAnyCharBeginLineEndLineBeginTextEndTextWordBoundaryNoWordBoundaryCaptureStarPlusQuestRepeatConcatAlternate" 9 _Op_name_1 = "opPseudo" 10 ) 11 12 var _Op_index_0 = [...]uint8{0, 7, 17, 24, 33, 45, 52, 61, 68, 77, 84, 96, 110, 117, 121, 125, 130, 136, 142, 151} 13 14 func (i Op) String() string { 15 switch { 16 case 1 <= i && i <= 19: 17 i -= 1 18 return _Op_name_0[_Op_index_0[i]:_Op_index_0[i+1]] 19 case i == 128: 20 return _Op_name_1 21 default: 22 return "Op(" + strconv.FormatInt(int64(i), 10) + ")" 23 } 24 }