XJ music engine  1.9.6
In-game runtime engine for XJ music.
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
XJ::ParseNumeric Class Reference

#include <ParseNumeric.h>

Public Member Functions

 ParseNumeric (const std::string &raw)
 
bool isViolatedBy (const ParseNumeric &target) const
 
bool isAllowed (const std::vector< ParseNumeric > &memes) const
 

Static Public Member Functions

static ParseNumeric fromString (const std::string &raw)
 

Public Attributes

std::string body
 
int prefix
 
bool valid
 

Static Public Attributes

static const std::regex rgx
 

Detailed Description

Meme Matcher for Numeric Memes

Parse any meme to test if it's valid, and extract its features

Numeric memes with common letters and different integer prefix (e.g. 2STEP vs 4STEP) are known to be exclusive https://github.com/xjmusic/xjmusic/issues/217

Constructor & Destructor Documentation

◆ ParseNumeric()

ParseNumeric::ParseNumeric ( const std::string &  raw)
explicit

Member Function Documentation

◆ fromString()

ParseNumeric ParseNumeric::fromString ( const std::string &  raw)
static

◆ isAllowed()

bool ParseNumeric::isAllowed ( const std::vector< ParseNumeric > &  memes) const

◆ isViolatedBy()

bool ParseNumeric::isViolatedBy ( const ParseNumeric target) const

Member Data Documentation

◆ body

std::string XJ::ParseNumeric::body

◆ prefix

int XJ::ParseNumeric::prefix

◆ rgx

const std::regex ParseNumeric::rgx
static

◆ valid

bool XJ::ParseNumeric::valid

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