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
- ComUdtElement.cs
- TemplateNameScope.cs
- Delegate.cs
- TextElementEnumerator.cs
- NativeMethodsCLR.cs
- GroupBoxRenderer.cs
- XsltSettings.cs
- WebColorConverter.cs
- Menu.cs
- XmlWriterSettings.cs
- ReachDocumentSequenceSerializer.cs
- PaintEvent.cs
- EpmCustomContentSerializer.cs
- DiscreteKeyFrames.cs
- StrongNameSignatureInformation.cs
- TextTreeInsertUndoUnit.cs
- EntryIndex.cs
- InputGestureCollection.cs
- TokenBasedSetEnumerator.cs
- QilReference.cs
- ConsumerConnectionPoint.cs
- GcSettings.cs
- Baml2006SchemaContext.cs
- Converter.cs
- TrackingParameters.cs
- RadioButtonPopupAdapter.cs
- DocumentViewerBaseAutomationPeer.cs
- CharacterMetricsDictionary.cs
- Utils.cs
- RsaElement.cs
- ForEachAction.cs
- filewebresponse.cs
- ToolStripLabel.cs
- CatalogZone.cs
- RawUIStateInputReport.cs
- EventLogQuery.cs
- DiscreteKeyFrames.cs
- ReadOnlyHierarchicalDataSource.cs
- PopupRoot.cs
- PaginationProgressEventArgs.cs
- FloaterParaClient.cs
- UserMapPath.cs
- Function.cs
- SqlRecordBuffer.cs
- TypefaceCollection.cs
- XamlStream.cs
- ToolStripSeparatorRenderEventArgs.cs
- DesignTimeTemplateParser.cs
- FileNotFoundException.cs
- State.cs
- OpenFileDialog.cs
- Code.cs
- UnsafeNativeMethods.cs
- PropertyMapper.cs
- SqlUdtInfo.cs
- InternalConfigRoot.cs
- SafeCryptHandles.cs
- MediaContext.cs
- RangeValidator.cs
- XmlDataFileEditor.cs
- RemotingConfigParser.cs
- WindowsButton.cs
- AppSecurityManager.cs
- QilXmlWriter.cs
- PublisherIdentityPermission.cs
- SupportsPreviewControlAttribute.cs
- DefaultDialogButtons.cs
- HtmlDocument.cs
- GridViewAutomationPeer.cs
- ObjectDataSource.cs
- MachineKeySection.cs
- RoamingStoreFile.cs
- BlockCollection.cs
- FileSystemEventArgs.cs
- XmlDocumentFragment.cs
- XmlSerializableReader.cs
- ReceiveSecurityHeaderEntry.cs
- IPGlobalProperties.cs
- XmlDocumentType.cs
- CompilationPass2Task.cs
- CompositeControl.cs
- IImplicitResourceProvider.cs
- DataGridViewHitTestInfo.cs
- _TimerThread.cs
- MeshGeometry3D.cs
- XXXInfos.cs
- XmlFileEditor.cs
- EpmCustomContentWriterNodeData.cs
- SystemPens.cs
- ByteStreamMessage.cs
- ProviderSettingsCollection.cs
- DetailsViewPageEventArgs.cs
- LazyTextWriterCreator.cs
- XmlAttributeOverrides.cs
- RawStylusInputCustomData.cs
- AutomationProperties.cs
- WebPartUtil.cs
- DataGridViewLayoutData.cs
- Int64.cs
- WinEventWrap.cs