Skip to content

MericLuc/StrUtils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

StrUtils Language License

A small c++ library to perform operations on std::string

Architecture

  • The "str-utils-lib" folder contains the sources of the library
  • The "str-utils-test" folder contains the unit tests of the library functions

Supported operations

  • split : Retrieve every words in a std::string as separated items of a std::vector. The separator can be defined by the user.
  • isPalindrome : Checks if the std::string is a palindrome
  • beginsWith | endsWith
  • replaceFirst | replaceLast | replaceAll : Replace the occurence(s) of the given std::string
  • vector_join : returns the content of a std::vector as a string with user-defined separator
  • ltrim | rtrim | trim : trims the input std::string
  • toString : returns the input as a string (uses input type T::operator<<)
  • toUpper | toLower
  • repeat : returns a std::string built by repeating the input std::string

About

A small c++ library to perform operations on std::string

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published