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
- DbExpressionRules.cs
- HttpListenerRequest.cs
- SyndicationElementExtension.cs
- OleDbError.cs
- DbConnectionPool.cs
- DesignerVerbCollection.cs
- CloseCryptoHandleRequest.cs
- PageVisual.cs
- CharacterMetrics.cs
- AuthenticationModuleElementCollection.cs
- GeometryDrawing.cs
- AffineTransform3D.cs
- ChangePasswordAutoFormat.cs
- AsyncCompletedEventArgs.cs
- SQLDateTimeStorage.cs
- XmlDataImplementation.cs
- CachingHintValidation.cs
- XsltCompileContext.cs
- RenderingEventArgs.cs
- FixedNode.cs
- ImageListStreamer.cs
- FunctionMappingTranslator.cs
- BinaryReader.cs
- KernelTypeValidation.cs
- PassportAuthenticationEventArgs.cs
- SiteMembershipCondition.cs
- DefaultWorkflowSchedulerService.cs
- VisualStateChangedEventArgs.cs
- DataMisalignedException.cs
- SafeUserTokenHandle.cs
- Point.cs
- ProcessMessagesAsyncResult.cs
- MetadataCache.cs
- ResourceAssociationType.cs
- UnmanagedBitmapWrapper.cs
- FusionWrap.cs
- HtmlInputRadioButton.cs
- WebPartActionVerb.cs
- XmlSchemaInclude.cs
- safex509handles.cs
- JsonObjectDataContract.cs
- DrawingServices.cs
- UrlPath.cs
- ExeContext.cs
- FontStretchConverter.cs
- ZipIOCentralDirectoryFileHeader.cs
- FilterQuery.cs
- XmlCustomFormatter.cs
- ProfileSettings.cs
- FileDialog_Vista.cs
- AssociationSetEnd.cs
- XsltContext.cs
- MenuItemStyleCollection.cs
- FileEnumerator.cs
- AccessDataSource.cs
- ExpandedWrapper.cs
- ListBindingConverter.cs
- DynamicDataRoute.cs
- SmtpMail.cs
- SourceFileBuildProvider.cs
- GetResponse.cs
- SymbolEqualComparer.cs
- HttpWriter.cs
- ByteStorage.cs
- ScriptResourceAttribute.cs
- NamespaceDecl.cs
- ConfigXmlComment.cs
- XmlProcessingInstruction.cs
- FakeModelPropertyImpl.cs
- InvokeProviderWrapper.cs
- COM2PropertyDescriptor.cs
- WinEventQueueItem.cs
- WorkerRequest.cs
- DataGridViewCellParsingEventArgs.cs
- AutoCompleteStringCollection.cs
- SoapFault.cs
- AnimationLayer.cs
- ColorContext.cs
- ExtendedPropertiesHandler.cs
- DtdParser.cs
- Rethrow.cs
- rsa.cs
- UnknownWrapper.cs
- ProviderUtil.cs
- Logging.cs
- SqlUdtInfo.cs
- DateTimeConstantAttribute.cs
- ActivationServices.cs
- BinHexEncoder.cs
- ProcessModuleCollection.cs
- WindowsFont.cs
- SmtpFailedRecipientException.cs
- XmlNamespaceMapping.cs
- CultureMapper.cs
- GridViewRowPresenterBase.cs
- NumericUpDown.cs
- XmlObjectSerializer.cs
- Win32SafeHandles.cs
- SoapMessage.cs
- TimeSpanValidatorAttribute.cs