Class ANSI58216StringParser

Description

This StringParser parses durations formatted as per ANSI 5.8.2.16: [-]D:HH:MM:SS[.S]

Examples:

    • '0:00:00:00.000000001'
    • '0:00:00:00.999999999'
    • '0:00:00:00.100000000'
    • '0:00:00:00.10'
    • '0:00:00:00.1'
    • '0:00:00:01'
    • '0:12:45:45'
    • '1:00:00:00'
    • '365:00:00:00'
    • '-7:09:12:06.10'
    • '+0:01:02'
    • '+0:01:02:3'

    Located in /harmoni/core/Primitives/Chronology/StringParser/ANSI58216StringParser.class.php (line 47)

    SObject
       |
       --StringParser
          |
          --RegexStringParser
             |
             --ANSI58216StringParser
    Method Summary
    string getRegex ()
    void parse ()
    void setDay (integer $anInteger)
    Variables
    Methods
    getRegex (line 61)

    Return the regular expression used by this parser

    • since: 5/24/05
    • access: protected
    string getRegex ()

    Redefinition of:
    RegexStringParser::getRegex()
    Return the regular expression used by this parser
    parse (line 74)

    Parse the input string and set our elements based on the contents of the input string. Elements not found in the string will be null.

    • since: 5/23/05
    • access: private
    void parse ()

    Redefinition of:
    StringParser::parse()
    Parse the input string and set our elements based on the contents of the input string. Elements not found in the string will be null.
    setDay (line 104)

    To allow for very large days, override setDay to not use intval(). and to just leave the days as a string for now.

    • since: 5/25/05
    • access: private
    void setDay (integer $anInteger)
    • integer $anInteger

    Redefinition of:
    StringParser::setDay()
    Set the day

    Inherited Methods

    Inherited From RegexStringParser

    RegexStringParser::canHandle()
    RegexStringParser::getRegex()

    Inherited From StringParser

    StringParser::StringParser()
    StringParser::canHandle()
    StringParser::day()
    StringParser::getParserFor()
    StringParser::hour()
    StringParser::minute()
    StringParser::month()
    StringParser::offsetHour()
    StringParser::offsetMinute()
    StringParser::offsetSecond()
    StringParser::parse()
    StringParser::second()
    StringParser::setDay()
    StringParser::setHour()
    StringParser::setMinute()
    StringParser::setMonth()
    StringParser::setOffsetHour()
    StringParser::setOffsetMinute()
    StringParser::setOffsetSecond()
    StringParser::setSecond()
    StringParser::setYear()
    StringParser::year()

    Inherited From SObject

    SObject::asA()
    SObject::asString()
    SObject::copy()
    SObject::copySameFrom()
    SObject::copyTwoLevel()
    SObject::deepCopy()
    SObject::isEqual()
    SObject::isEqualTo()
    SObject::isNotEqualTo()
    SObject::isNotReferenceTo()
    SObject::isReferenceTo()
    SObject::newFrom()
    SObject::postCopy()
    SObject::printableString()
    SObject::shallowCopy()
    SObject::_deepCopyArray()

    Documentation generated on Wed, 19 Sep 2007 10:21:29 -0400 by phpDocumentor 1.3.0RC3