24
24
* Corel Corporation or Corel Corporation Limited."
29
28
#include "WP42FileStructure.h"
30
29
#include "WP42MultiByteFunctionGroup.h"
31
30
#include "libwpd_internal.h"
33
32
// constructPart: constructs a parseable low-level representation of part of the document
35
34
// throws an exception if there is an error
36
35
// precondition: readVal us between 0xC0 and 0xFF
37
36
// TODO: check the precondition :D
38
37
WP42Part * WP42Part::constructPart(WPXInputStream *input, uint8_t readVal)
40
WPD_DEBUG_MSG(("WordPerfect: Offset: %i, ConstructPart(readVal: 0x%2x)\n", input->tell(), readVal));
39
WPD_DEBUG_MSG(("WordPerfect: Offset: %i, ConstructPart(readVal: 0x%2x)\n", (unsigned int)input->tell(), readVal));
42
41
if (((uint8_t)0xC0 > readVal) || ((uint8_t)0xFE < readVal))
48
47
WPD_DEBUG_MSG(("WordPerfect: constructMultiByteFunctionGroup(input, val)\n"));