Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Add Str::start() and str_start helper function #20569
What's life if you can't PR string helper functions - amiright?
With some naming help from twitter and @adamwathan, I planned on PRing
I often need this sort of thing when dealing with urls and paths. Hopefully the need is felt.
Long live the string helper!
Should benchmark the regex implementation in this and
If the code was significantly simpler with the regex I wouldn't even say anything, but actually feels more complicated than this:
Maybe there's some other reason it needs to be fancy though? Entirely possible!
(FWIW I would have PR'd it the exact same way you did, to be clear