forked from ChicoState/UnitTestPractice
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPassword.h
More file actions
35 lines (27 loc) · 780 Bytes
/
Password.h
File metadata and controls
35 lines (27 loc) · 780 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef PRACTICE_H
#define PRACTICE_H
#include <string>
using std::string;
class Password
{
private:
public:
/*
The function receives a string and counts how many times the same character
occurs at the beginning of the string, before any other characters (or the
end of the string). The function is case-sensitive so 'Z' is different than
'z' and any ASCII characters are allowed.
*/
int count_leading_characters(string word);
/*
Receives a string and returns a count of how many case-sensitive unique
characters there are.
*/
unsigned int unique_characters(string word);
/*
receives a string and returns whether it has both at least one upper-case
letter and at least one lower-case letter
*/
bool has_mixed_case(string);
};
#endif