OW_GenCaseFoldingCompare.cpp File Reference

#include "OW_String.hpp"
#include "OW_Array.hpp"
#include "OW_StringStream.hpp"
#include "OW_UTF8Utils.hpp"
#include <fstream>
#include <cctype>
#include <algorithm>
#include <vector>
#include <iostream>
#include <cassert>
#include <map>
#include <set>

Include dependency graph for OW_GenCaseFoldingCompare.cpp:

Go to the source code of this file.

Classes

class  StateMachine
struct  StateMachine::transition_t
struct  StateMachine::state_t
struct  processLine
struct  isForInput

Defines

#define DEBUG(x)   cout << x

Typedefs

typedef std::multimap< String,
String > 
mmap_t
typedef mmap_t::const_iterator ci_t

Functions

int followOrAddTransition (int curTransition, UInt8 input, int aux)
void printStrings (const String &str1, const String &str2)
void buildTransitions (const String &str1, const String &str2)
void outputHeader ()
void outputTransitions (const StateMachine::state_t &state, int inputSelection, bool outputDefault)
void outputFirstState (const StateMachine::state_t &state)
void outputSwitch (const StateMachine::state_t &state, int inputSelection, bool outputDefault)
void outputCode ()
bool findDuplicateStates (int &state1, int &state2)
void minimizeStateMachine ()
void getEntriesFor (const String &key, set< String > &rval)
bool haveEntry (const String &key, const String &val)
void calculateTransitiveClosure ()
void buildStateMachine ()
int main (int argc, char **argv)

Variables

StateMachine stateMachine
std::multimap< String, String > caseFoldingEntries


Define Documentation

#define DEBUG  )     cout << x
 

Definition at line 54 of file OW_GenCaseFoldingCompare.cpp.

Referenced by calculateTransitiveClosure(), StateMachine::debug(), findDuplicateStates(), followOrAddTransition(), minimizeStateMachine(), processLine::operator()(), and printStrings().


Typedef Documentation

typedef mmap_t::const_iterator ci_t
 

Definition at line 173 of file OW_GenCaseFoldingCompare.cpp.

typedef std::multimap<String, String> mmap_t
 

Definition at line 172 of file OW_GenCaseFoldingCompare.cpp.


Function Documentation

void buildStateMachine  ) 
 

Definition at line 507 of file OW_GenCaseFoldingCompare.cpp.

References buildTransitions(), and caseFoldingEntries.

void buildTransitions const String &  str1,
const String &  str2
 

Definition at line 219 of file OW_GenCaseFoldingCompare.cpp.

References followOrAddTransition(), printStrings(), and StateMachine::start.

Referenced by buildStateMachine().

void calculateTransitiveClosure  ) 
 

Definition at line 481 of file OW_GenCaseFoldingCompare.cpp.

References caseFoldingEntries, DEBUG, getEntriesFor(), and haveEntry().

bool findDuplicateStates int &  state1,
int &  state2
 

Definition at line 424 of file OW_GenCaseFoldingCompare.cpp.

References DEBUG, i, StateMachine::m_states, and stateMachine.

Referenced by minimizeStateMachine().

int followOrAddTransition int  curTransition,
UInt8  input,
int  aux
 

Definition at line 176 of file OW_GenCaseFoldingCompare.cpp.

References StateMachine::addState(), StateMachine::addTransition(), DEBUG, StateMachine::getStateStr(), StateMachine::getTransition(), StateMachine::invalid, and stateMachine.

Referenced by buildTransitions().

void getEntriesFor const String &  key,
set< String > &  rval
 

Definition at line 455 of file OW_GenCaseFoldingCompare.cpp.

References caseFoldingEntries.

Referenced by calculateTransitiveClosure().

bool haveEntry const String &  key,
const String &  val
 

Definition at line 469 of file OW_GenCaseFoldingCompare.cpp.

References caseFoldingEntries.

Referenced by calculateTransitiveClosure().

int main int  argc,
char **  argv
 

Definition at line 517 of file OW_GenCaseFoldingCompare.cpp.

References caseFoldingEntries, i, and s.

void minimizeStateMachine  ) 
 

Definition at line 442 of file OW_GenCaseFoldingCompare.cpp.

References DEBUG, findDuplicateStates(), StateMachine::invalid, StateMachine::removeDuplicateState(), and stateMachine.

void outputCode  ) 
 

Definition at line 345 of file OW_GenCaseFoldingCompare.cpp.

References i, StateMachine::m_states, outputFirstState(), outputHeader(), outputSwitch(), and stateMachine.

void outputFirstState const StateMachine::state_t state  ) 
 

Definition at line 331 of file OW_GenCaseFoldingCompare.cpp.

References outputTransitions(), and state.

Referenced by outputCode().

void outputHeader  ) 
 

Definition at line 280 of file OW_GenCaseFoldingCompare.cpp.

Referenced by outputCode().

void outputSwitch const StateMachine::state_t state,
int  inputSelection,
bool  outputDefault
 

Definition at line 339 of file OW_GenCaseFoldingCompare.cpp.

References outputTransitions(), and state.

Referenced by outputCode().

void outputTransitions const StateMachine::state_t state,
int  inputSelection,
bool  outputDefault
 

Definition at line 315 of file OW_GenCaseFoldingCompare.cpp.

References state.

Referenced by outputFirstState(), and outputSwitch().

void printStrings const String &  str1,
const String &  str2
 

Definition at line 203 of file OW_GenCaseFoldingCompare.cpp.

References DEBUG, and i.

Referenced by buildTransitions().


Variable Documentation

std::multimap<String, String> caseFoldingEntries
 

Definition at line 174 of file OW_GenCaseFoldingCompare.cpp.

Referenced by buildStateMachine(), calculateTransitiveClosure(), getEntriesFor(), haveEntry(), and main().

StateMachine stateMachine
 

Definition at line 171 of file OW_GenCaseFoldingCompare.cpp.

Referenced by findDuplicateStates(), followOrAddTransition(), minimizeStateMachine(), and outputCode().


Generated on Thu Feb 9 08:59:22 2006 for openwbem by  doxygen 1.4.6