(str string)
| 247 | } |
| 248 | |
| 249 | func UnquoteString(str string) string { |
| 250 | // strconv.Unquote is insufficient as that only handles a single character inside single quotes, as those are character literals in go |
| 251 | inner := StripQuotes(str) |
| 252 | // In strada we do str.replace(/\\./g, s => s.substring(1)) - which is to say, replace all backslash-something with just something |
| 253 | // That's replicated here faithfully, but it seems wrong! This should probably be an actual unquote operation? |
| 254 | return matchSlashSomething.ReplaceAllStringFunc(inner, matchSlashReplacer) |
| 255 | } |
| 256 | |
| 257 | func LowerFirstChar(str string) string { |
| 258 | char, size := utf8.DecodeRuneInString(str) |
no test coverage detected