Class ECO
Description of ECO:
9.4.1: Tag: ECO
This uses a string of either the form "XDD" or the form "XDD/DD" where the "X"
is a letter from "A" to "E" and the "D" positions are digits; this is used for
an opening designation from the five volume Encyclopedia of Chess Openings.
This tag pair is associated with the use of the EPD opcode "eco" described in a
later section of this document.
-
pgn\tags\Tag
-
pgn\tags\ECO
Methods summary
public
the
|
|
public
boolean
|
#
validate( mixed $data )
Parameters
Returns
boolean returns if a data is valid
Assert("*")
=== false
Assert("????.??.??")
=== false
Assert("a")
=== false
Assert("a0")
=== false
Assert("a00")
=== true
Assert("a00/0")
=== false
Assert("a00/00")
=== true
Assert("asdf")
=== false
Assert("c12/34")
=== true
Assert("c21")
=== true
Assert("e99")
=== true
Assert("e99/99")
=== true
Assert(123)
=== false
Assert(null)
=== false
Overrides
|
public static
string
|
#
validPattern( )
Get the regex pattern of a valid ECO tag string
Get the regex pattern of a valid ECO tag string
Returns
string regex pattern of a valid ECO tag string
Overrides
|