类 GrammarPhrase

表示用户可能说出的短语。 在版本 1.5.0 中添加。

成员

GrammarPhrase

语法:public inline explicit GrammarPhrase ( SPXPHRASEHANDLE hphrase );

内部构造函数。 使用提供的句柄创建新实例。

参数

  • hphrase 语法短语句柄。

~GrammarPhrase

语法:public inline virtual ~GrammarPhrase ( );

虚拟析构函数。

运算符 SPXPHRASEHANDLE

语法:public inline explicit operator SPXPHRASEHANDLE ( );

内部。 显式转换运算符。

退货

句柄。

来自

语法:public inline static std::shared_ptr< GrammarPhrase > From ( const std::string & text );

使用指定的短语文本创建语法短语。

参数

  • text 表示用户可能说出的短语的文本。

退货

指向语法短语的共享指针。