Code:
/ DotNET / DotNET / 8.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DataSourceXmlSubItemAttribute.cs
- StateMachineAction.cs
- ConfigurationException.cs
- SchemaDeclBase.cs
- EndpointPerformanceCounters.cs
- LogSwitch.cs
- CompilerError.cs
- QueryServiceConfigHandle.cs
- TextCollapsingProperties.cs
- ReadContentAsBinaryHelper.cs
- KnownBoxes.cs
- UpdateException.cs
- Decorator.cs
- DataErrorValidationRule.cs
- PinnedBufferMemoryStream.cs
- AuthenticationConfig.cs
- ValidationEventArgs.cs
- FormsAuthenticationTicket.cs
- TreeNodeEventArgs.cs
- UnmanagedMemoryStreamWrapper.cs
- PointAnimationUsingPath.cs
- IChannel.cs
- FormsAuthentication.cs
- BasicAsyncResult.cs
- StdValidatorsAndConverters.cs
- fixedPageContentExtractor.cs
- PageContent.cs
- DataPagerField.cs
- ProcessStartInfo.cs
- HandlerFactoryWrapper.cs
- KeysConverter.cs
- BamlStream.cs
- ShaderEffect.cs
- FlowDocumentPage.cs
- ProxyWebPartManager.cs
- GregorianCalendarHelper.cs
- ProviderSettingsCollection.cs
- ToolTip.cs
- StaticFileHandler.cs
- TableLayoutColumnStyleCollection.cs
- XD.cs
- ConfigXmlAttribute.cs
- ActivationArguments.cs
- HtmlHead.cs
- CurrencyWrapper.cs
- StyleCollectionEditor.cs
- TreeIterators.cs
- EventLogPermissionEntryCollection.cs
- SafeNativeMethods.cs
- MsmqChannelListenerBase.cs
- MouseBinding.cs
- AttributeQuery.cs
- SupportsEventValidationAttribute.cs
- HotSpotCollection.cs
- MarkupCompilePass2.cs
- InvokeMethodDesigner.xaml.cs
- ToolBarButton.cs
- SafeViewOfFileHandle.cs
- OutOfProcStateClientManager.cs
- PointAnimationUsingKeyFrames.cs
- ValidationPropertyAttribute.cs
- RadioButtonFlatAdapter.cs
- FigureParagraph.cs
- SqlFunctions.cs
- Storyboard.cs
- XmlQualifiedName.cs
- DataSysAttribute.cs
- EntityCommandExecutionException.cs
- DataGridViewCellCancelEventArgs.cs
- AnnouncementEventArgs.cs
- XPathChildIterator.cs
- AsyncOperationContext.cs
- XmlDataSourceNodeDescriptor.cs
- FieldDescriptor.cs
- TrackPointCollection.cs
- PartitionerStatic.cs
- InfoCard.cs
- SimpleApplicationHost.cs
- TextRangeEdit.cs
- WebPartChrome.cs
- KeyNotFoundException.cs
- TextEditorParagraphs.cs
- AuthenticatedStream.cs
- EntityDataSourceColumn.cs
- WebDisplayNameAttribute.cs
- DataSourceControl.cs
- ZipPackage.cs
- Light.cs
- FactoryGenerator.cs
- XPathCompileException.cs
- SHA512.cs
- TextDecorationCollection.cs
- NonBatchDirectoryCompiler.cs
- GeneralTransform3DTo2D.cs
- XslCompiledTransform.cs
- CompilerError.cs
- SingleBodyParameterMessageFormatter.cs
- CurrentChangingEventArgs.cs
- ButtonColumn.cs
- RecordsAffectedEventArgs.cs