Main Page | Namespace List | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

pst2ldif.cpp File Reference

#include <set>
#include "define.h"
#include "libstrfunc.h"
#include "libpst.h"
#include "common.h"
#include "timeconv.h"
#include "lzfu.h"

Go to the source code of this file.

Data Structures

struct  ltstr

Typedefs

typedef set< const char *,
ltstr
string_set

Functions

int32_t usage ()
int32_t version ()
char * my_stristr (char *haystack, char *needle)
char * check_filename (char *fname)
const char * single (char *str)
const char * folded (char *str)
void multi (const char *fmt, char *str)
char * rfc2426_escape (char *str)
int32_t chr_count (char *str, char x)
void free_strings (string_set &s)
const char * register_string (string_set &s, const char *name)
const char * register_string (const char *name)
const char * unique_string (const char *name)
char * trim (char *name)
void process (pst_desc_ll *d_ptr)
int main (int argc, char **argv)

Variables

char * prog_name
pst_file pstfile
char * ldap_base = NULL
char * ldap_class = NULL
char * ldap_org = NULL
string_set all_strings


Typedef Documentation

typedef set<const char *, ltstr> string_set
 

Definition at line 50 of file pst2ldif.cpp.


Function Documentation

void check_filename char *  fname  ) 
 

Definition at line 391 of file pst2ldif.cpp.

int chr_count char *  str,
char  x
 

Definition at line 485 of file pst2ldif.cpp.

Referenced by rfc2426_escape().

const char * folded char *  str  ) 
 

Definition at line 413 of file pst2ldif.cpp.

References rfc2426_escape().

Referenced by process().

void free_strings string_set s  )  [static]
 

Definition at line 59 of file pst2ldif.cpp.

Referenced by main().

int main int  argc,
char **  argv
 

Definition at line 250 of file pst2ldif.cpp.

References all_strings, pst_desc_tree::child, pst_file::d_head, DEBUG_ENT, DEBUG_INIT, DEBUG_REGISTER_CLOSE, DEBUG_RET, DIE, free_strings(), getopt(), ldap_base, ldap_class, ldap_org, pst_item::message_store, process(), prog_name, pst_close(), pst_desc_ll, pst_freeItem(), pst_getTopOfFolders(), pst_load_extended_attributes(), pst_load_index(), pst_open(), pst_parse_item(), pstfile, RET_DERROR, usage(), and version().

void multi const char *  fmt,
char *  str
 

Definition at line 428 of file pst2ldif.cpp.

References rfc2426_escape().

Referenced by process().

char * my_stristr char *  haystack,
char *  needle
 

Definition at line 370 of file pst2ldif.cpp.

void process pst_desc_ll d_ptr  )  [static]
 

Definition at line 120 of file pst2ldif.cpp.

References pst_item_contact::address1, pst_item_contact::address1a, pst_item_contact::address2, pst_item_contact::address2a, pst_item_contact::address3, pst_item_contact::address3a, pst_item_contact::business_address, pst_item_contact::business_city, pst_item_contact::business_fax, pst_item_contact::business_phone, pst_item_contact::business_po_box, pst_item_contact::business_postal_code, pst_item_contact::business_state, pst_item_contact::business_street, pst_item_contact::car_phone, pst_desc_tree::child, pst_item::comment, pst_item_contact::company_name, pst_item::contact, DEBUG_INFO, pst_desc_tree::desc, pst_item_contact::display_name_prefix, pst_item::file_as, pst_item_contact::first_name, folded(), pst_item::folder, pst_item_contact::home_address, pst_item_contact::home_city, pst_item_contact::home_fax, pst_item_contact::home_phone, pst_item_contact::home_po_box, pst_item_contact::home_postal_code, pst_item_contact::home_state, pst_item_contact::home_street, pst_item_contact::job_title, ldap_base, ldap_class, pst_item_contact::mobile_phone, multi(), pst_desc_tree::next, pst_item_contact::other_address, pst_item_contact::other_city, pst_item_contact::other_phone, pst_item_contact::other_po_box, pst_item_contact::other_postal_code, pst_item_contact::other_state, pst_item_contact::other_street, process(), pst_desc_ll, pst_freeItem(), pst_parse_item(), pstfile, single(), pst_item_contact::suffix, pst_item_contact::surname, trim(), pst_item::type, and unique_string().

const char * register_string const char *  name  )  [static]
 

Definition at line 84 of file pst2ldif.cpp.

References all_strings.

Referenced by unique_string().

const char * register_string string_set s,
const char *  name
[static]
 

Definition at line 72 of file pst2ldif.cpp.

char * rfc2426_escape char *  str  ) 
 

Definition at line 441 of file pst2ldif.cpp.

References chr_count().

Referenced by folded(), multi(), and single().

const char * single char *  str  ) 
 

Definition at line 404 of file pst2ldif.cpp.

References rfc2426_escape().

Referenced by process().

char * trim char *  name  )  [static]
 

Definition at line 110 of file pst2ldif.cpp.

Referenced by process().

const char * unique_string const char *  name  )  [static]
 

Definition at line 93 of file pst2ldif.cpp.

References all_strings, and register_string().

Referenced by process().

int usage  ) 
 

Definition at line 341 of file pst2ldif.cpp.

References prog_name, and version().

int32_t version  ) 
 


Variable Documentation

string_set all_strings [static]
 

Definition at line 52 of file pst2ldif.cpp.

Referenced by main(), register_string(), and unique_string().

char* ldap_base = NULL
 

Definition at line 37 of file pst2ldif.cpp.

char* ldap_class = NULL
 

Definition at line 38 of file pst2ldif.cpp.

char* ldap_org = NULL
 

Definition at line 39 of file pst2ldif.cpp.

char* prog_name
 

Definition at line 35 of file pst2ldif.cpp.

Referenced by main(), and usage().

pst_file pstfile
 

Definition at line 36 of file pst2ldif.cpp.


Generated on Tue Aug 5 12:06:14 2008 for 'LibPst' by  doxygen 1.3.9.1