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
- tabpagecollectioneditor.cs
- OpacityConverter.cs
- WebBrowserContainer.cs
- PersonalizationProvider.cs
- LogicalTreeHelper.cs
- SuppressMessageAttribute.cs
- SafeBitVector32.cs
- TextServicesProperty.cs
- DataGridViewColumnCollectionDialog.cs
- SortKey.cs
- GridViewColumnHeader.cs
- ParameterCollection.cs
- ToolboxComponentsCreatedEventArgs.cs
- RectAnimationBase.cs
- MouseButton.cs
- InterleavedZipPartStream.cs
- DynamicVirtualDiscoSearcher.cs
- ColorDialog.cs
- SchemaObjectWriter.cs
- TextElementCollection.cs
- ListBox.cs
- TemplateEditingVerb.cs
- InvokeHandlers.cs
- XmlDataSource.cs
- RetriableClipboard.cs
- PhoneCall.cs
- ClientSettingsSection.cs
- XmlSerializerVersionAttribute.cs
- OleDbMetaDataFactory.cs
- FormsAuthenticationConfiguration.cs
- XmlDomTextWriter.cs
- diagnosticsswitches.cs
- CalloutQueueItem.cs
- NetworkInterface.cs
- Expressions.cs
- SoapUnknownHeader.cs
- ToolboxItemLoader.cs
- LinqToSqlWrapper.cs
- HtmlElement.cs
- DataGrid.cs
- SapiGrammar.cs
- ButtonField.cs
- PersistenceProvider.cs
- FilterEventArgs.cs
- RNGCryptoServiceProvider.cs
- Point3DAnimationBase.cs
- ValidatingCollection.cs
- ReadOnlyHierarchicalDataSourceView.cs
- RegexBoyerMoore.cs
- AutomationFocusChangedEventArgs.cs
- RecordsAffectedEventArgs.cs
- ReverseInheritProperty.cs
- FormConverter.cs
- NotifyInputEventArgs.cs
- DataReceivedEventArgs.cs
- ResourceSetExpression.cs
- XmlnsCache.cs
- GorillaCodec.cs
- MissingMethodException.cs
- ParallelQuery.cs
- SemaphoreFullException.cs
- StandardBindingCollectionElement.cs
- BitmapSizeOptions.cs
- ToolStripProgressBar.cs
- SingleAnimationUsingKeyFrames.cs
- ReversePositionQuery.cs
- LiteralTextContainerControlBuilder.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- ControlUtil.cs
- ActivitySurrogateSelector.cs
- FormClosingEvent.cs
- ObservableDictionary.cs
- XmlDataSource.cs
- SchemaCollectionPreprocessor.cs
- PropertySegmentSerializer.cs
- XsdBuilder.cs
- ConfigurationErrorsException.cs
- EnumMemberAttribute.cs
- MetadataWorkspace.cs
- XmlSchemaChoice.cs
- CompilerErrorCollection.cs
- IgnoreFileBuildProvider.cs
- CountAggregationOperator.cs
- WinFormsSpinner.cs
- ListenDesigner.cs
- Ref.cs
- QueryCoreOp.cs
- ControlsConfig.cs
- SelectionWordBreaker.cs
- FontCollection.cs
- FixedSOMTableRow.cs
- altserialization.cs
- WebConfigurationFileMap.cs
- CurrentChangingEventArgs.cs
- HostedHttpTransportManager.cs
- RayMeshGeometry3DHitTestResult.cs
- JournalEntryStack.cs
- RuleEngine.cs
- XhtmlTextWriter.cs
- BitVec.cs