You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.8 KiB
49 lines
1.8 KiB
////////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// Filename : Global.cpp
|
|
// Purpose : Global Initalization.
|
|
//
|
|
// Project : WordBreakers
|
|
// Component: English word breaker
|
|
//
|
|
// Author : yairh
|
|
//
|
|
// Log:
|
|
//
|
|
// May 30 2000 yairh creation
|
|
//
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
#include "base.h"
|
|
#include "tokenizer.h"
|
|
#include "formats.h"
|
|
#include "synchro.h"
|
|
|
|
extern CAutoClassPointer<CPropArray> g_pPropArray;
|
|
extern CAutoClassPointer<CSyncCriticalSection> g_apcsSpanishDictInit;
|
|
|
|
void InitializeGlobalData()
|
|
{
|
|
CAutoClassPointer<CPropArray> apPropArray = new CPropArray;
|
|
CAutoClassPointer<CClitics> apClitics = new CClitics;
|
|
CAutoClassPointer<CSpecialAbbreviationSet> apEngAbbList = new CSpecialAbbreviationSet(g_aEngAbbList);
|
|
CAutoClassPointer<CSpecialAbbreviationSet> apFrnAbbList = new CSpecialAbbreviationSet(g_aFrenchAbbList);
|
|
CAutoClassPointer<CSpecialAbbreviationSet> apSpnAbbList = new CSpecialAbbreviationSet(g_aSpanishAbbList);
|
|
CAutoClassPointer<CSpecialAbbreviationSet> apItlAbbList = new CSpecialAbbreviationSet(g_aItalianAbbList);
|
|
CAutoClassPointer<CDateFormat> apDateFormat = new CDateFormat;
|
|
CAutoClassPointer<CTimeFormat> apTimeFormat = new CTimeFormat;
|
|
CAutoClassPointer<CSyncCriticalSection> apcsSpanishDictInit = new CSyncCriticalSection;
|
|
|
|
g_pPropArray = apPropArray.Detach();
|
|
g_pClitics = apClitics.Detach();
|
|
|
|
g_pEngAbbList = apEngAbbList.Detach() ;
|
|
g_pFrnAbbList = apFrnAbbList.Detach();
|
|
g_pSpnAbbList = apSpnAbbList.Detach() ;
|
|
g_pItlAbbList = apItlAbbList.Detach() ;
|
|
|
|
g_pDateFormat = apDateFormat.Detach();
|
|
g_pTimeFormat = apTimeFormat.Detach();
|
|
g_apcsSpanishDictInit = apcsSpanishDictInit.Detach();
|
|
}
|
|
|