Skip to content

A comprehensive C++ string utility class clsString providing a wide range of functionalities for string manipulation. Includes methods for case conversion, trimming, splitting and joining strings, counting letters or words, finding and replacing words, removing punctuations, reversing word order, and more. Works with both static and instance usage.

License

Notifications You must be signed in to change notification settings

ridasbaa/cpp-string-utility-class

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clsString Library

Description

clsString is a C++ string utility library that simplifies string manipulation. It provides functions to change case, count letters, words, vowels, split/join strings, trim spaces, replace words, remove punctuations, and reverse words.

Features

  • Get/set string value
  • Count letters, capital letters, small letters, vowels, specific letters
  • Count words
  • Upper/lower case conversion, invert case
  • Upper/lower first letter of each word
  • Split and join strings
  • Trim spaces (left, right, both)
  • Reverse words
  • Replace a word
  • Remove punctuations

Usage

Include clsString.h and create an object:

clsString str("Hello World");
str.UpperAllString();
cout << str.Value;  // outputs: HELLO WORLD

About

A comprehensive C++ string utility class clsString providing a wide range of functionalities for string manipulation. Includes methods for case conversion, trimming, splitting and joining strings, counting letters or words, finding and replacing words, removing punctuations, reversing word order, and more. Works with both static and instance usage.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages