aas-core3.1 0.0.1-alpha.1
Manipulate, verify and de/serialize asset administration shells V3.1 in C++.
Loading...
Searching...
No Matches
Classes | Enumerations | Functions

Classes

struct  Instruction
 
struct  InstructionAny
 
struct  InstructionChar
 
struct  InstructionEnd
 
struct  InstructionJump
 
struct  InstructionMatch
 
struct  InstructionNotSet
 
struct  InstructionSet
 
struct  InstructionSplit
 
struct  Range
 

Enumerations

enum class  InstructionKind : std::uint8_t {
  Char , Set , NotSet , Any ,
  Match , Jump , Split , End
}
 

Functions

std::string to_string (const InstructionChar &instruction)
 
std::string to_string (const Range &range)
 
bool CharacterInRanges (const std::vector< Range > &ranges, wchar_t character)
 
std::string to_string (const InstructionSet &instruction)
 
std::string to_string (const InstructionNotSet &instruction)
 
std::string to_string (const InstructionAny &)
 
std::string to_string (const InstructionMatch &)
 
std::string to_string (const InstructionJump &instruction)
 
std::string to_string (const InstructionSplit &instruction)
 
std::string to_string (const InstructionEnd &)
 
std::string to_string (const Instruction &instruction)
 
std::string to_string (const std::vector< std::unique_ptr< Instruction > > &instructions)
 
bool Match (const std::vector< std::unique_ptr< Instruction > > &program, const std::wstring &text)
 

Enumeration Type Documentation

◆ InstructionKind

enum class aas_core::aas_3_1::revm::InstructionKind : std::uint8_t
strong
Enumerator
Char 
Set 
NotSet 
Any 
Match 
Jump 
Split 
End 

Function Documentation

◆ CharacterInRanges()

bool aas_core::aas_3_1::revm::CharacterInRanges ( const std::vector< Range > &  ranges,
wchar_t  character 
)

Check whether the character is in any of the given character ranges.

Returns
true if the character is in any of the ranges

◆ Match()

bool aas_core::aas_3_1::revm::Match ( const std::vector< std::unique_ptr< Instruction > > &  program,
const std::wstring &  text 
)

Try to match the program against the text.

Returns
true if the text matches

◆ to_string() [1/11]

std::string aas_core::aas_3_1::revm::to_string ( const Instruction instruction)

◆ to_string() [2/11]

std::string aas_core::aas_3_1::revm::to_string ( const InstructionAny )

◆ to_string() [3/11]

std::string aas_core::aas_3_1::revm::to_string ( const InstructionChar instruction)

◆ to_string() [4/11]

std::string aas_core::aas_3_1::revm::to_string ( const InstructionEnd )

◆ to_string() [5/11]

std::string aas_core::aas_3_1::revm::to_string ( const InstructionJump instruction)

◆ to_string() [6/11]

std::string aas_core::aas_3_1::revm::to_string ( const InstructionMatch )

◆ to_string() [7/11]

std::string aas_core::aas_3_1::revm::to_string ( const InstructionNotSet instruction)

◆ to_string() [8/11]

std::string aas_core::aas_3_1::revm::to_string ( const InstructionSet instruction)

◆ to_string() [9/11]

std::string aas_core::aas_3_1::revm::to_string ( const InstructionSplit instruction)

◆ to_string() [10/11]

std::string aas_core::aas_3_1::revm::to_string ( const Range range)

◆ to_string() [11/11]

std::string aas_core::aas_3_1::revm::to_string ( const std::vector< std::unique_ptr< Instruction > > &  instructions)