Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

Pythonesque string splitting for C++

This library aims to provide C++ functions to split strings in roughly the same way as Python's string splitting works.

For documentation read the quick quide.

Features

  • splits by character

  • split by group of chars (e.g. whitespace)

  • smart line splitting

  • whitespace splitter helper function

  • helper code to process files that uses mmap transparently

  • Split by substring

  • the API takes only std::string_views so easily works with pretty much any data store without the need to copy data or write converters

  • return types are either std::string_views for performance or std::strings if a copy of the input data is needed

Missing features

  • This should really be implemented via coroutines

  • Not hardened against file system shenanigans

  • API is neither complete nor stable, do not depend on it being stable

About

Pythonesque string splitting for C++

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published