SmartFoxServer 2X C++ API
Sfs2X::Entities::Match::StringMatch Class Reference

This matcher is used in MatchExpressions to check String conditions More...

#include <StringMatch.h>

Inheritance diagram for Sfs2X::Entities::Match::StringMatch:
Sfs2X::Entities::Match::IMatcher

Public Member Functions

boost::shared_ptr< string > Symbol ()
 Get the condition symbol of this matcher More...
 
long int Type ()
 Get the type of this matcher More...
 

Static Public Attributes

static boost::shared_ptr< StringMatchEQUALS
 Checks that Str1 == Str2 More...
 
static boost::shared_ptr< StringMatchNOT_EQUALS
 Checks that Str1 != Str2 More...
 
static boost::shared_ptr< StringMatchCONTAINS
 Checks that Str1.indexOf(Str2) != -1 More...
 
static boost::shared_ptr< StringMatchSTARTS_WITH
 Checks that Str1 starts with characters contained in Str2 More...
 
static boost::shared_ptr< StringMatchENDS_WITH
 Checks that Str1 end with characters contained in Str2 More...
 

Detailed Description

This matcher is used in MatchExpressions to check String conditions

See also
MatchExpression

Member Function Documentation

◆ Symbol()

boost::shared_ptr< string > Sfs2X::Entities::Match::StringMatch::Symbol ( )
virtual

Get the condition symbol of this matcher

Implements Sfs2X::Entities::Match::IMatcher.

◆ Type()

long int Sfs2X::Entities::Match::StringMatch::Type ( )
virtual

Get the type of this matcher

Implements Sfs2X::Entities::Match::IMatcher.

Member Data Documentation

◆ CONTAINS

boost::shared_ptr< StringMatch > Sfs2X::Entities::Match::StringMatch::CONTAINS
static

Checks that Str1.indexOf(Str2) != -1

◆ ENDS_WITH

boost::shared_ptr< StringMatch > Sfs2X::Entities::Match::StringMatch::ENDS_WITH
static

Checks that Str1 end with characters contained in Str2

◆ EQUALS

boost::shared_ptr< StringMatch > Sfs2X::Entities::Match::StringMatch::EQUALS
static

Checks that Str1 == Str2

◆ NOT_EQUALS

boost::shared_ptr< StringMatch > Sfs2X::Entities::Match::StringMatch::NOT_EQUALS
static

Checks that Str1 != Str2

◆ STARTS_WITH

boost::shared_ptr< StringMatch > Sfs2X::Entities::Match::StringMatch::STARTS_WITH
static

Checks that Str1 starts with characters contained in Str2