nsresult nsSVGPathDataParser::MatchEllipticalArcArg(float* x, float* y, float* r1, float* r2, float* angle, PRBool* largeArcFlag, PRBool* sweepFlag) { ENSURE_MATCHED(MatchNonNegativeNumber(r1)); if (IsTokenCommaWspStarter()) { ENSURE_MATCHED(MatchCommaWsp()); } ENSURE_MATCHED(MatchNonNegativeNumber(r2)); if (IsTokenCommaWspStarter()) { ENSURE_MATCHED(MatchCommaWsp()); } ENSURE_MATCHED(MatchNumber(angle)); if (IsTokenCommaWspStarter()) { ENSURE_MATCHED(MatchCommaWsp()); } ENSURE_MATCHED(MatchFlag(largeArcFlag)); if (IsTokenCommaWspStarter()) { ENSURE_MATCHED(MatchCommaWsp()); } ENSURE_MATCHED(MatchFlag(sweepFlag)); if (IsTokenCommaWspStarter()) { ENSURE_MATCHED(MatchCommaWsp()); } ENSURE_MATCHED(MatchCoordPair(x, y)); return NS_OK; }
boost::shared_ptr< FloatExpr > ReadFloat( std::list< std::string > & tokens ) { std::string number = MatchNumber( tokens ); return boost::shared_ptr< FloatExpr >( new FloatExpr( number ) ); }
boost::shared_ptr< IntegerExpr > ReadInteger( std::list< std::string > & tokens ) { std::string number = MatchNumber( tokens ); return boost::shared_ptr< IntegerExpr >( new IntegerExpr( number ) ); }
nsresult nsSVGPathDataParser::MatchCoord(float* aX) { ENSURE_MATCHED(MatchNumber(aX)); return NS_OK; }