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
- ConfigurationManagerHelperFactory.cs
- LinkButton.cs
- CompilationRelaxations.cs
- UrlMappingCollection.cs
- FileChangesMonitor.cs
- WebPartVerbsEventArgs.cs
- ImageMetadata.cs
- SqlParameterCollection.cs
- TransactionManager.cs
- StaticDataManager.cs
- StylusTip.cs
- XamlSerializerUtil.cs
- IteratorFilter.cs
- MenuItemStyleCollectionEditor.cs
- EventBookmark.cs
- ObjectListDataBindEventArgs.cs
- ScriptRegistrationManager.cs
- EntityContainerRelationshipSetEnd.cs
- WindowsEditBox.cs
- ThicknessConverter.cs
- SubMenuStyleCollection.cs
- Interlocked.cs
- EncoderParameters.cs
- ProfileBuildProvider.cs
- TransactionState.cs
- TemplatedMailWebEventProvider.cs
- ExpressionBinding.cs
- SqlMethods.cs
- odbcmetadatacollectionnames.cs
- UniformGrid.cs
- DefaultClaimSet.cs
- CodeSnippetTypeMember.cs
- DataGridRow.cs
- storepermissionattribute.cs
- ListControl.cs
- StreamFormatter.cs
- SafeNativeMethods.cs
- DataObjectFieldAttribute.cs
- FlowDocumentScrollViewer.cs
- TailCallAnalyzer.cs
- JsonReader.cs
- UnSafeCharBuffer.cs
- Authorization.cs
- GeneralTransform.cs
- EpmSyndicationContentSerializer.cs
- ReaderWriterLockWrapper.cs
- ListSourceHelper.cs
- TextEditor.cs
- NamedPipeTransportElement.cs
- MessageSecurityVersion.cs
- XmlReflectionImporter.cs
- SHA1.cs
- FileLoadException.cs
- UdpReplyToBehavior.cs
- RangeValuePattern.cs
- Decimal.cs
- QueryableFilterUserControl.cs
- ConnectionStringsSection.cs
- QueryableDataSourceHelper.cs
- Message.cs
- UnlockCardRequest.cs
- GridViewRowPresenterBase.cs
- CodeObject.cs
- XmlSchemaExternal.cs
- ObjectQueryExecutionPlan.cs
- WebResourceAttribute.cs
- EventDescriptor.cs
- BaseParser.cs
- BitmapEffectInputConnector.cs
- ChineseLunisolarCalendar.cs
- CryptoHelper.cs
- XmlArrayAttribute.cs
- XmlSchemaAny.cs
- Identity.cs
- SafeNativeMethods.cs
- DependencyProperty.cs
- Mappings.cs
- VirtualPathUtility.cs
- ComponentEvent.cs
- xsdvalidator.cs
- MatrixConverter.cs
- ZeroOpNode.cs
- OleDbStruct.cs
- WindowsHyperlink.cs
- IdentityReference.cs
- UpdateException.cs
- SecurityHelper.cs
- PixelFormatConverter.cs
- FileDialog.cs
- XmlSchemaSimpleContent.cs
- DataServiceQueryException.cs
- ClipboardData.cs
- TypeContext.cs
- TextChange.cs
- TextBoxBase.cs
- QueryableDataSource.cs
- RNGCryptoServiceProvider.cs
- XsltInput.cs
- Expression.DebuggerProxy.cs
- XmlSiteMapProvider.cs