Image Component Library (ICL)
Classes | Public Member Functions | Public Attributes | List of all members
icl::utils::MatchResult Struct Reference

Utility structure for matching results. More...

#include <StringUtils.h>

Classes

struct  Match
 

Public Member Functions

 operator bool () const
 implicit cast to bool More...
 

Public Attributes

bool matched
 was the match successful More...
 
std::vector< std::string > submatches
 

Detailed Description

Utility structure for matching results.

See also
icl::match for more details

Member Function Documentation

◆ operator bool()

icl::utils::MatchResult::operator bool ( ) const
inline

implicit cast to bool

this enables the user to write

if(matched("abaabab","aba*")){...}

Member Data Documentation

◆ matched

bool icl::utils::MatchResult::matched

was the match successful

◆ submatches

std::vector<std::string> icl::utils::MatchResult::submatches

The documentation for this struct was generated from the following file: