@@ -87,8 +87,6 @@ bool WsjcppValidators::isValidDate(const std::string &sValue,
8787 return true ;
8888}
8989
90- // ----------------------------------------------------------------------
91-
9290bool WsjcppValidators::isValidTimeH24 (const std::string &sValue ,
9391 std::string &sError ) {
9492 int nSize = sValue .size ();
@@ -142,8 +140,6 @@ bool WsjcppValidators::isValidTimeH24(const std::string &sValue,
142140 return true ;
143141}
144142
145- // ----------------------------------------------------------------------
146-
147143bool WsjcppValidators::isValidDomainName (const std::string &sValue ,
148144 std::string &sError ) {
149145 std::vector<std::string> vSubDomains;
@@ -232,16 +228,12 @@ bool WsjcppValidators::isValidDomainName(const std::string &sValue,
232228 return true ;
233229}
234230
235- // ----------------------------------------------------------------------
236-
237231bool WsjcppValidators::isValidPort (const std::string &sValue ,
238232 std::string &sError ) {
239233 int nPort = std::atoi (sValue .c_str ());
240234 return WsjcppValidators::isValidPort (nPort, sError );
241235}
242236
243- // ----------------------------------------------------------------------
244-
245237bool WsjcppValidators::isValidPort (int nValue, std::string &sError ) {
246238 if (nValue < 1 || nValue > 65535 ) {
247239 sError = " Port '" + std::to_string (nValue) +
@@ -251,8 +243,6 @@ bool WsjcppValidators::isValidPort(int nValue, std::string &sError) {
251243 return true ;
252244}
253245
254- // ----------------------------------------------------------------------
255-
256246bool WsjcppValidators::isValidURLProtocol (const std::string &sValue ,
257247 std::string &sError ) {
258248 if (sValue != " http" && sValue != " https" && sValue != " ws" &&
@@ -263,8 +253,6 @@ bool WsjcppValidators::isValidURLProtocol(const std::string &sValue,
263253 return true ;
264254}
265255
266- // ----------------------------------------------------------------------
267-
268256bool WsjcppValidators::isValidBase64 (const std::string &sValue ,
269257 std::string &sError ) {
270258 int nSize = sValue .size ();
@@ -301,8 +289,6 @@ bool WsjcppValidators::isValidBase64(const std::string &sValue,
301289 return true ;
302290}
303291
304- // ----------------------------------------------------------------------
305-
306292bool WsjcppValidators::isValidIPv4 (const std::string &sValue ,
307293 std::string &sError ) {
308294 int n = 0 ;
@@ -339,8 +325,6 @@ bool WsjcppValidators::isValidIPv4(const std::string &sValue,
339325 return true ;
340326}
341327
342- // ----------------------------------------------------------------------
343-
344328bool WsjcppValidators::isValidIPv6 (const std::string &sValue ,
345329 std::string &sError ) {
346330 // TODO redesign without arpa
@@ -361,14 +345,10 @@ WsjcppValidatorStringBase::WsjcppValidatorStringBase(
361345 m_sTypeName = sTypeName ;
362346}
363347
364- // ----------------------------------------------------------------------
365-
366348WsjcppValidatorType WsjcppValidatorStringBase::getBaseType () {
367349 return WsjcppValidatorType::WSJCPP_VALIDATOR_STRING;
368350}
369351
370- // ----------------------------------------------------------------------
371-
372352std::string WsjcppValidatorStringBase::getTypeName () { return m_sTypeName; }
373353
374354// ----------------------------------------------------------------------
@@ -382,8 +362,6 @@ WsjcppValidatorStringRegexpBase::WsjcppValidatorStringRegexpBase(
382362 m_rxValidator = std::regex (sValidator );
383363}
384364
385- // ----------------------------------------------------------------------
386-
387365bool WsjcppValidatorStringRegexpBase::isValid (const std::string &sValue ,
388366 std::string &sError ) {
389367 if (!std::regex_match (sValue , m_rxValidator)) {
@@ -403,8 +381,6 @@ WsjcppValidatorStringListBase::WsjcppValidatorStringListBase(
403381 m_vListValues = vListValues;
404382}
405383
406- // ----------------------------------------------------------------------
407-
408384bool WsjcppValidatorStringListBase::isValid (const std::string &sValue ,
409385 std::string &sError ) {
410386 if (std::find (m_vListValues.begin (), m_vListValues.end (), sValue ) !=
@@ -453,8 +429,6 @@ WsjcppValidatorStringLength::WsjcppValidatorStringLength(int nMinLength,
453429 m_nMaxLength = nMaxLength;
454430}
455431
456- // ----------------------------------------------------------------------
457-
458432bool WsjcppValidatorStringLength::isValid (const std::string &sValue ,
459433 std::string &sError ) {
460434 if (sValue .length () < m_nMinLength) {
@@ -502,8 +476,6 @@ WsjcppValidatorTimeH24::WsjcppValidatorTimeH24()
502476 TAG = " WsjcppValidatorTime" ;
503477}
504478
505- // ----------------------------------------------------------------------
506-
507479bool WsjcppValidatorTimeH24::isValid (const std::string &sValue ,
508480 std::string &sError ) {
509481 return WsjcppValidators::isValidTimeH24 (sValue , sError );
@@ -517,8 +489,6 @@ WsjcppValidatorDateTime::WsjcppValidatorDateTime()
517489 TAG = " WsjcppValidatorDateTime" ;
518490}
519491
520- // ----------------------------------------------------------------------
521-
522492bool WsjcppValidatorDateTime::isValid (const std::string &sValue ,
523493 std::string &sError ) {
524494 int nSize = sValue .size ();
@@ -553,8 +523,6 @@ WsjcppValidatorURL::WsjcppValidatorURL() : WsjcppValidatorStringBase("url") {
553523 std::regex (" ^\\ d{1,3}\\ .\\ d{1,3}\\ .\\ d{1,3}\\ .\\ d{1,3}$" );
554524}
555525
556- // ----------------------------------------------------------------------
557-
558526bool WsjcppValidatorURL::isValid (const std::string &sValue ,
559527 std::string &sError ) {
560528 if (sValue .size () == 0 ) {
0 commit comments