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
- Compiler.cs
- SqlConnectionFactory.cs
- DispatcherTimer.cs
- UnionCodeGroup.cs
- DesignerMetadata.cs
- Delegate.cs
- Guid.cs
- Animatable.cs
- ControlPropertyNameConverter.cs
- ConfigurationFileMap.cs
- RolePrincipal.cs
- KnownTypes.cs
- BaseResourcesBuildProvider.cs
- StrongNameUtility.cs
- SByteConverter.cs
- ObjectItemCollection.cs
- WmlImageAdapter.cs
- ActivityCodeDomReferenceService.cs
- UnsafeNetInfoNativeMethods.cs
- HttpAsyncResult.cs
- Schedule.cs
- XsltOutput.cs
- Canvas.cs
- ViewManager.cs
- SecurityManager.cs
- SHA512CryptoServiceProvider.cs
- BamlResourceSerializer.cs
- SqlDataRecord.cs
- PageThemeBuildProvider.cs
- AnnouncementEndpoint.cs
- ToolStripOverflow.cs
- Asn1IntegerConverter.cs
- WindowsTooltip.cs
- Mappings.cs
- DataKey.cs
- ArrayList.cs
- EventLogPermissionEntry.cs
- UrlMappingCollection.cs
- InvalidWMPVersionException.cs
- MultiPageTextView.cs
- TextEditorCharacters.cs
- ObjectToModelValueConverter.cs
- XamlTemplateSerializer.cs
- WorkflowServiceInstance.cs
- EntityContainerEmitter.cs
- HelpEvent.cs
- ConfigurationLockCollection.cs
- DeobfuscatingStream.cs
- FactoryRecord.cs
- MembershipUser.cs
- DynamicILGenerator.cs
- SpotLight.cs
- DataGridRow.cs
- MetadataItemCollectionFactory.cs
- _UriSyntax.cs
- RequestFactory.cs
- NullableFloatSumAggregationOperator.cs
- CodeValidator.cs
- DiscoveryDocumentSearchPattern.cs
- XmlAtomicValue.cs
- TimelineClockCollection.cs
- SchemaDeclBase.cs
- ContextMenuAutomationPeer.cs
- ColorAnimationUsingKeyFrames.cs
- UInt16Storage.cs
- LingerOption.cs
- EventMappingSettingsCollection.cs
- ApplicationInterop.cs
- SimpleWorkerRequest.cs
- Regex.cs
- SerializableAttribute.cs
- ViewBox.cs
- ScriptDescriptor.cs
- ApplicationTrust.cs
- PointAnimationUsingKeyFrames.cs
- LayeredChannelFactory.cs
- MSAAEventDispatcher.cs
- XmlRawWriter.cs
- ConfigXmlElement.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- SystemInfo.cs
- XPathSelfQuery.cs
- HtmlInputPassword.cs
- DataGridBeginningEditEventArgs.cs
- TypographyProperties.cs
- ListViewUpdateEventArgs.cs
- FloaterParaClient.cs
- DataGrid.cs
- PnrpPermission.cs
- BooleanConverter.cs
- SchemaImporter.cs
- DrawingAttributes.cs
- IndentedWriter.cs
- OledbConnectionStringbuilder.cs
- TraceEventCache.cs
- BitVec.cs
- WebReferenceOptions.cs
- HttpClientCertificate.cs
- WebBrowserContainer.cs
- IndexOutOfRangeException.cs