(prefix byte, in []byte, suffix byte)
| 515 | } |
| 516 | |
| 517 | func hasPrefixAndSuffix(prefix byte, in []byte, suffix byte) bool { |
| 518 | if len(in) >= 2 && in[0] == prefix && in[len(in)-1] == suffix { |
| 519 | return true |
| 520 | } |
| 521 | return false |
| 522 | } |
| 523 | |
| 524 | // trimQuote is like unquoteString but simply strips surrounding quotes. |
| 525 | // This is incorrect, but is behavior done by the legacy implementation. |
no outgoing calls
no test coverage detected