Simple string trimming function library for C++ (removes leading and trailing whitespace from strings). Single header file. Does what it says in the box.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example
LICENSE
README.md
cpptrim.h

README.md

✂ cpptrim

Simple trim function library for C++ strings (removes leading and trailing whitespace from strings). Include the .h or copy the function to your source.

How to install

Copy cpptrim.h to your project folder and add include "cpptrim.h". You can also copy the trim function from cpptrim.h to your own project without including anything.

How to use

Just call trim(yourString); and you are done, the string is treamed. For more information check example.cpp included in the example folder.