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
- Normalization.cs
- BamlReader.cs
- KnownIds.cs
- TouchEventArgs.cs
- LedgerEntry.cs
- ModelFunction.cs
- SelectionItemPattern.cs
- SystemResources.cs
- QilStrConcatenator.cs
- JsonServiceDocumentSerializer.cs
- MediaElementAutomationPeer.cs
- TypeSystemHelpers.cs
- OleAutBinder.cs
- BezierSegment.cs
- StylusShape.cs
- HttpHostedTransportConfiguration.cs
- UIAgentAsyncParams.cs
- TabRenderer.cs
- FormViewDeleteEventArgs.cs
- DataBinder.cs
- WebEncodingValidator.cs
- DataGridViewComboBoxEditingControl.cs
- ViewStateException.cs
- MessageFilterException.cs
- ConfigurationManager.cs
- XamlFrame.cs
- PropertyValueUIItem.cs
- ControlValuePropertyAttribute.cs
- DataServiceConfiguration.cs
- StateFinalizationDesigner.cs
- DebugView.cs
- PointUtil.cs
- TextRangeProviderWrapper.cs
- ParseChildrenAsPropertiesAttribute.cs
- XmlNavigatorStack.cs
- DoubleConverter.cs
- GeneralTransform3DTo2D.cs
- DataServiceHostFactory.cs
- ToggleButtonAutomationPeer.cs
- BaseUriHelper.cs
- MergeFilterQuery.cs
- ExplicitDiscriminatorMap.cs
- MeasurementDCInfo.cs
- SqlEnums.cs
- TrustLevelCollection.cs
- ImageSource.cs
- UniqueCodeIdentifierScope.cs
- ProvideValueServiceProvider.cs
- EntityKeyElement.cs
- DecimalKeyFrameCollection.cs
- IBuiltInEvidence.cs
- Monitor.cs
- SetterBaseCollection.cs
- Int16.cs
- DbProviderFactory.cs
- EventLogPermission.cs
- SortedList.cs
- BitmapDecoder.cs
- TraceUtils.cs
- XmlAtomicValue.cs
- SecUtil.cs
- TableAutomationPeer.cs
- HiddenFieldPageStatePersister.cs
- EntityConnection.cs
- ExtensibleClassFactory.cs
- InputLanguageSource.cs
- XDRSchema.cs
- XmlValueConverter.cs
- SerializationEventsCache.cs
- UnSafeCharBuffer.cs
- FileDataSourceCache.cs
- MdiWindowListItemConverter.cs
- BindingCompleteEventArgs.cs
- EtwTrace.cs
- OperationResponse.cs
- SqlBuilder.cs
- RangeValuePattern.cs
- PointAnimationClockResource.cs
- EntitySqlQueryCacheEntry.cs
- Control.cs
- MediaTimeline.cs
- HelpHtmlBuilder.cs
- latinshape.cs
- XmlRootAttribute.cs
- Imaging.cs
- CodeMemberEvent.cs
- KnowledgeBase.cs
- StateInitializationDesigner.cs
- ConfigViewGenerator.cs
- ProcessHostConfigUtils.cs
- XmlSerializerImportOptions.cs
- LicenseProviderAttribute.cs
- ObjectQueryState.cs
- SQLMembershipProvider.cs
- AlternateViewCollection.cs
- _HeaderInfo.cs
- Fault.cs
- DependencyPropertyConverter.cs
- LiteralSubsegment.cs
- XmlSchemaSimpleContent.cs