RenanBr.BibTexParser.Parser - JoomlaPubDB/PubDB GitHub Wiki

Class: \RenanBr\BibTexParser\Parser



Constants


Properties


Methods


Details


Constants

TYPE
TYPE = 'type'
Tag Version Desc

CITATION_KEY
CITATION_KEY = 'citation_key'
Tag Version Desc

TAG_NAME
TAG_NAME = 'tag_name'
Tag Version Desc

RAW_TAG_CONTENT
RAW_TAG_CONTENT = 'raw_tag_content'
Tag Version Desc

BRACED_TAG_CONTENT
BRACED_TAG_CONTENT = 'braced_tag_content'
Tag Version Desc

QUOTED_TAG_CONTENT
QUOTED_TAG_CONTENT = 'quoted_tag_content'
Tag Version Desc

ENTRY
ENTRY = 'entry'
Tag Version Desc

NONE
NONE = 'none'
Tag Version Desc

COMMENT
COMMENT = 'comment'
Tag Version Desc

FIRST_TAG_NAME
FIRST_TAG_NAME = 'first_tag_name'
Tag Version Desc

POST_TYPE
POST_TYPE = 'post_type'
Tag Version Desc

POST_TAG_NAME
POST_TAG_NAME = 'post_tag_name'
Tag Version Desc

PRE_TAG_CONTENT
PRE_TAG_CONTENT = 'pre_tag_content'
Tag Version Desc

Properties

private $state : string


Type: string

Details:

private $buffer : string


Type: string

Details:

private $bufferOffset : null|integer


Type: null|integer

Details:

private $firstTagSnapshot : null|array


Type: null|array

Details:

private $originalEntryBuffer : null|string


Type: null|string

Details:

private $originalEntryOffset : null|integer


Type: null|integer

Details:

private $skipOriginalEntryReading : boolean


Type: boolean

Details:

private $line : integer


Type: integer

Details:

private $column : integer


Type: integer

Details:

private $offset : integer


Type: integer

Details:

private $isTagContentEscaped : boolean


Type: boolean

Details:

private $mayConcatenateTagContent : boolean


Type: boolean

Details:

private $tagContentDelimiter : null|string


Type: null|string

Details:

private $braceLevel : integer


Type: integer

Details:

private $listeners : array<mixed,\RenanBr\BibTexParser\ListenerInterface>


Type: array<mixed,\RenanBr\BibTexParser\ListenerInterface>

Details:


Methods

public addListener()

public addListener(\RenanBr\BibTexParser\ListenerInterface  $listener) 

Details:

Parameters:
Type Name Description
\RenanBr\BibTexParser\ListenerInterface $listener

public parseFile()

public parseFile(string  $file) 

Details:

Parameters:
Type Name Description
string $file
Throws:
Type Description
\RenanBr\BibTexParser\Exception\ParserException if $file given is not a valid BibTeX
\ErrorException if $file given is not readable

public parseString()

public parseString(string  $string) 

Details:

Parameters:
Type Name Description
string $string
Throws:
Type Description
\RenanBr\BibTexParser\Exception\ParserException if $string given is not a valid BibTeX

private parse()

private parse(string  $text) 

Details:

Parameters:
Type Name Description
string $text

private reset()

private reset() 

Details:

private read()

private read(string  $char) 

Details:

Parameters:
Type Name Description
string $char

private readNone()

private readNone(string  $char) 

Details:

Parameters:
Type Name Description
string $char

private readComment()

private readComment(string  $char) 

Details:

Parameters:
Type Name Description
string $char

private readType()

private readType(string  $char) 

Details:

Parameters:
Type Name Description
string $char

private readPostType()

private readPostType(string  $char) 

Details:

Parameters:
Type Name Description
string $char

private readTagName()

private readTagName(string  $char) 

Details:

Parameters:
Type Name Description
string $char

private readPostTagName()

private readPostTagName(string  $char) 

Details:

Parameters:
Type Name Description
string $char

private readPreTagContent()

private readPreTagContent(string  $char) 

Details:

Parameters:
Type Name Description
string $char

private readRawTagContent()

private readRawTagContent(string  $char) 

Details:

Parameters:
Type Name Description
string $char

private readDelimitedTagContent()

private readDelimitedTagContent(string  $char) 

Details:

Parameters:
Type Name Description
string $char

private readOriginalEntry()

private readOriginalEntry(string  $char, string  $previousState) 

Details:

Parameters:
Type Name Description
string $char
string $previousState

private triggerListeners()

private triggerListeners(string  $text, string  $type, array  $context) 

Details:

Parameters:
Type Name Description
string $text
string $type
array $context

private triggerListenersWithCurrentBuffer()

private triggerListenersWithCurrentBuffer() 

Details:

private triggerListenersWithFirstTagSnapshotAs()

private triggerListenersWithFirstTagSnapshotAs(string  $type) 

Details:

Parameters:
Type Name Description
string $type

private appendToBuffer()

private appendToBuffer(string  $char) 

Details:

Parameters:
Type Name Description
string $char

private takeBufferSnapshot() : array

private takeBufferSnapshot() : array

Details:

Returns: array

private throwExceptionAccordingToConcatenationAvailability()

private throwExceptionAccordingToConcatenationAvailability(string  $char, boolean  $availability) 

Details:

Parameters:
Type Name Description
string $char
boolean $availability

private throwExceptionIfBufferIsEmpty()

private throwExceptionIfBufferIsEmpty(string  $char) 

Details:

Parameters:
Type Name Description
string $char

private throwExceptionIfReadingEntry()

private throwExceptionIfReadingEntry(string  $char) 

Details:

Parameters:
Type Name Description
string $char

private isEntryState() : boolean

private isEntryState(string  $state) : boolean

Details:

Parameters:
Type Name Description
string $state

Returns: boolean

private isWhitespace() : boolean

private isWhitespace(string  $char) : boolean

Details:

Parameters:
Type Name Description
string $char

Returns: boolean


Top Namespaces


Reports


This document was automatically generated from source code comments on 2020-07-13 using phpDocumentor and fr3nch13/phpdoc-markdown

⚠️ **GitHub.com Fallback** ⚠️