This is a fork of stevensStringLib in the context of a code review. Read the whole story.
Welcome to stevensStringLib! This is a simple C++ library full of convenient functions for working with strings. It was created to make C++ more accessible and read more like plain English.
std::string myString = "Charmander,Squirtle,Bulbasaur";
std::vector<std::string> myVector = separate( myString, "," );
for(int i=0; i < myVector.size(); i++)
{
std::cout << myVector[i] << std::endl;
}
Output:
Charmander
Squirtle
Bulbasaur
To get started, add the following to the top of your .cpp file:
include "<insert path to the repo folder here>/stevensStringLib.h"
Give the library namespace a short, catchy name:
namespace strlib = stevensStringLib;
And then you're good to go!
std::vector<std::string> words = strlib::separate("Hello world!, " ");
More changes and updates to come soon! Just establishing the github page as of now. Feel free to make any changes and make pull requests!
To be created with an automatic documentation tool.