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
- LineServices.cs
- XmlTextWriter.cs
- AssociationEndMember.cs
- DescriptionAttribute.cs
- AnonymousIdentificationModule.cs
- SqlVersion.cs
- COM2TypeInfoProcessor.cs
- RequestNavigateEventArgs.cs
- ReaderContextStackData.cs
- GACIdentityPermission.cs
- DurationConverter.cs
- ChangeDirector.cs
- ChildDocumentBlock.cs
- ImageField.cs
- SqlServer2KCompatibilityAnnotation.cs
- MonitoringDescriptionAttribute.cs
- UInt16.cs
- DataBoundControlActionList.cs
- DataFormat.cs
- DataGridItemEventArgs.cs
- ControlEvent.cs
- DataSvcMapFile.cs
- JoinCqlBlock.cs
- PropertyPath.cs
- OdbcParameter.cs
- ObjectDataSourceView.cs
- TableCell.cs
- GridViewCancelEditEventArgs.cs
- DateTimePicker.cs
- ADMembershipProvider.cs
- InfoCardProofToken.cs
- SearchForVirtualItemEventArgs.cs
- AccessViolationException.cs
- Point.cs
- ClassicBorderDecorator.cs
- RawUIStateInputReport.cs
- ConnectionStringsSection.cs
- DropDownHolder.cs
- DrawListViewItemEventArgs.cs
- WsiProfilesElement.cs
- XmlDataDocument.cs
- ChtmlImageAdapter.cs
- CounterCreationData.cs
- BatchParser.cs
- SharedPerformanceCounter.cs
- TextElementCollection.cs
- SynchronousReceiveElement.cs
- XmlElement.cs
- CustomValidator.cs
- ProxyElement.cs
- SqlMethodAttribute.cs
- HttpBufferlessInputStream.cs
- HashHelper.cs
- ParentQuery.cs
- UniqueConstraint.cs
- EncryptedType.cs
- PositiveTimeSpanValidatorAttribute.cs
- CachedCompositeFamily.cs
- FormViewCommandEventArgs.cs
- WaitHandleCannotBeOpenedException.cs
- XhtmlTextWriter.cs
- TextParaLineResult.cs
- DefaultEventAttribute.cs
- NavigationPropertyEmitter.cs
- StringAnimationBase.cs
- ControllableStoryboardAction.cs
- DBCommand.cs
- XmlWriter.cs
- DataException.cs
- WebScriptEndpoint.cs
- DataGridViewButtonCell.cs
- Menu.cs
- TextControl.cs
- SequenceDesigner.cs
- DocumentPageView.cs
- RangeExpression.cs
- FullTextLine.cs
- DataGridViewButtonColumn.cs
- UnionQueryOperator.cs
- WSTransactionSection.cs
- ProgressBar.cs
- EventToken.cs
- FilterableAttribute.cs
- WpfSharedXamlSchemaContext.cs
- DbMetaDataColumnNames.cs
- MaskedTextProvider.cs
- Grammar.cs
- AppSettingsReader.cs
- NumberSubstitution.cs
- TimeEnumHelper.cs
- ExtensionFile.cs
- CodeIdentifiers.cs
- X509CertificateCollection.cs
- SerialStream.cs
- GeometryDrawing.cs
- MobileSysDescriptionAttribute.cs
- DelegatingHeader.cs
- MediaEntryAttribute.cs
- XmlSchemaComplexContentRestriction.cs
- RepeaterItemCollection.cs