Defines | Functions | Variables

pp_AttrProp.t.cpp.svn-base File Reference

#include "tf_test.h"
#include "pp_AttrProp.h"

Defines

#define TFSUITE   "core.text.ptbl.attrprop"

Functions

void ascii_strdown (char *p, size_t len)
 Turn the ASCII chars to lower case.
 TFTEST_MAIN ("ascii_strdown")
 TFTEST_MAIN ("PP_getAttribute")
 TFTEST_MAIN ("PP_hasAttribute")
 TFTEST_MAIN ("PP_setAttribute")
 TFTEST_MAIN ("PP_addOrSetAttribute")
 TFTEST_MAIN ("PP_removeAttribute")
 TFTEST_MAIN ("PP_cloneAndDecodeAttributes")
 TFTEST_MAIN ("PP_std_setPropsToValue")
 TFTEST_MAIN ("PP_std_copyProps")
 TFTEST_MAIN ("PP_std_setPropsToNothing")
 TFTEST_MAIN ("PP_makePropString")
UT_uint32 hashcodeBytesAP (UT_uint32 init, const char *pv, UT_uint32 cb)
 TFTEST_MAIN ("PP_AttrProp checksum")
 TFTEST_MAIN ("PP_AttrProp - add props/attr")
 TFTEST_MAIN ("PP_AttrProp - add attr with props")
 TFTEST_MAIN ("PP_AttrProp - add attr with broken props")
 TFTEST_MAIN ("PP_AttrProp - add attr with odd")
 TFTEST_MAIN ("PP_AttrProp - operator=")

Variables

static const PP_PropertyVector attr1
static const PP_PropertyVector attr2
static const PP_PropertyVector true_attr
static const PP_PropertyVector broken_attr

Define Documentation

#define TFSUITE   "core.text.ptbl.attrprop"

Function Documentation

void ascii_strdown ( char *  p,
size_t  len 
)

Turn the ASCII chars to lower case.

Modify in place.

Parameters:
p the string pointer
len the length of the string.
UT_uint32 hashcodeBytesAP ( UT_uint32  init,
const char *  pv,
UT_uint32  cb 
)

(?)TODO: PLEASE DOCUMENT ME!

TFTEST_MAIN ( "PP_AttrProp - add attr with odd"   ) 
TFTEST_MAIN ( "PP_AttrProp - add attr with broken props"   ) 
TFTEST_MAIN ( "PP_AttrProp - add attr with props"   ) 
TFTEST_MAIN ( "PP_AttrProp - add props/attr"   ) 
TFTEST_MAIN ( "PP_AttrProp checksum"   ) 
TFTEST_MAIN ( "PP_addOrSetAttribute"   ) 
TFTEST_MAIN ( "PP_makePropString"   ) 

References PP_makePropString(), and TFPASS.

TFTEST_MAIN ( "PP_std_setPropsToNothing"   ) 
TFTEST_MAIN ( "PP_std_copyProps"   ) 
TFTEST_MAIN ( "PP_std_setPropsToValue"   ) 
TFTEST_MAIN ( "PP_cloneAndDecodeAttributes"   ) 
TFTEST_MAIN ( "PP_removeAttribute"   ) 
TFTEST_MAIN ( "PP_getAttribute"   ) 

References attr1, PP_getAttribute(), TFPASS, and TFPASSEQ.

TFTEST_MAIN ( "PP_setAttribute"   ) 
TFTEST_MAIN ( "PP_hasAttribute"   ) 

References attr1, PP_hasAttribute(), TFPASS, and TFPASSEQ.

TFTEST_MAIN (  ) 
TFTEST_MAIN ( "ascii_strdown"   ) 

References ascii_strdown(), and TFPASSEQ.


Variable Documentation

const PP_PropertyVector attr1 [static]
Initial value:
 {
    "foo", "bar",
    "buzz", "word",
    "style", "and a style"
}

Referenced by TFTEST_MAIN().

const PP_PropertyVector attr2 [static]
Initial value:
 {
    "font-family", "Comic Sans",
    "width", "3in",
    "height", "1cm",
    "font-size", "42pt"
}

Referenced by IE_Imp_OPML::_createBullet(), and TFTEST_MAIN().

Initial value:
 {
    "props", "this is a broken prop",
    "xid", "1",
    "buzz", "word",
    "gin", "tonic"
}

Referenced by TFTEST_MAIN().

const PP_PropertyVector true_attr [static]
Initial value:
 {
    "props", "dom-dir:ltr; font-family:Times New Roman; font-size:10pt; lang:en-GB; line-height:1.0; text-align:justify",
    "xid", "1",
    "buzz", "word",
    "gin", "tonic"
}

Referenced by TFTEST_MAIN().