DictGroupPtr CreateDictGroupForConversion() const { DictPtr phrasesDict = CreateDictForPhrases(); DictPtr charactersDict = CreateDictForCharacters(); DictGroupPtr dictGroup( new DictGroup(list<DictPtr>{phrasesDict, charactersDict})); return dictGroup; }
static DictGroupPtr CreateDictGroupForConversion() { DictGroupPtr dictGroup(new DictGroup); DictPtr phrasesDict = CreateDictForPhrases(); DictPtr charactersDict = CreateDictForCharacters(); dictGroup->AddDict(phrasesDict); dictGroup->AddDict(charactersDict); return dictGroup; }