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 / Subset.cs / 1 / Subset.cs
//------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------- #region Using directives using System; using System.Speech.Internal.SrgsParser; #endregion namespace System.Speech.Internal.SrgsCompiler { internal class Subset : ParseElement, ISubset { //******************************************************************* // // Constructors // //******************************************************************* #region Constructors ////// Process the 'subset' element. /// /// /// /// /// public Subset (ParseElementCollection parent, Backend backend, string text, MatchMode mode) : base (parent._rule) { // replace tab, cr, lf with spaces foreach (char ch in Helpers._achTrimChars) { if (ch == ' ') { continue; } if (text.IndexOf (ch) >= 0) { text = text.Replace (ch, ' '); } } // Add transition to the new state with normalized token. parent.AddArc (backend.SubsetTransition (text, mode)); } #endregion //******************************************************************** // // Internal Method // //******************************************************************* #region Intenal Method ////// /// void IElement.PostParse (IElement parentElement) { } #endregion } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------- #region Using directives using System; using System.Speech.Internal.SrgsParser; #endregion namespace System.Speech.Internal.SrgsCompiler { internal class Subset : ParseElement, ISubset { //******************************************************************* // // Constructors // //******************************************************************* #region Constructors ////// Process the 'subset' element. /// /// /// /// /// public Subset (ParseElementCollection parent, Backend backend, string text, MatchMode mode) : base (parent._rule) { // replace tab, cr, lf with spaces foreach (char ch in Helpers._achTrimChars) { if (ch == ' ') { continue; } if (text.IndexOf (ch) >= 0) { text = text.Replace (ch, ' '); } } // Add transition to the new state with normalized token. parent.AddArc (backend.SubsetTransition (text, mode)); } #endregion //******************************************************************** // // Internal Method // //******************************************************************* #region Intenal Method ////// /// void IElement.PostParse (IElement parentElement) { } #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
- ListViewDeleteEventArgs.cs
- shaperfactoryquerycacheentry.cs
- Rotation3DAnimationBase.cs
- SessionEndedEventArgs.cs
- ThousandthOfEmRealDoubles.cs
- WindowsImpersonationContext.cs
- SqlDataSourceCache.cs
- SafeThemeHandle.cs
- FrameworkTextComposition.cs
- ErrorTableItemStyle.cs
- ByteFacetDescriptionElement.cs
- WebPartMenuStyle.cs
- ManipulationDelta.cs
- Single.cs
- AttachedPropertyDescriptor.cs
- TemplateComponentConnector.cs
- RewritingProcessor.cs
- XmlCountingReader.cs
- isolationinterop.cs
- SmtpReplyReaderFactory.cs
- sqlinternaltransaction.cs
- SRef.cs
- XPathDocumentIterator.cs
- SubstitutionDesigner.cs
- TreeNodeClickEventArgs.cs
- DataGridViewColumnHeaderCell.cs
- Run.cs
- DbProviderConfigurationHandler.cs
- BulletedListEventArgs.cs
- InplaceBitmapMetadataWriter.cs
- RenderTargetBitmap.cs
- WebPartTracker.cs
- Glyph.cs
- SqlIdentifier.cs
- UTF32Encoding.cs
- CreateUserWizardStep.cs
- DateTimeFormatInfo.cs
- ActivityDesignerLayoutSerializers.cs
- CalendarDayButton.cs
- WebPartMenu.cs
- HierarchicalDataSourceConverter.cs
- DataGridViewHitTestInfo.cs
- parserscommon.cs
- SqlDesignerDataSourceView.cs
- OdbcConnectionHandle.cs
- DeviceOverridableAttribute.cs
- EdmComplexPropertyAttribute.cs
- DataSourceControlBuilder.cs
- EventMappingSettings.cs
- AttributeCollection.cs
- WorkflowMarkupElementEventArgs.cs
- BuildProviderAppliesToAttribute.cs
- mediaeventargs.cs
- BitmapEffectvisualstate.cs
- TrustManagerPromptUI.cs
- WebPartVerbsEventArgs.cs
- AccessDataSourceView.cs
- MethodBuilder.cs
- QilGeneratorEnv.cs
- SignerInfo.cs
- NetPeerTcpBindingCollectionElement.cs
- OciEnlistContext.cs
- References.cs
- Image.cs
- ColumnMapTranslator.cs
- ByteAnimationBase.cs
- Comparer.cs
- OdbcCommandBuilder.cs
- MouseOverProperty.cs
- LogLogRecord.cs
- ReachFixedPageSerializer.cs
- CodeTypeParameterCollection.cs
- Blend.cs
- MemberProjectionIndex.cs
- FileChangesMonitor.cs
- ZipIOExtraFieldZip64Element.cs
- SqlDataSourceConnectionPanel.cs
- StandardRuntimeEnumValidator.cs
- SafeNativeMethods.cs
- HandlerFactoryCache.cs
- ClosableStream.cs
- FontDialog.cs
- ConnectionPoolManager.cs
- ProfilePropertyMetadata.cs
- XmlTypeMapping.cs
- Win32PrintDialog.cs
- View.cs
- CancelEventArgs.cs
- Evaluator.cs
- XPathDocumentBuilder.cs
- WebPartDescription.cs
- UnsafeNativeMethods.cs
- MemberMaps.cs
- SqlDataSourceCache.cs
- MenuItemBindingCollection.cs
- MarkupWriter.cs
- DependencyObjectType.cs
- _StreamFramer.cs
- DataSourceXmlSerializationAttribute.cs
- UnmanagedMemoryStreamWrapper.cs