|
Trabalho Prático - PDS2
|
Membros públicos estáticos | |
| static bool | IsInvalidNickname (const std::string &nickname) |
| Checks if the given nickname is invalid. | |
| static bool | IsInvalidName (const std::string &name) |
| Checks if the given name is invalid. | |
| static std::pair< int, int > | IsValidMoveInput (const std::string &row, const std::string &col) |
| Checks if the given row and column are valid. | |
| static int | IsValidMoveInput (const std::string &col) |
| Checks if the given column is valid. | |
|
static |
Checks if the given name is invalid.
An invalid name is defined as an empty string or a string that contains anything else than letters an whitespaces.
| name | The name to be validated. |

|
static |
Checks if the given nickname is invalid.
An invalid nickname is defined as either an empty string or a string that contains spaces.
| nickname | The nickname to be validated. |

|
static |
Checks if the given column is valid.
A valid column is defined as a string that contains only digits.
| col | The column to be validated. |
| InvalidInputException | if the column is not valid. |
|
static |
Checks if the given row and column are valid.
A valid row and column are defined as strings that contain only digits.
| row | The row to be validated. |
| col | The column to be validated. |
| InvalidInputException | if the row or column is not valid. |
