Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Speech / Src / Internal / SrgsCompiler / SemanticTag.cs / 1 / SemanticTag.cs
//------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------- using System; using System.Runtime.InteropServices; using System.Speech.Internal.SrgsParser; namespace System.Speech.Internal.SrgsCompiler { ////// Summary description for Rule. /// internal sealed class SemanticTag : ParseElement, ISemanticTag { //******************************************************************* // // Constructors // //******************************************************************* #region Constructors internal SemanticTag (ParseElement parent, Backend backend) : base (parent._rule) { } #endregion //******************************************************************** // // Internal Methods // //******************************************************************* #region Internal Methods /// TODOC <_include file='doc\Tag.uex' path='docs/doc[@for="Tag.RepeatProbability"]/*' /> // The probability that this item will be repeated. void ISemanticTag.Content (IElement parentElement, string sTag, int iLine) { //Return if the Tag content is empty sTag = sTag.Trim (Helpers._achTrimChars); if (string.IsNullOrEmpty (sTag)) { return; } // Build semantic properties to attach to epsilon transition. //script _propInfo._ulId = (uint) iLine; _propInfo._comValue = sTag; ParseElementCollection parent = (ParseElementCollection) parentElement; // Attach the semantic properties on the parent element. parent.AddSemanticInterpretationTag (_propInfo); } #endregion //******************************************************************** // // Private Fields // //******************************************************************** #region Private Fields private CfgGrammar.CfgProperty _propInfo = new CfgGrammar.CfgProperty (); #endregion } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------- using System; using System.Runtime.InteropServices; using System.Speech.Internal.SrgsParser; namespace System.Speech.Internal.SrgsCompiler { ////// Summary description for Rule. /// internal sealed class SemanticTag : ParseElement, ISemanticTag { //******************************************************************* // // Constructors // //******************************************************************* #region Constructors internal SemanticTag (ParseElement parent, Backend backend) : base (parent._rule) { } #endregion //******************************************************************** // // Internal Methods // //******************************************************************* #region Internal Methods /// TODOC <_include file='doc\Tag.uex' path='docs/doc[@for="Tag.RepeatProbability"]/*' /> // The probability that this item will be repeated. void ISemanticTag.Content (IElement parentElement, string sTag, int iLine) { //Return if the Tag content is empty sTag = sTag.Trim (Helpers._achTrimChars); if (string.IsNullOrEmpty (sTag)) { return; } // Build semantic properties to attach to epsilon transition. //script _propInfo._ulId = (uint) iLine; _propInfo._comValue = sTag; ParseElementCollection parent = (ParseElementCollection) parentElement; // Attach the semantic properties on the parent element. parent.AddSemanticInterpretationTag (_propInfo); } #endregion //******************************************************************** // // Private Fields // //******************************************************************** #region Private Fields private CfgGrammar.CfgProperty _propInfo = new CfgGrammar.CfgProperty (); #endregion } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SqlUtils.cs
- NamespaceList.cs
- IdentityHolder.cs
- WebServiceErrorEvent.cs
- UdpRetransmissionSettings.cs
- TextTreeFixupNode.cs
- DataGridViewCellStyle.cs
- MarkupExtensionReturnTypeAttribute.cs
- HttpResponseWrapper.cs
- ActivityDesignerAccessibleObject.cs
- TransportSecurityProtocol.cs
- GB18030Encoding.cs
- ScrollItemPatternIdentifiers.cs
- Unit.cs
- TextEditorDragDrop.cs
- ListControl.cs
- XamlClipboardData.cs
- ChangeBlockUndoRecord.cs
- RuleAction.cs
- RoutingUtilities.cs
- PartialCachingAttribute.cs
- DbModificationCommandTree.cs
- AttributeData.cs
- CanonicalXml.cs
- SymmetricCryptoHandle.cs
- DataView.cs
- ArglessEventHandlerProxy.cs
- SoapFault.cs
- EntityContainerEntitySet.cs
- XslException.cs
- BaseUriHelper.cs
- OLEDB_Util.cs
- XsdCachingReader.cs
- AppDomainProtocolHandler.cs
- ThrowHelper.cs
- AsnEncodedData.cs
- QualifiedCellIdBoolean.cs
- EtwProvider.cs
- OdbcConnectionHandle.cs
- SQLSingle.cs
- Util.cs
- ResourcePermissionBase.cs
- HttpPostedFileBase.cs
- StylusPointDescription.cs
- ToolStripButton.cs
- ToolBarOverflowPanel.cs
- ExpandCollapsePattern.cs
- ListContractAdapter.cs
- LocatorPart.cs
- ServiceModelStringsVersion1.cs
- DataGridViewColumnStateChangedEventArgs.cs
- CodeConstructor.cs
- TextTreeInsertUndoUnit.cs
- PolicyVersion.cs
- HtmlWindowCollection.cs
- OletxEnlistment.cs
- Opcode.cs
- ScrollEvent.cs
- ZipIOCentralDirectoryFileHeader.cs
- RichTextBoxConstants.cs
- HwndHost.cs
- SafeNativeMethods.cs
- OracleRowUpdatingEventArgs.cs
- OleDbCommandBuilder.cs
- CultureTable.cs
- CompilerResults.cs
- Converter.cs
- HiddenField.cs
- OracleCommandSet.cs
- SqlEnums.cs
- OleDbException.cs
- SmiEventStream.cs
- RawStylusInputCustomDataList.cs
- ZipIOCentralDirectoryFileHeader.cs
- XmlSchemaComplexContentExtension.cs
- WeakEventManager.cs
- StreamGeometry.cs
- ReadOnlyDataSourceView.cs
- SerialPinChanges.cs
- WindowsPrincipal.cs
- InvalidEnumArgumentException.cs
- NonClientArea.cs
- AttachedPropertyDescriptor.cs
- HasCopySemanticsAttribute.cs
- CharacterBufferReference.cs
- MILUtilities.cs
- SingleStorage.cs
- DataStorage.cs
- MsmqReceiveHelper.cs
- SqlFunctionAttribute.cs
- HtmlGenericControl.cs
- OptimizedTemplateContent.cs
- EntityCommandExecutionException.cs
- MetaTable.cs
- Constant.cs
- ResXResourceWriter.cs
- FlowDocumentPage.cs
- ContentTextAutomationPeer.cs
- TextDataBindingHandler.cs
- __Error.cs