title: Coding a PDF Text Parser in swift
body: <p>I'm currently developing a pdf text parser completely in swift.
  I was looking trough the PDFKittens code and found this in the stringwithpdfstring method (In SimpleFont.m) taking a CGPDFStringRef as parameter.</p>
  
  <pre><code>  const unsigned char *bytes = CGPDFStringGetBytePtr(pdfString);
    NSUInteger length = CGPDFStringGetLength(pdfString);
  
  
      // Translate to Unicode
      for (int i = 0; i &lt; length; i++)
      {
          unichar cid = bytes[i];
          unichar uni = [self.toUnicode unicodeCharacter:cid];
      }
  </code></pre>
  
  <p>From my understanding *bytes is a CChar, what is this method exactly iterating trough? When I translate this code to swift I receive the error that 
      <em>Type UnsafePointer? has no subscript members.</em>
  What is the equivalent of that objective c code in swift...?</p>