Trabalho Prático - PDS2
Carregando...
Procurando...
Nenhuma entrada encontrado
Referência da Classe StringUtils

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.
 

Documentação das funções

◆ IsInvalidName()

bool IsInvalidName ( const std::string & name)
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.

Parâmetros
nameThe name to be validated.
Retorna
true if the name is invalid, false otherwise.
Esse é o diagrama das funções que utilizam essa função:

◆ IsInvalidNickname()

bool IsInvalidNickname ( const std::string & nickname)
static

Checks if the given nickname is invalid.

An invalid nickname is defined as either an empty string or a string that contains spaces.

Parâmetros
nicknameThe nickname to be validated.
Retorna
true if the nickname is invalid, false otherwise.
Esse é o diagrama das funções que utilizam essa função:

◆ IsValidMoveInput() [1/2]

int IsValidMoveInput ( const std::string & col)
static

Checks if the given column is valid.

A valid column is defined as a string that contains only digits.

Parâmetros
colThe column to be validated.
Exceções
InvalidInputExceptionif the column is not valid.

◆ IsValidMoveInput() [2/2]

std::pair< int, int > IsValidMoveInput ( const std::string & row,
const std::string & col )
static

Checks if the given row and column are valid.

A valid row and column are defined as strings that contain only digits.

Parâmetros
rowThe row to be validated.
colThe column to be validated.
Exceções
InvalidInputExceptionif the row or column is not valid.
Esse é o diagrama das funções que utilizam essa função:

A documentação para essa classe foi gerada a partir dos seguintes arquivos: