GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - KjellKod/StringFix: C++ helper for string manipulation (trim, to_lower, split, explode etc...)

BranchesTags
Open more actions menu

Latest commit

 

History

12 Commits
12 Commits

Folders and files

NameName
Last commit message
Last commit date
src
src
 
 
test
test
 
 
thirdparty
thirdparty
 
 
CMakeLists.txt
CMakeLists.txt
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
Test.cmake
Test.cmake
 
 
Version.cmake
Version.cmake
 
 

Repository files navigation

StringFix

C++ helper for string manipulation (trim, to_lower, split, explode etc...). For in-depth explanation please see function description at: https://github.com/KjellKod/StringFix/blob/master/src/StringFix.cpp

Replace parts of string
size_t replace(std::string& input, const std::string& from, const std::string& to);
Trim the string based on whitespace or other character
std::string trim(const std::string& str, const std::string& whitespace = " \t");
To lower/upper
std::string to_lower(const std::string& str);
std::string to_upper(const std::string& str);
Bool to string
std::string to_string(const bool& b);
Split and Explode the string based on delimiters and match
std::vector<std::string> split(const std::string& split_on_any_delimiters, 
                               const std::string& stringToSplit)

std::vector<std::string> explode(const std::string& complete_match, 
                                 const std::string& stringToExplode);
Get elements that are matching
std::vector<std::string> extract(const std::string& complete_match_start, 
                                 const std::string& complete_match_end, const std::string& content);
Verify if vector contains an element
bool ContainsElement(const std::vector<std::string>& v, const std::string& s);
Extension handling
std::string remove_extension(const std::string& s);
std::string get_extension(const std::string& s);

About

C++ helper for string manipulation (trim, to_lower, split, explode etc...)

Resources

Readme
Unlicense
Activity

Stars

15 stars

Watchers

3 watching

Forks

4 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.