Fast RTPS  Version 2.4.1
Fast RTPS
StringMatching Class Reference

Class StringMatching used to match different strings against each other as defined by the POSIX fnmatch API (1003.2-1992 section B.6). More...

#include <StringMatching.h>

Public Member Functions

 StringMatching ()
 
virtual ~StringMatching ()
 

Static Public Member Functions

static bool matchString (const char *input1, const char *input2)
 Static method to match two strings. More...
 
static bool matchPattern (const char *pattern, const char *input)
 Static method to match a string to a pattern. More...
 

Detailed Description

Class StringMatching used to match different strings against each other as defined by the POSIX fnmatch API (1003.2-1992 section B.6).

Constructor & Destructor Documentation

◆ StringMatching()

◆ ~StringMatching()

virtual ~StringMatching ( )
virtual

Member Function Documentation

◆ matchPattern()

static bool matchPattern ( const char *  pattern,
const char *  input 
)
static

Static method to match a string to a pattern.

It checks the string specified by the input argument to see if it matches the pattern specified by the pattern argument.

◆ matchString()

static bool matchString ( const char *  input1,
const char *  input2 
)
static

Static method to match two strings.

It checks if the input strings match. Any of the strings or both can be a pattern.


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