X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=pdf2swf%2Fxpdf%2FCharCodeToUnicode.h;h=04852aea85659aac8024a21798f23c21b614a2ec;hb=85c46a8011c7fd5e4bda282266006c972ea7606b;hp=605e2bd19d9b29eeaaea560bd1b05d231596b24b;hpb=c7432833fe3a6469d63fad135151a92e12877b94;p=swftools.git diff --git a/pdf2swf/xpdf/CharCodeToUnicode.h b/pdf2swf/xpdf/CharCodeToUnicode.h index 605e2bd..04852ae 100644 --- a/pdf2swf/xpdf/CharCodeToUnicode.h +++ b/pdf2swf/xpdf/CharCodeToUnicode.h @@ -67,6 +67,10 @@ public: // Map a CharCode to Unicode. int mapToUnicode(CharCode c, Unicode *u, int size); + // Return the mapping's length, i.e., one more than the max char + // code supported by the mapping. + CharCode getLength() { return mapLen; } + private: void parseCMap1(int (*getCharFunc)(void *), void *data, int nBits); @@ -83,7 +87,7 @@ private: CharCodeToUnicodeString *sMap; int sMapLen, sMapSize; int refCnt; -#ifdef MULTITHREADED +#if MULTITHREADED GMutex mutex; #endif };