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
- ScriptReferenceBase.cs
- WindowsFormsSectionHandler.cs
- AncillaryOps.cs
- IsolatedStorage.cs
- GenerateTemporaryTargetAssembly.cs
- ExceptionUtil.cs
- TransformerInfoCollection.cs
- DataGridViewColumnCollectionDialog.cs
- IDispatchConstantAttribute.cs
- DataGridItemAttachedStorage.cs
- InkCanvasSelection.cs
- StrokeIntersection.cs
- ContextMenuService.cs
- RenderingEventArgs.cs
- FlowNode.cs
- SimpleBitVector32.cs
- Row.cs
- SimpleType.cs
- ReaderOutput.cs
- RadioButtonStandardAdapter.cs
- XmlWriterTraceListener.cs
- Expr.cs
- SrgsElementFactoryCompiler.cs
- XmlSchemaRedefine.cs
- ErrorFormatter.cs
- HandleRef.cs
- ViewUtilities.cs
- Token.cs
- RuntimeUtils.cs
- PerfCounterSection.cs
- UpdatePanelControlTrigger.cs
- objectquery_tresulttype.cs
- ReadOnlyCollectionBase.cs
- Ref.cs
- util.cs
- RequestStatusBarUpdateEventArgs.cs
- DataGridViewCellConverter.cs
- Restrictions.cs
- RequestStatusBarUpdateEventArgs.cs
- OptionalColumn.cs
- DesignerAttribute.cs
- _AuthenticationState.cs
- ByteRangeDownloader.cs
- CodeDomComponentSerializationService.cs
- DuplicateWaitObjectException.cs
- ParameterElementCollection.cs
- TextBoxAutomationPeer.cs
- IndentedTextWriter.cs
- Pair.cs
- WebExceptionStatus.cs
- SQLDoubleStorage.cs
- CompilerParameters.cs
- SHA512.cs
- ContextActivityUtils.cs
- DataContract.cs
- ListDictionaryInternal.cs
- PaginationProgressEventArgs.cs
- ReaderContextStackData.cs
- CodeTypeReference.cs
- SystemUnicastIPAddressInformation.cs
- ModuleElement.cs
- SQLBinaryStorage.cs
- SingleTagSectionHandler.cs
- InputLanguageEventArgs.cs
- CompensatableSequenceActivity.cs
- ClipboardProcessor.cs
- _StreamFramer.cs
- __ConsoleStream.cs
- StrongNameSignatureInformation.cs
- HttpHandler.cs
- SettingsAttributes.cs
- RTLAwareMessageBox.cs
- SliderAutomationPeer.cs
- KerberosTicketHashIdentifierClause.cs
- ImageListStreamer.cs
- AppDomainAttributes.cs
- XdrBuilder.cs
- SessionChannels.cs
- ConditionalExpression.cs
- UnsafePeerToPeerMethods.cs
- ProfileService.cs
- Int32Rect.cs
- ImportContext.cs
- FontStretch.cs
- Literal.cs
- CodeEventReferenceExpression.cs
- XmlSchemaComplexType.cs
- ModifierKeysValueSerializer.cs
- IApplicationTrustManager.cs
- Int16Storage.cs
- PeerInputChannelListener.cs
- IndicFontClient.cs
- DynamicDocumentPaginator.cs
- InternalConfigConfigurationFactory.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- WebReferenceOptions.cs
- BaseDataListPage.cs
- TreeView.cs
- ListMarkerLine.cs
- GPRECT.cs