ReplaceFirst takes two param search and replace. It returns string by searching search sub string and replacing it with replace substring on first occurrence it can be chained on function which return StringManipulation interface.
(search, replace string)
| 285 | // sub string and replacing it with replace substring on first occurrence it can be chained |
| 286 | // on function which return StringManipulation interface. |
| 287 | func (i *input) ReplaceFirst(search, replace string) string { |
| 288 | input := getInput(*i) |
| 289 | return replaceStr(input, search, replace, First) |
| 290 | } |
| 291 | |
| 292 | // ReplaceLast takes two param search and replace |
| 293 | // it return string by searching search sub string and replacing it |
nothing calls this directly
no test coverage detected