NewStrVal constructs a StrVal instance. This is used during parsing when interpreting a token of type SCONST, i.e. *not* using the b'...' or x'...' syntax.
(s string)
| 472 | // parsing when interpreting a token of type SCONST, i.e. *not* using |
| 473 | // the b'...' or x'...' syntax. |
| 474 | func NewStrVal(s string) *StrVal { |
| 475 | return &StrVal{s: s} |
| 476 | } |
| 477 | |
| 478 | // NewBytesStrVal constructs a StrVal instance suitable as byte array. |
| 479 | // This is used during parsing when interpreting a token of type BCONST, |
no outgoing calls
no test coverage detected
searching dependent graphs…