This project provides a collection of C++ functions and utilities for working with strings. It's designed to be both educational and practical.
String Manipulation:
len(string str)
: Calculate the length of a string.upper(string str)
: Convert a string to uppercase.lower(string str)
: Convert a string to lowercase.fupper(string str)
: Capitalize the first letter of each word in a string.erase(string str, int start, int endpoint)
: Erase a portion of a string.lenWord(string str)
: Count the number of words in a string.rtrim(string str)
: Trim whitespace from the right end of a string.ltrim(string str)
: Trim whitespace from the left end of a string.trim(string str)
: Trim whitespace from both ends of a string.substring(string str, int start, int endpoint)
: Extract a substring.numbcounter(string str)
: Count the occurrences of each character in a string.
Games & Utilities:
game()
: A simple word guessing game.money()
: A basic ATM simulator.key()
: Demonstrates case conversion using key combinations (like Shift+F3).
- Clone the repository:
git clone https://github.com/s7net/nozari.git