Login Languish
password_utils.h
Go to the documentation of this file.
1 
8 #pragma once
9 
10 #include <string>
11 #include <vector>
12 #include <algorithm>
13 
14 namespace password_utils {
15  bool isPalindrome(std::string input);
16  bool isPrime(int n);
17  bool hasPrime(std::string input);
18  bool hasColour(std::string input);
19 }
Definition: password_utils.cpp:12
bool isPrime(int n)
checks if a number is prime
Definition: password_utils.cpp:40
bool isPalindrome(std::string input)
checks if a string is a palindrome
Definition: password_utils.cpp:20
bool hasColour(std::string input)
checks if a string contains a colour
Definition: password_utils.cpp:87
bool hasPrime(std::string input)
checks if a string contains a prime number
Definition: password_utils.cpp:60