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
- ClientBuildManagerCallback.cs
- SafeUserTokenHandle.cs
- Debug.cs
- IODescriptionAttribute.cs
- ReaderWriterLockWrapper.cs
- SatelliteContractVersionAttribute.cs
- Token.cs
- DescendantOverDescendantQuery.cs
- Visual3DCollection.cs
- SendOperation.cs
- HelpInfo.cs
- CqlWriter.cs
- TaskFormBase.cs
- VarRefManager.cs
- RefreshPropertiesAttribute.cs
- InternalResources.cs
- XhtmlBasicLabelAdapter.cs
- ContentDisposition.cs
- HandlerElement.cs
- WebEventTraceProvider.cs
- CutCopyPasteHelper.cs
- SHA384Managed.cs
- StorageComplexPropertyMapping.cs
- DbConnectionClosed.cs
- ZipIOModeEnforcingStream.cs
- ErrorReporting.cs
- InlineObject.cs
- ToolStripControlHost.cs
- MenuBase.cs
- MgmtConfigurationRecord.cs
- TraceUtils.cs
- AutomationEventArgs.cs
- EmptyCollection.cs
- CompressedStack.cs
- SocketException.cs
- RotateTransform.cs
- DataException.cs
- StreamProxy.cs
- UserControl.cs
- HashHelper.cs
- TextServicesManager.cs
- ArrayConverter.cs
- InputEventArgs.cs
- ListSortDescription.cs
- EntityClientCacheKey.cs
- XmlSchemaAttribute.cs
- HelpProvider.cs
- Invariant.cs
- TraceHandler.cs
- HtmlElementErrorEventArgs.cs
- MemoryPressure.cs
- XmlSchemaInfo.cs
- SevenBitStream.cs
- ObjectAssociationEndMapping.cs
- MarkupWriter.cs
- ChildDocumentBlock.cs
- streamingZipPartStream.cs
- HttpConfigurationSystem.cs
- CompilerError.cs
- TdsParserSafeHandles.cs
- StorageRoot.cs
- DelegatingConfigHost.cs
- Site.cs
- invalidudtexception.cs
- PreProcessor.cs
- Unit.cs
- ConnectionManagementElementCollection.cs
- CqlLexerHelpers.cs
- TextElementAutomationPeer.cs
- SafeLocalAllocation.cs
- AddressHeader.cs
- CatalogZoneDesigner.cs
- UnsafeNetInfoNativeMethods.cs
- PixelShader.cs
- NamespaceInfo.cs
- DbException.cs
- ZipIOModeEnforcingStream.cs
- GuidelineCollection.cs
- HttpException.cs
- HandleInitializationContext.cs
- LoginNameDesigner.cs
- ICollection.cs
- GACMembershipCondition.cs
- MarkedHighlightComponent.cs
- ConditionalAttribute.cs
- SplitterEvent.cs
- ModuleBuilderData.cs
- HttpListenerContext.cs
- PropertyGridEditorPart.cs
- ClientProtocol.cs
- DbTransaction.cs
- Exception.cs
- DataGridViewControlCollection.cs
- NumericUpDown.cs
- BitmapMetadataEnumerator.cs
- ActivityTypeResolver.xaml.cs
- StrokeDescriptor.cs
- RuntimeWrappedException.cs
- PkcsMisc.cs
- MarkupExtensionReturnTypeAttribute.cs