libwps: WPS8.cpp File Reference documentation

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

# WPS8.cpp File Reference

`#include <errno.h>`
`#include <math.h>`
`#include <stdlib.h>`
`#include <string.h>`
`#include "WPS8.h"`
`#include "WPSDocument.h"`
`#include "libwps_internal.h"`

## Defines
#define | WPS8_PAGES_HEADER_OFFSET 0x22
#define | SURROGATE_VALUE(h, l) (((h) - 0xd800) * 0x400 + (l) - 0xdc00 + 0x10000)
| Read an UTF16 character in LE byte ordering, convert it and append it to the text buffer as UTF8.
#define | WPS8_ATTRIBUTE_BOLD 0
#define | WPS8_ATTRIBUTE_ITALICS 1
#define | WPS8_ATTRIBUTE_UNDERLINE 2
#define | WPS8_ATTRIBUTE_STRIKEOUT 3
#define | WPS8_ATTRIBUTE_SUBSCRIPT 4
#define | WPS8_ATTRIBUTE_SUPERSCRIPT 5

## Define Documentation

#define SURROGATE_VALUE | ( | h,
|  | l |  | ) | (((h) - 0xd800) * 0x400 + (l) - 0xdc00 + 0x10000)

Read an UTF16 character in LE byte ordering, convert it and append it to the text buffer as UTF8.

Courtesy of glib2

#define WPS8_ATTRIBUTE_BOLD 0

#define WPS8_ATTRIBUTE_ITALICS 1

#define WPS8_ATTRIBUTE_STRIKEOUT 3

#define WPS8_ATTRIBUTE_SUBSCRIPT 4

#define WPS8_ATTRIBUTE_SUPERSCRIPT 5

#define WPS8_ATTRIBUTE_UNDERLINE 2

#define WPS8_PAGES_HEADER_OFFSET 0x22