<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Add support for reading PDF/A, PDF/X version from the information dictionary (glib backend)"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=107182#c10">Comment # 10</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Add support for reading PDF/A, PDF/X version from the information dictionary (glib backend)"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=107182">bug 107182</a>
              from <span class="vcard"><a class="email" href="mailto:e.rigas@cranfield.ac.uk" title="Evangelos Rigas <e.rigas@cranfield.ac.uk>"> <span class="fn">Evangelos Rigas</span></a>
</span></b>
        <pre>(In reply to Albert Astals Cid from <a href="show_bug.cgi?id=107182#c9">comment #9</a>)
<span class="quote">> I see you're using regexec which is not available on windows since it's a
> posix thing.

> I don't really care much for windows personally, but people get annoyed when
> we break the build too much.
> </span >
Makes total sense!

<span class="quote">> Can you try using the C++11 regexp support that should be more widely
> supported?
> <a href="https://en.cppreference.com/w/cpp/regex">https://en.cppreference.com/w/cpp/regex</a>

> Sorry about that :/</span >
Done! Changed regex to C++11 regexp and added documentation reference in glib.


P.S. Weirdly enough, I couldn't convert to and from an std::string to
GooString.
In line 522, instead of: std::string pdfsubver = pdfSubtypeVersion->toStr();
I had to go with:

std::string pdfsubver(pdfSubtypeVersion->getCString(), // Which immitates the 
                      pdfSubtypeVersion->getLength()); // toStr() declaration.
Upon compilation it was throwing an error that toStr is not member of Class
GooString.

And in line 555 instead of GooString *conf = new GooString(match.str(3));
I went with: GooString *conf = new GooString(match.str(3).c_str());

However, performance-wise the two versions are the same.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>