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
- DecoratedNameAttribute.cs
- RegexCompilationInfo.cs
- HierarchicalDataSourceDesigner.cs
- ObjectRef.cs
- MailMessage.cs
- RepeaterItemCollection.cs
- RenderTargetBitmap.cs
- DataViewManager.cs
- VideoDrawing.cs
- ComplexBindingPropertiesAttribute.cs
- _Events.cs
- CoreSwitches.cs
- InputBuffer.cs
- XDeferredAxisSource.cs
- Message.cs
- Clause.cs
- SizeAnimationBase.cs
- KeySpline.cs
- AnimatedTypeHelpers.cs
- DataSvcMapFileSerializer.cs
- SqlError.cs
- ColorDialog.cs
- DataView.cs
- IisTraceListener.cs
- TextSelection.cs
- SendActivityDesignerTheme.cs
- Switch.cs
- TextChangedEventArgs.cs
- MultilineStringConverter.cs
- ToolboxItem.cs
- GCHandleCookieTable.cs
- GeometryHitTestResult.cs
- HttpRuntime.cs
- FileDetails.cs
- SQLDateTimeStorage.cs
- returneventsaver.cs
- TokenizerHelper.cs
- FrameworkTextComposition.cs
- KnownTypeDataContractResolver.cs
- ProfilePropertySettingsCollection.cs
- ProviderConnectionPoint.cs
- Formatter.cs
- Unit.cs
- keycontainerpermission.cs
- StringInfo.cs
- SqlConnection.cs
- HttpProfileBase.cs
- FrameworkElementAutomationPeer.cs
- QilInvoke.cs
- SqlServices.cs
- SafePEFileHandle.cs
- InterleavedZipPartStream.cs
- BinaryUtilClasses.cs
- NativeObjectSecurity.cs
- CompilationPass2TaskInternal.cs
- DataGridViewCellStyle.cs
- StorageComplexTypeMapping.cs
- LayoutInformation.cs
- ActivityDesignerAccessibleObject.cs
- SqlNotificationEventArgs.cs
- LZCodec.cs
- WebConfigurationManager.cs
- AppDomainInstanceProvider.cs
- BooleanStorage.cs
- XmlMtomReader.cs
- DataTableMapping.cs
- SHA1Managed.cs
- StorageTypeMapping.cs
- Range.cs
- x509utils.cs
- UpdatePanelTriggerCollection.cs
- DefaultParameterValueAttribute.cs
- COM2EnumConverter.cs
- WorkflowExecutor.cs
- SelectionGlyph.cs
- TextServicesContext.cs
- WsdlBuildProvider.cs
- MdImport.cs
- Animatable.cs
- Int32Collection.cs
- DataSourceProvider.cs
- GenerateHelper.cs
- ListItemsCollectionEditor.cs
- updateconfighost.cs
- HtmlFormWrapper.cs
- CommandField.cs
- MetadataArtifactLoader.cs
- InputScopeNameConverter.cs
- SerTrace.cs
- ContextActivityUtils.cs
- SchemaEntity.cs
- latinshape.cs
- VoiceObjectToken.cs
- ConstraintCollection.cs
- ProfilePropertySettings.cs
- StringComparer.cs
- FreezableOperations.cs
- WindowsFormsHelpers.cs
- TogglePatternIdentifiers.cs
- DataGridViewSelectedCellsAccessibleObject.cs