title: Parsing SVG path in objective-c
body: <p>i need to parse some paths of an SVG file, they are simple lines. When retrieving the data i end up with this string:</p>
  
  <blockquote>
    <p>m 0,666.6479 254.28571,0</p>
  </blockquote>
  
  <p>According to SVG specifications m denotes a new current point then the following 2 numbers are the position and the laters are relative positions to the first one.</p>
  
  <p>So that would create a line from point <em>(0, 666.6479)</em> to <em>(254.28, 666.64)</em></p>
  
  <p>How can i parse that in Objective-C so i can end up with those 2 <code>CGPoint</code>s or more if there were?</p>
  
  <p>i know that if it finds an <code>m</code>, the following 2 comma separated numbers should be my first point and after each space there are 2 comma separated numbers that i should sum to the current point to get the next one.</p>
  
  <p>What i don't know if how to parse this correctly.</p>
  
  <p>Thanks!</p>