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
- XamlTreeBuilderBamlRecordWriter.cs
- TextChangedEventArgs.cs
- ObjectSelectorEditor.cs
- ExeConfigurationFileMap.cs
- DeviceContexts.cs
- RequestNavigateEventArgs.cs
- CodeDelegateCreateExpression.cs
- ProfileService.cs
- OdbcDataReader.cs
- StylusTip.cs
- RegexCompiler.cs
- _Win32.cs
- ResolveNameEventArgs.cs
- ServiceEndpointCollection.cs
- DbConnectionClosed.cs
- Operand.cs
- LocalClientSecuritySettingsElement.cs
- NullableFloatAverageAggregationOperator.cs
- Query.cs
- FormsAuthenticationModule.cs
- ThumbAutomationPeer.cs
- PackageProperties.cs
- WorkerProcess.cs
- StorageFunctionMapping.cs
- SqlDataRecord.cs
- UrlMappingCollection.cs
- WebHttpBindingCollectionElement.cs
- ISAPIWorkerRequest.cs
- ImageAnimator.cs
- SafeNativeMethods.cs
- CollectionsUtil.cs
- AppDomainFactory.cs
- DbCommandDefinition.cs
- ChangeDirector.cs
- DataListItemEventArgs.cs
- OracleMonthSpan.cs
- QueueProcessor.cs
- TextSpan.cs
- OLEDB_Enum.cs
- LabelLiteral.cs
- TimelineCollection.cs
- ThreadNeutralSemaphore.cs
- SchemaElementLookUpTableEnumerator.cs
- BoundsDrawingContextWalker.cs
- ElementsClipboardData.cs
- ControlValuePropertyAttribute.cs
- List.cs
- ThrowOnMultipleAssignment.cs
- ProcessRequestArgs.cs
- BaseCodeDomTreeGenerator.cs
- IndexedEnumerable.cs
- ColorConverter.cs
- DebuggerService.cs
- ReferenceService.cs
- IndexedSelectQueryOperator.cs
- OptionUsage.cs
- WebPartHelpVerb.cs
- TailCallAnalyzer.cs
- XpsException.cs
- updateconfighost.cs
- PointHitTestParameters.cs
- XPathNodePointer.cs
- SortedSetDebugView.cs
- XmlSchemaSimpleTypeUnion.cs
- IResourceProvider.cs
- PKCS1MaskGenerationMethod.cs
- StrictAndMessageFilter.cs
- DynamicDiscoveryDocument.cs
- TraceContextRecord.cs
- FixedSOMFixedBlock.cs
- VectorCollectionValueSerializer.cs
- UIElement3D.cs
- ComboBoxAutomationPeer.cs
- SafeNativeMethodsCLR.cs
- RepeaterItem.cs
- AnimationClock.cs
- Span.cs
- OperandQuery.cs
- FunctionQuery.cs
- WebPartConnectionCollection.cs
- NameGenerator.cs
- ThemeInfoAttribute.cs
- InputReferenceExpression.cs
- TypeConverterBase.cs
- UrlMappingCollection.cs
- Environment.cs
- StateMachineWorkflowInstance.cs
- ImageButton.cs
- ServiceModelActivity.cs
- GridViewUpdateEventArgs.cs
- DeferrableContentConverter.cs
- BindingBase.cs
- InfoCardProofToken.cs
- RoleService.cs
- WebBrowserNavigatingEventHandler.cs
- SoapObjectReader.cs
- Pkcs7Signer.cs
- TextDocumentView.cs
- ConstrainedDataObject.cs
- CodeAccessSecurityEngine.cs