LibreOffice Module ucb (master)  1
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.

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

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

Macro Definition Documentation

#define STATE_TOP   (1)

Definition at line 67 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 200 of file neon/UCBDeadPropertyValue.cxx.

References nPos, and SAL_WARN.

static OUString encodeValue ( const OUString &  rValue)
static

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

References n, and nCount.

static int UCBDeadPropertyValue_chardata_callback ( void userdata,
int  state,
const char *  buf,
size_t  len 
)
static

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

References assert(), STATE_TYPE, and STATE_VALUE.

static int UCBDeadPropertyValue_endelement_callback ( void userdata,
int  state,
const char *  ,
const char *   
)
static

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

References STATE_TYPE, STATE_UCBPROP, and STATE_VALUE.

static int UCBDeadPropertyValue_startelement_callback ( void ,
int  parent,
const char *  ,
const char *  name,
const char **   
)
static

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

References STATE_TYPE, STATE_UCBPROP, and STATE_VALUE.

Variable Documentation

const char aTypeBoolean[] = "boolean"

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

const char aTypeByte[] = "byte"

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

const char aTypeChar[] = "char"

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

const char aTypeDouble[] = "double"

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

const char aTypeFloat[] = "float"

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

const char aTypeHyper[] = "hyper"

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

const char aTypeLong[] = "long"

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

const char aTypeShort[] = "short"

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

const char aTypeString[] = "string"

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

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

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

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

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

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

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