What is the best way to split a string into two using a single char delimiter?
The string must be split into the first instance of the delimiter. The method should take into account performance. It should not assume that a separator exists in a string, that a string has any characters, etc .; should be a general purpose code, you can just connect to where you need to.
(I always need to rewrite such things for a few minutes when I need it, so I thought I asked a question)
Rory source share