LibreOffice Module ucb (master)  1
Classes | Macros | Functions | Variables
neon/UCBDeadPropertyValue.cxx File Reference
#include <config_lgpl.h>
#include <string.h>
#include <ne_xml.h>
#include <rtl/ustrbuf.hxx>
#include <sal/log.hxx>
#include "UCBDeadPropertyValue.hxx"
#include <memory>
Include dependency graph for neon/UCBDeadPropertyValue.cxx:

Go to the source code of this file.

Classes

struct  UCBDeadPropertyValueParseContext
 

Macros

#define STATE_TOP   (1)
 
#define STATE_UCBPROP   (STATE_TOP)
 
#define STATE_TYPE   (STATE_TOP + 1)
 
#define STATE_VALUE   (STATE_TOP + 2)
 

Functions

static int UCBDeadPropertyValue_startelement_callback (void *, int parent, const char *, const char *name, const char **)
 
static int UCBDeadPropertyValue_chardata_callback (void *userdata, int state, const char *buf, size_t len)
 
static int UCBDeadPropertyValue_endelement_callback (void *userdata, int state, const char *, const char *)
 
static OUString encodeValue (const OUString &rValue)
 
static OUString decodeValue (const OUString &rValue)
 

Variables

static const char aTypeString [] = "string"
 
static const char aTypeLong [] = "long"
 
static const char aTypeShort [] = "short"
 
static const char aTypeBoolean [] = "boolean"
 
static const char aTypeChar [] = "char"
 
static const char aTypeByte [] = "byte"
 
static const char aTypeHyper [] = "hyper"
 
static const char aTypeFloat [] = "float"
 
static const char aTypeDouble [] = "double"
 
static const char aXMLPre [] = "<ucbprop><type>"
 
static const char aXMLMid [] = "</type><value>"
 
static const char aXMLEnd [] = "</value></ucbprop>"
 

Macro Definition Documentation

#define STATE_TOP   (1)

Definition at line 64 of file neon/UCBDeadPropertyValue.cxx.

#define STATE_TYPE   (STATE_TOP + 1)
#define STATE_UCBPROP   (STATE_TOP)
#define STATE_VALUE   (STATE_TOP + 2)

Function Documentation

static OUString decodeValue ( const OUString &  rValue)
static

Definition at line 197 of file neon/UCBDeadPropertyValue.cxx.

References nPos, and SAL_WARN.

static OUString encodeValue ( const OUString &  rValue)
static

Definition at line 161 of file neon/UCBDeadPropertyValue.cxx.

static int UCBDeadPropertyValue_chardata_callback ( void userdata,
int  state,
const char *  buf,
size_t  len 
)
static
static int UCBDeadPropertyValue_endelement_callback ( void userdata,
int  state,
const char *  ,
const char *   
)
static
static int UCBDeadPropertyValue_startelement_callback ( void ,
int  parent,
const char *  ,
const char *  name,
const char **   
)
static

Definition at line 73 of file neon/UCBDeadPropertyValue.cxx.

References STATE_TYPE, STATE_UCBPROP, and STATE_VALUE.

Variable Documentation

const char aTypeBoolean[] = "boolean"
static

Definition at line 52 of file neon/UCBDeadPropertyValue.cxx.

const char aTypeByte[] = "byte"
static

Definition at line 54 of file neon/UCBDeadPropertyValue.cxx.

const char aTypeChar[] = "char"
static

Definition at line 53 of file neon/UCBDeadPropertyValue.cxx.

const char aTypeDouble[] = "double"
static

Definition at line 57 of file neon/UCBDeadPropertyValue.cxx.

const char aTypeFloat[] = "float"
static

Definition at line 56 of file neon/UCBDeadPropertyValue.cxx.

const char aTypeHyper[] = "hyper"
static

Definition at line 55 of file neon/UCBDeadPropertyValue.cxx.

const char aTypeLong[] = "long"
static

Definition at line 50 of file neon/UCBDeadPropertyValue.cxx.

const char aTypeShort[] = "short"
static

Definition at line 51 of file neon/UCBDeadPropertyValue.cxx.

const char aTypeString[] = "string"
static

Definition at line 49 of file neon/UCBDeadPropertyValue.cxx.

const char aXMLEnd[] = "</value></ucbprop>"
static

Definition at line 61 of file neon/UCBDeadPropertyValue.cxx.

const char aXMLMid[] = "</type><value>"
static

Definition at line 60 of file neon/UCBDeadPropertyValue.cxx.

const char aXMLPre[] = "<ucbprop><type>"
static

Definition at line 59 of file neon/UCBDeadPropertyValue.cxx.