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
- Speller.cs
- ContextMenuAutomationPeer.cs
- CollectionView.cs
- DrawingServices.cs
- Tile.cs
- InvalidCastException.cs
- Misc.cs
- OpCopier.cs
- WebPartTransformer.cs
- PagesSection.cs
- VisualStateChangedEventArgs.cs
- CalendarDesigner.cs
- WebHttpSecurity.cs
- HtmlInputReset.cs
- TextTreeInsertElementUndoUnit.cs
- SemaphoreSlim.cs
- ScalarType.cs
- WebBrowserNavigatedEventHandler.cs
- DecimalFormatter.cs
- DataMisalignedException.cs
- TextModifierScope.cs
- _DisconnectOverlappedAsyncResult.cs
- ArrayList.cs
- PropertyMap.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- SoapCodeExporter.cs
- PlatformCulture.cs
- UpdateRecord.cs
- KnownTypesProvider.cs
- ArcSegment.cs
- LoadMessageLogger.cs
- EventMap.cs
- mongolianshape.cs
- AstTree.cs
- QueryConverter.cs
- FunctionDetailsReader.cs
- DataGridViewDesigner.cs
- PolicyManager.cs
- StartUpEventArgs.cs
- AccessDataSource.cs
- IdentityManager.cs
- ValidateNames.cs
- SoapBinding.cs
- RepeatBehaviorConverter.cs
- DiscreteKeyFrames.cs
- ResourceReferenceExpressionConverter.cs
- NGCSerializationManager.cs
- ContainerFilterService.cs
- TimeZone.cs
- PreviewKeyDownEventArgs.cs
- WebServiceReceiveDesigner.cs
- DockPattern.cs
- ProviderSettings.cs
- RequestBringIntoViewEventArgs.cs
- PreviewPageInfo.cs
- Trace.cs
- GeometryHitTestResult.cs
- EntryPointNotFoundException.cs
- HttpFileCollection.cs
- SafeFileMappingHandle.cs
- EntityCollectionChangedParams.cs
- DefaultPrintController.cs
- _Rfc2616CacheValidators.cs
- ObsoleteAttribute.cs
- NamespaceMapping.cs
- XmlName.cs
- MenuItemStyleCollection.cs
- EndpointAddress10.cs
- SchemaImporterExtensionElementCollection.cs
- ThreadAttributes.cs
- RelationshipFixer.cs
- NativeCppClassAttribute.cs
- Token.cs
- StdValidatorsAndConverters.cs
- PartialTrustVisibleAssemblyCollection.cs
- PointHitTestParameters.cs
- BitmapCodecInfo.cs
- HwndStylusInputProvider.cs
- XmlNodeReader.cs
- SessionStateModule.cs
- WebBrowserSiteBase.cs
- EntityTypeEmitter.cs
- ListViewCancelEventArgs.cs
- DbException.cs
- TextEditorTables.cs
- Freezable.cs
- TypeForwardedToAttribute.cs
- CommonDialog.cs
- TabRenderer.cs
- UpdateTranslator.cs
- LinkTarget.cs
- DataServiceStreamResponse.cs
- NamespaceExpr.cs
- Pts.cs
- StringConcat.cs
- LinkButton.cs
- MessageSecurityOverMsmqElement.cs
- ResourceContainer.cs
- ReferencedAssembly.cs
- ProxyWebPartManager.cs