cctype


1. Check if a Character is Alphabetic

#include <cctype>

bool isAlpha(char c) {
  return std::isalpha(c);
}

2. Check if a Character is Numeric

#include <cctype>

bool isNumeric(char c) {
  return std::isdigit(c);
}

3. Check if a Character is White Space

#include <cctype>

bool isWhitespace(char c) {
  return std::isspace(c);
}

4. Check if a Character is a Lowercase Letter

5. Check if a Character is an Uppercase Letter

6. Check if a Character is a Letter or Digit

7. Check if a Character is a Control Character

8. Check if a Character is a Printable Character

9. Check if a Character is a Punctuation Mark

10. Check if a Character is a Space Character

11. Convert a Lowercase Character to Uppercase

12. Convert an Uppercase Character to Lowercase

13. Toggle the Case of a Character

14. Check if a String is Alphabetic

15. Check if a String is Numeric

16. Check if a String is Whitespace

17. Check if a String is a Lowercase String

18. Check if a String is an Uppercase String

19. Check if a String is a Letter or Digit String

20. Check if a String is a Control Character String

21. Check if a String is a Printable Character String

22. Check if a String is a Punctuation Mark String

23. Check if a String is a Space Character String

24. Convert a String to Uppercase

25. Convert a String to Lowercase

26. Toggle the Case of a String

27. Remove All Non-Alphabetic Characters from a String

28. Remove All Non-Numeric Characters from a String

29. Remove All White Space Characters from a String

30. Remove All Lowercase Characters from a String

31. Remove All Uppercase Characters from a String

32. Remove All Letter or Digit Characters from a String

33. Remove All Control Characters from a String

34. Remove All Printable Characters from a String

35. Remove All Punctuation Marks from a String

36. Remove All Space Characters from a String

37. Replace All Non-Alphabetic Characters with a Space

38. Replace All Non-Numeric Characters with a Zero

39. Replace All White Space Characters with a Newline

40. Replace All Lowercase Characters with a Uppercase Character

41. Replace All Uppercase Characters with a Lowercase Character

42. Replace All Letter or Digit Characters with a Star

43. Replace All Control Characters with a Null Character

44. Replace All Printable Characters with a Backspace Character