Language Converter
Finite-State Transducer implementation of MediaWiki LanguageConverter
Loading...
Searching...
No Matches
Wikimedia\LangConv\Construct\Edge Class Reference

An edge between states in a mutable FST. More...

Public Member Functions

 __construct (State $from, int $id, string $upper, string $lower, State $to)
 Create a new Edge.
 

Public Attributes

 $from
 
 $id
 
 $upper
 
 $lower
 
 $to
 

Detailed Description

An edge between states in a mutable FST.

Constructor & Destructor Documentation

◆ __construct()

Wikimedia\LangConv\Construct\Edge::__construct ( State $from,
int $id,
string $upper,
string $lower,
State $to )

Create a new Edge.

Parameters
State$fromState this edge is coming from (and stored in)
int$idIndex of this edge in from State's edges array.
string$upperToken on the upper side of this edge
string$lowerToken on the lower side of this edge
State$toDestination state

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