cxWidgets 1.0
cxValidators.h
Go to the documentation of this file.
1// Copyright (c) 2026 E. Oulashin
2#ifndef __CXVALIDATORS_H__
3#define __CXVALIDATORS_H__
4// Copyright (c) 2005-2007 Michael H. Kinney
5//
6// This file defines some input validators.
7
8#include <string>
9
10namespace cxValidators
11{
23 std::string intOnKeyValidator(void *theInput, void *clearOnSpace);
24
36 std::string floatingPtOnKeyValidator(void *theInput, void *clearOnSpace);
37
47 bool isValidFloatingPtNumStr(const std::string& pNumStr);
48
57 bool isValidWholeNumStr(const std::string& pNumStr);
58
59} // end of namespace cxValidators
60
61#endif
Definition cxValidators.h:11
bool isValidWholeNumStr(const std::string &pNumStr)
Returns whether or not a string contains a valid whole number. A.
std::string intOnKeyValidator(void *theInput, void *clearOnSpace)
Validator for inputs that should only accept integers. This is.
Definition cxValidators.cpp:10
bool isValidFloatingPtNumStr(const std::string &pNumStr)
Returns whether or not a string contains a valid floating-point.
std::string floatingPtOnKeyValidator(void *theInput, void *clearOnSpace)
Validator for inputs that should only accept floating-point.
Definition cxValidators.cpp:137