#include "WPXString.h"
#include "libwpd_internal.h"
#include <string>
#include <stdarg.h>
#include <stdio.h>
Classes | |
class | WPXStringImpl |
Defines | |
#define | FIRST_BUF_SIZE 128 |
#define | UTF8_LENGTH(Char) |
#define | g_static_utf8_next_char(p) (char *)((p) + g_static_utf8_skip_data[*((uint8_t *)p)]) |
Functions | |
static int | g_static_utf8_strlen (const char *p) |
static int | g_static_unichar_to_utf8 (uint32_t c, char *outbuf) |
void | appendUCS4 (WPXString &str, uint32_t ucs4) |
Variables | |
static const int8_t | g_static_utf8_skip_data [256] |
#define FIRST_BUF_SIZE 128 |
Referenced by WPXString::sprintf(), and WPXString::WPXString().
#define g_static_utf8_next_char | ( | p ) | (char *)((p) + g_static_utf8_skip_data[*((uint8_t *)p)]) |
Referenced by g_static_utf8_strlen(), WPXString::Iter::next(), WPXString::Iter::operator()(), and WPXString::WPXString().
#define UTF8_LENGTH | ( | Char ) |
((Char) < 0x80 ? 1 : \ ((Char) < 0x800 ? 2 : \ ((Char) < 0x10000 ? 3 : \ ((Char) < 0x200000 ? 4 : \ ((Char) < 0x4000000 ? 5 : 6)))))
void appendUCS4 | ( | WPXString & | str, |
uint32_t | ucs4 | ||
) |
Referenced by WP6GraphicsBoxStylePacket::_readContents(), WP6FontDescriptorPacket::_readFontName(), WP6ContentListener::insertCharacter(), WP5ContentListener::insertCharacter(), WP42ContentListener::insertCharacter(), WP3ContentListener::insertCharacter(), WP1ContentListener::insertCharacter(), WP1ContentListener::insertExtendedCharacter(), and WP6ExtendedDocumentSummaryPacket::parse().
int g_static_unichar_to_utf8 | ( | uint32_t | c, |
char * | outbuf | ||
) | [static] |
Referenced by appendUCS4().
int g_static_utf8_strlen | ( | const char * | p ) | [static] |
Referenced by WPXString::Iter::last(), and WPXString::len().
const int8_t g_static_utf8_skip_data[256] [static] |
{ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2, 3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,5,5,5,5,6,6,1,1 }