git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
made error reporting less verbose
[swftools.git]
/
pdf2swf
/
xpdf
/
CharCodeToUnicode.h
diff --git
a/pdf2swf/xpdf/CharCodeToUnicode.h
b/pdf2swf/xpdf/CharCodeToUnicode.h
index
605e2bd
..
04852ae
100644
(file)
--- 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);
// 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);
private:
void parseCMap1(int (*getCharFunc)(void *), void *data, int nBits);
@@
-83,7
+87,7
@@
private:
CharCodeToUnicodeString *sMap;
int sMapLen, sMapSize;
int refCnt;
CharCodeToUnicodeString *sMap;
int sMapLen, sMapSize;
int refCnt;
-#ifdef MULTITHREADED
+#if MULTITHREADED
GMutex mutex;
#endif
};
GMutex mutex;
#endif
};