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
- BuildProvider.cs
- FrameworkElement.cs
- SqlEnums.cs
- ViewBase.cs
- DefaultTraceListener.cs
- UnhandledExceptionEventArgs.cs
- TransformPatternIdentifiers.cs
- ProfileGroupSettings.cs
- BmpBitmapEncoder.cs
- XmlArrayItemAttributes.cs
- ActivityDesignerAccessibleObject.cs
- SystemIcons.cs
- XsltFunctions.cs
- altserialization.cs
- XmlMapping.cs
- XmlWriter.cs
- QueryContinueDragEventArgs.cs
- RelationshipNavigation.cs
- IncrementalCompileAnalyzer.cs
- TemplateXamlTreeBuilder.cs
- HtmlElementEventArgs.cs
- StrongTypingException.cs
- ConfigXmlText.cs
- documentsequencetextpointer.cs
- GlobalAllocSafeHandle.cs
- XmlSubtreeReader.cs
- Ipv6Element.cs
- OpenTypeLayout.cs
- DetailsViewPagerRow.cs
- HtmlGenericControl.cs
- RepeaterItemCollection.cs
- ResourceCodeDomSerializer.cs
- ReadOnlyHierarchicalDataSourceView.cs
- NamespaceEmitter.cs
- DesignBindingValueUIHandler.cs
- Translator.cs
- CacheRequest.cs
- NetworkInterface.cs
- CodePageUtils.cs
- TreeNodeConverter.cs
- BatchStream.cs
- SecurityHeaderElementInferenceEngine.cs
- OleDbErrorCollection.cs
- BamlVersionHeader.cs
- RSAOAEPKeyExchangeFormatter.cs
- TransactionChannelFaultConverter.cs
- EventWaitHandle.cs
- ClientScriptManagerWrapper.cs
- EventlogProvider.cs
- AuthorizationPolicyTypeElementCollection.cs
- DbMetaDataCollectionNames.cs
- Parser.cs
- RuleProcessor.cs
- Utility.cs
- HitTestParameters3D.cs
- AssociationSetEnd.cs
- SqlDependency.cs
- Camera.cs
- linebase.cs
- DeflateStream.cs
- StyleSheetComponentEditor.cs
- MailAddress.cs
- InternalControlCollection.cs
- HttpCachePolicyWrapper.cs
- Decoder.cs
- DataBoundControlAdapter.cs
- Rijndael.cs
- FormViewModeEventArgs.cs
- Argument.cs
- WindowsSspiNegotiation.cs
- AncestorChangedEventArgs.cs
- BeginStoryboard.cs
- ResourceSetExpression.cs
- InternalMappingException.cs
- UnsupportedPolicyOptionsException.cs
- Type.cs
- IItemContainerGenerator.cs
- Version.cs
- WebPartTransformerCollection.cs
- HttpRawResponse.cs
- PriorityBinding.cs
- GraphicsPath.cs
- ClaimTypeElementCollection.cs
- XmlName.cs
- HashAlgorithm.cs
- SqlReorderer.cs
- SQLBoolean.cs
- SqlSupersetValidator.cs
- CornerRadiusConverter.cs
- ReadOnlyPropertyMetadata.cs
- IgnoreDeviceFilterElementCollection.cs
- DefaultTraceListener.cs
- Rotation3DAnimation.cs
- CharacterMetricsDictionary.cs
- Interlocked.cs
- URIFormatException.cs
- IgnoreFlushAndCloseStream.cs
- DataControlField.cs
- GrammarBuilderRuleRef.cs
- Pens.cs