You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Vm.soloffers string manipulation functions that come in very handy when dealing with strings. In the latest versions of forge-std, the introduction of new functions such as replace has lowered our dependency on other external libraries.
However, forge-std still lacks one useful function for which foundry users may have to rely on external dependencies - a function that can return the index of the first occurrence of a key in an input string.
function index(stringmemoryinput, stringmemorykey) externalpurereturns (uint256);
It would, therefore, be very useful if we could add support to it.
The text was updated successfully, but these errors were encountered:
mds1
transferred this issue from foundry-rs/forge-std
Mar 25, 2024
Vm.sol
offers string manipulation functions that come in very handy when dealing with strings. In the latest versions offorge-std
, the introduction of new functions such asreplace
has lowered our dependency on other external libraries.However,
forge-std
still lacks one useful function for which foundry users may have to rely on external dependencies - a function that can return the index of the first occurrence of a key in an input string.It would, therefore, be very useful if we could add support to it.
The text was updated successfully, but these errors were encountered: