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
- RtfToXamlReader.cs
- GridViewDeletedEventArgs.cs
- DrawListViewColumnHeaderEventArgs.cs
- ToolStripPanelRenderEventArgs.cs
- EntityClientCacheKey.cs
- Tag.cs
- EncoderParameter.cs
- ConfigXmlCDataSection.cs
- FileFormatException.cs
- X509CertificateCollection.cs
- ManipulationStartedEventArgs.cs
- InkCanvasFeedbackAdorner.cs
- RequestQueue.cs
- AddressHeaderCollectionElement.cs
- WebControlsSection.cs
- HMAC.cs
- RegexGroupCollection.cs
- HtmlTableRowCollection.cs
- ConnectionsZone.cs
- DataGridCell.cs
- HttpPostProtocolReflector.cs
- InputReferenceExpression.cs
- X509PeerCertificateElement.cs
- SortDescriptionCollection.cs
- MultiSelectRootGridEntry.cs
- HtmlWindowCollection.cs
- ConnectionConsumerAttribute.cs
- TypeListConverter.cs
- SiteMapNodeItemEventArgs.cs
- DocumentViewerConstants.cs
- mda.cs
- EdmRelationshipRoleAttribute.cs
- SqlUtil.cs
- DataKeyCollection.cs
- OleAutBinder.cs
- ContentDisposition.cs
- AsmxEndpointPickerExtension.cs
- ErrorHandler.cs
- HttpProfileBase.cs
- StyleXamlTreeBuilder.cs
- PassportAuthenticationEventArgs.cs
- RadioButtonAutomationPeer.cs
- DataStorage.cs
- ControlsConfig.cs
- DoubleStorage.cs
- ListView.cs
- CharacterMetrics.cs
- MdiWindowListItemConverter.cs
- Semaphore.cs
- GenericEnumerator.cs
- GenericAuthenticationEventArgs.cs
- PhysicalFontFamily.cs
- QuaternionConverter.cs
- ScrollItemProviderWrapper.cs
- LayoutInformation.cs
- UserControl.cs
- SerializationFieldInfo.cs
- DataGridTextBox.cs
- ClrPerspective.cs
- HtmlEmptyTagControlBuilder.cs
- ArithmeticException.cs
- DataGridSortCommandEventArgs.cs
- CornerRadius.cs
- ImageListUtils.cs
- SqlStream.cs
- DoWorkEventArgs.cs
- ConfigurationManager.cs
- sqlser.cs
- OracleCommand.cs
- BitmapEffectGeneralTransform.cs
- SchemaElementLookUpTable.cs
- UIPropertyMetadata.cs
- EmptyElement.cs
- StylusPlugin.cs
- KoreanCalendar.cs
- CacheRequest.cs
- URLIdentityPermission.cs
- XmlSchemas.cs
- SafeFileMappingHandle.cs
- RuleCache.cs
- DataBoundControlAdapter.cs
- SchemaAttDef.cs
- MultipartContentParser.cs
- QuadraticBezierSegment.cs
- XamlParser.cs
- DesignerActionService.cs
- ComplexPropertyEntry.cs
- SecurityException.cs
- CodeCommentStatement.cs
- FilterQuery.cs
- CodeObjectCreateExpression.cs
- TextSearch.cs
- MemberCollection.cs
- PersonalizationStateQuery.cs
- Win32MouseDevice.cs
- FixedFlowMap.cs
- CustomValidator.cs
- SoapRpcServiceAttribute.cs
- IIS7WorkerRequest.cs
- HyperLink.cs