I have a problem that sscanf solves (extracting things from a string). I don\'t like sscanf though since it\'s not type-safe and is old and horrible. I want to be clever and
If you really want not to use streams (It's good because of readability), you can use StringPrintf.
You can find its implementation in Folly:
https://github.com/facebook/folly/blob/master/folly/String.h#L165