Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

Util.c File Reference


Detailed Description

Utility functions (implementation).

#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <assert.h>
#include <string.h>
#include "CUnit.h"
#include "TestDB.h"
#include "Util.h"
#include "test_cunit.h"

Defines

#define MAX_LEN   100

Functions

int get_index (char ch)
 Check whether a character is a special xml character.
void test_CU_translate_special_characters (void)
void test_CU_compare_strings (void)
void test_CU_trim (void)
void test_CU_trim_left (void)
void test_CU_trim_right (void)
void test_cunit_Util (void)

Variables

struct {
   char   special_char
   char *   replacement
bindings
 Structure containing mappings of special characters to xml entity codes.


Define Documentation

#define MAX_LEN   100
 


Function Documentation

void test_CU_compare_strings void   )  [static]
 

void test_CU_translate_special_characters void   )  [static]
 

void test_CU_trim void   )  [static]
 

void test_CU_trim_left void   )  [static]
 

void test_CU_trim_right void   )  [static]
 


Variable Documentation

char* replacement
 

char special_char
 


Generated on Thu Apr 28 12:36:10 2005 for CUnit by  doxygen 1.3.9.1