Serial-TCP/IPbridge  1.0
Functions
validations.h File Reference

Various validation functions for common usage - declarations. More...

#include <string>

Go to the source code of this file.

Functions

bool isValidIPv4Address (const std::string &str)
 Checks whether the selected string is a valid IPv4 address. More...
 

Detailed Description

Various validation functions for common usage - declarations.

Encoding: UTF-8 Project: Serial-TCP/IP bridge

Author
Petr Zemek, xzeme.nosp@m.k02@.nosp@m.stud..nosp@m.fit..nosp@m.vutbr.nosp@m..cz
Date
2009

Function Documentation

bool isValidIPv4Address ( const std::string &  str)

Checks whether the selected string is a valid IPv4 address.

Parameters
strThe string to be checked.
Returns
True if the selected string is a valid IPv4 address, false otherwise.

Preconditions:

  • str must be without beginning and trailing whitespaces