Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / 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
- DataGridTableCollection.cs
- Splitter.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- SQLMembershipProvider.cs
- NonSerializedAttribute.cs
- __FastResourceComparer.cs
- UpdateRecord.cs
- HopperCache.cs
- RadioButtonRenderer.cs
- TextTreeRootTextBlock.cs
- EdmItemCollection.cs
- MediaScriptCommandRoutedEventArgs.cs
- XmlDocument.cs
- MultiPageTextView.cs
- DrawingCollection.cs
- ChangePasswordAutoFormat.cs
- XpsSerializationManager.cs
- DownloadProgressEventArgs.cs
- Sql8ExpressionRewriter.cs
- SymmetricKeyWrap.cs
- CodePageUtils.cs
- XmlSchemaValidator.cs
- TabControlDesigner.cs
- FolderLevelBuildProviderCollection.cs
- filewebrequest.cs
- CollectionConverter.cs
- XmlSchemaInclude.cs
- EnvironmentPermission.cs
- Tokenizer.cs
- ClientSettingsStore.cs
- BindingElement.cs
- ClientSettingsSection.cs
- PingOptions.cs
- PropertyChangedEventManager.cs
- DecimalSumAggregationOperator.cs
- x509utils.cs
- BindableTemplateBuilder.cs
- IIS7WorkerRequest.cs
- PolicyManager.cs
- MaterialGroup.cs
- ExpressionReplacer.cs
- TagElement.cs
- DelegatedStream.cs
- TrackingStringDictionary.cs
- cookie.cs
- WeakKeyDictionary.cs
- UnmanagedHandle.cs
- DataServiceHost.cs
- Configuration.cs
- PathFigureCollection.cs
- DataServiceExpressionVisitor.cs
- Tracking.cs
- __Filters.cs
- PropertyPathConverter.cs
- ClientBuildManagerCallback.cs
- StaticSiteMapProvider.cs
- ResourceWriter.cs
- FreezableCollection.cs
- MsmqIntegrationBindingElement.cs
- QilInvokeEarlyBound.cs
- FieldTemplateFactory.cs
- IteratorDescriptor.cs
- StatusBarDrawItemEvent.cs
- MetadataProperty.cs
- DisplayMemberTemplateSelector.cs
- FocusTracker.cs
- OleDbConnection.cs
- DesignBindingPicker.cs
- ContentElementAutomationPeer.cs
- GridViewAutoFormat.cs
- EntityViewContainer.cs
- ComponentCommands.cs
- TypedDataSetSchemaImporterExtension.cs
- EnumerableRowCollectionExtensions.cs
- XmlTypeAttribute.cs
- IntSecurity.cs
- TableAutomationPeer.cs
- TextSelection.cs
- XsdCachingReader.cs
- ActivityFunc.cs
- GraphicsState.cs
- RectangleHotSpot.cs
- BitmapPalettes.cs
- ConfigXmlReader.cs
- HybridCollection.cs
- SqlBulkCopyColumnMapping.cs
- Label.cs
- TextCollapsingProperties.cs
- OperandQuery.cs
- translator.cs
- HelpEvent.cs
- ReachBasicContext.cs
- DataGridViewAdvancedBorderStyle.cs
- WindowsGrip.cs
- ThemeDirectoryCompiler.cs
- MetadataLocation.cs
- CultureMapper.cs
- ScaleTransform3D.cs
- ObjectDataSourceEventArgs.cs
- XsltFunctions.cs