C# Class Studyzy.LearnEnglishBySubtitle.EngDict.DictionaryService

Mostrar archivo Open project: studyzy/LearnEnglishBySubtitle Class Usage Examples

Protected Properties

Property Type Description
engDictionary EngDictionary>.IDictionary
ld2Parse LingoesLd2
wordProperties string[]>.IDictionary

Public Methods

Method Description
DictionaryService ( ) : System
GetChineseMeanInDict ( string word ) : EngDictionary
GetCoreMeans ( string xml ) : IList

传入XML格式的词语解释,返回其核心解释

GetWordProperties ( string word ) : string[]

获得一个单词的词性

IsInDictionary ( string word ) : bool

字典中是否有这个词

IsInDictionary ( string word, string property ) : bool

Protected Methods

Method Description
GetPhoneticSymbols ( string xml ) : string

Method Details

DictionaryService() public method

public DictionaryService ( ) : System
return System

GetChineseMeanInDict() public method

public GetChineseMeanInDict ( string word ) : EngDictionary
word string
return EngDictionary

GetCoreMeans() public abstract method

传入XML格式的词语解释,返回其核心解释
public abstract GetCoreMeans ( string xml ) : IList
xml string
return IList

GetPhoneticSymbols() protected method

protected GetPhoneticSymbols ( string xml ) : string
xml string
return string

GetWordProperties() public method

获得一个单词的词性
public GetWordProperties ( string word ) : string[]
word string
return string[]

IsInDictionary() public method

字典中是否有这个词
public IsInDictionary ( string word ) : bool
word string
return bool

IsInDictionary() public method

public IsInDictionary ( string word, string property ) : bool
word string
property string
return bool

Property Details

engDictionary protected_oe static_oe property

单词作为Key(区分大小写),意思作为Value的内存字典
protected static IDictionary engDictionary
return EngDictionary>.IDictionary

ld2Parse protected_oe property

protected LingoesLd2,Studyzy.LearnEnglishBySubtitle.EngDict ld2Parse
return LingoesLd2

wordProperties protected_oe static_oe property

protected static IDictionary wordProperties
return string[]>.IDictionary