8000 GitHub - j-jorge/stevensStringLib: Code review for stevensStringLib.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

j-jorge/stevensStringLib

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a fork of stevensStringLib in the context of a code review. Read the whole story.

stevensStringLib

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.

Demo

Separate a string:

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

Easy Installation!

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!

Documentation / User Manual

To be created with an automatic documentation tool.

About

Code review for stevensStringLib.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 100.0%
0