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
- NamedPermissionSet.cs
- PropertyInformation.cs
- ClientOptions.cs
- BufferedGraphics.cs
- PathData.cs
- ReceiveMessageRecord.cs
- SafeFindHandle.cs
- StylusShape.cs
- IntranetCredentialPolicy.cs
- JpegBitmapDecoder.cs
- TypeBuilderInstantiation.cs
- SecurityResources.cs
- UIElementIsland.cs
- PermissionListSet.cs
- ReferenceService.cs
- StylusPointPropertyInfo.cs
- TextFormatter.cs
- ClientProtocol.cs
- AssemblyNameProxy.cs
- TextTreeInsertUndoUnit.cs
- FlowNode.cs
- AutomationPeer.cs
- StrongNameKeyPair.cs
- InitialServerConnectionReader.cs
- ReadOnlyHierarchicalDataSourceView.cs
- ListViewGroup.cs
- SystemWebCachingSectionGroup.cs
- TimeoutValidationAttribute.cs
- HttpServerVarsCollection.cs
- UIElementAutomationPeer.cs
- CursorConverter.cs
- SignalGate.cs
- ArglessEventHandlerProxy.cs
- _AutoWebProxyScriptEngine.cs
- CompatibleIComparer.cs
- XmlWrappingReader.cs
- ToolStrip.cs
- CustomPopupPlacement.cs
- HitTestWithPointDrawingContextWalker.cs
- MimeParameters.cs
- LeaseManager.cs
- DataSpaceManager.cs
- SemanticValue.cs
- IDReferencePropertyAttribute.cs
- ApplicationSecurityManager.cs
- HashLookup.cs
- IncrementalReadDecoders.cs
- Latin1Encoding.cs
- Enum.cs
- GeneralTransform3D.cs
- X509SecurityToken.cs
- ControlBuilderAttribute.cs
- KnownTypeDataContractResolver.cs
- BitmapSource.cs
- SHA512.cs
- VoiceInfo.cs
- Expression.cs
- DisposableCollectionWrapper.cs
- ServiceReference.cs
- OrderByQueryOptionExpression.cs
- StorageModelBuildProvider.cs
- IntegerFacetDescriptionElement.cs
- XLinq.cs
- ListViewUpdateEventArgs.cs
- SetUserPreferenceRequest.cs
- HwndMouseInputProvider.cs
- UseAttributeSetsAction.cs
- SubclassTypeValidatorAttribute.cs
- BooleanAnimationUsingKeyFrames.cs
- ParameterReplacerVisitor.cs
- ScrollProperties.cs
- HttpRuntime.cs
- CodePageUtils.cs
- ICspAsymmetricAlgorithm.cs
- FileDetails.cs
- OperationExecutionFault.cs
- BindingMemberInfo.cs
- XmlSchemaExternal.cs
- CodeVariableReferenceExpression.cs
- PathFigureCollection.cs
- _OverlappedAsyncResult.cs
- SmiEventSink.cs
- HttpClientProtocol.cs
- HwndSource.cs
- ServiceProviders.cs
- Sql8ConformanceChecker.cs
- LoginView.cs
- MetadataItemEmitter.cs
- FocusManager.cs
- SendParametersContent.cs
- SR.cs
- ColorConverter.cs
- DeclarativeExpressionConditionDeclaration.cs
- ExecutionEngineException.cs
- TrackingParameters.cs
- CriticalHandle.cs
- NativeCompoundFileAPIs.cs
- MessageAction.cs
- CacheDependency.cs
- ComponentChangedEvent.cs