CIMIContext * CSimplifiedChinesePolicy::createContext() { CIMIContext* pic = new CIMIContext (); pic->setCoreData (&m_coreData); pic->setHistoryMemory (&m_historyCache); pic->setUserDict (&m_userDict); pic->setCharsetLevel (m_csLevel); pic->setFullSymbolForwarding (m_bEnableFullSymbol); pic->setGetFullSymbolOp (&m_getFullSymbolOp); pic->setFullPunctForwarding (m_bEnableFullPunct); pic->setGetFullPunctOp (&m_getFullPunctOp); return pic; }
CIMIContext * CXhSimplifiedChinesePolicy::createContext() { CIMIContext* pic = new CIMIContext(); CInputTrieSource* ipt = new CInputTrieSource(); ipt->setUserDict(&m_userDict); pic->setInputTrieSource(ipt); pic->setCoreData(&m_coreData); pic->setCharsetLevel(m_csLevel); pic->setHistoryMemory(&m_historyCache); CFullCharManager::setFullSymbolForwarding(m_bEnableFullSymbol); CFullCharManager::setGetFullSymbolOp(&m_getFullSymbolOp); CFullCharManager::setFullPunctForwarding(m_bEnableFullPunct); CFullCharManager::setGetFullPunctOp(&m_getFullPunctOp); return pic; }