Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / 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
- ContextMenuStripGroupCollection.cs
- Typography.cs
- PageCatalogPart.cs
- TreeNodeStyle.cs
- TextLine.cs
- PhoneCallDesigner.cs
- IResourceProvider.cs
- AutomationPatternInfo.cs
- PropertyChangingEventArgs.cs
- ScrollChrome.cs
- PropertyItemInternal.cs
- XmlAttributeCollection.cs
- User.cs
- SQLSingle.cs
- UnaryNode.cs
- ProtectedConfigurationSection.cs
- TrackBar.cs
- Cursor.cs
- EntityContainer.cs
- XmlSerializationReader.cs
- IgnoreFileBuildProvider.cs
- SHA384Managed.cs
- AmbientLight.cs
- GridViewPageEventArgs.cs
- Positioning.cs
- InvalidOleVariantTypeException.cs
- StaticExtension.cs
- Soap.cs
- WebBrowserPermission.cs
- AppliedDeviceFiltersEditor.cs
- SoapServerMethod.cs
- CreateRefExpr.cs
- DataGridViewLayoutData.cs
- DefaultAsyncDataDispatcher.cs
- SetIndexBinder.cs
- NavigationCommands.cs
- SchemaInfo.cs
- TypeUnloadedException.cs
- KeyConverter.cs
- CachedTypeface.cs
- FieldInfo.cs
- CheckedListBox.cs
- ProfilePropertyMetadata.cs
- DispatcherProcessingDisabled.cs
- SelectedGridItemChangedEvent.cs
- PointLightBase.cs
- CurrentTimeZone.cs
- PrintPreviewControl.cs
- ExportException.cs
- NestPullup.cs
- DateTimeConstantAttribute.cs
- ToolStripSplitButton.cs
- TraceFilter.cs
- XmlSchemaRedefine.cs
- CodeStatementCollection.cs
- Int32Collection.cs
- CachedTypeface.cs
- SelectionBorderGlyph.cs
- ModifierKeysValueSerializer.cs
- WindowsGraphics.cs
- DbgUtil.cs
- ButtonStandardAdapter.cs
- DataSourceControl.cs
- DataGridViewCellFormattingEventArgs.cs
- FontStretches.cs
- ToolStripItemEventArgs.cs
- SendingRequestEventArgs.cs
- Query.cs
- ListenerChannelContext.cs
- SubpageParagraph.cs
- IncrementalReadDecoders.cs
- GlobalizationSection.cs
- TableLayoutPanelCellPosition.cs
- ListControlBuilder.cs
- GZipObjectSerializer.cs
- HttpCachePolicy.cs
- TimelineGroup.cs
- DataRelation.cs
- DotNetATv1WindowsLogEntrySerializer.cs
- TransformerInfo.cs
- AttributeEmitter.cs
- SqlClientPermission.cs
- Stack.cs
- Highlights.cs
- EventDescriptor.cs
- PaperSize.cs
- reliableinputsessionchannel.cs
- FrameworkReadOnlyPropertyMetadata.cs
- StylusLogic.cs
- DBParameter.cs
- HorizontalAlignConverter.cs
- ControlPropertyNameConverter.cs
- ButtonBaseAdapter.cs
- Run.cs
- DesignerActionItemCollection.cs
- ObjectViewQueryResultData.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- SmtpNtlmAuthenticationModule.cs
- ReadOnlyHierarchicalDataSource.cs
- CollectionViewGroup.cs