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
- DataKey.cs
- WmiEventSink.cs
- SafeMILHandle.cs
- ExpressionPrefixAttribute.cs
- IxmlLineInfo.cs
- ReadOnlyDataSourceView.cs
- ConfigurationConverterBase.cs
- ScriptControlManager.cs
- X509ChainPolicy.cs
- BaseCodeDomTreeGenerator.cs
- VisualTreeHelper.cs
- SQLUtility.cs
- WorkflowMarkupSerializerMapping.cs
- DynamicField.cs
- CustomAttributeFormatException.cs
- CommandTreeTypeHelper.cs
- HttpCapabilitiesBase.cs
- XmlQueryContext.cs
- SurrogateSelector.cs
- GridViewCommandEventArgs.cs
- OdbcConnectionOpen.cs
- Control.cs
- DrawItemEvent.cs
- ExecutionContext.cs
- FigureParaClient.cs
- FileDetails.cs
- XmlReflectionImporter.cs
- Processor.cs
- HMACSHA384.cs
- DocumentAutomationPeer.cs
- InsufficientMemoryException.cs
- SystemIcmpV4Statistics.cs
- X509ThumbprintKeyIdentifierClause.cs
- PrimitiveXmlSerializers.cs
- IMembershipProvider.cs
- AutomationPattern.cs
- SingleTagSectionHandler.cs
- ExpressionBuilderCollection.cs
- SocketAddress.cs
- TreeNodeCollection.cs
- AuthenticationManager.cs
- InstalledFontCollection.cs
- LineBreakRecord.cs
- ViewRendering.cs
- WebBrowserSiteBase.cs
- NotCondition.cs
- DataPagerFieldCommandEventArgs.cs
- TreeNodeMouseHoverEvent.cs
- XmlComplianceUtil.cs
- SqlBinder.cs
- HtmlTableRowCollection.cs
- InheritanceContextChangedEventManager.cs
- LogReservationCollection.cs
- PeerNameRecordCollection.cs
- VideoDrawing.cs
- PerformanceCounterScope.cs
- cookiecollection.cs
- WebPartZoneBase.cs
- RuleSettingsCollection.cs
- DataGridSortCommandEventArgs.cs
- wgx_exports.cs
- ButtonBaseAdapter.cs
- SwitchAttribute.cs
- RuleSet.cs
- Connector.cs
- XamlRtfConverter.cs
- TimeSpanStorage.cs
- PasswordDeriveBytes.cs
- ConversionContext.cs
- XmlDocument.cs
- SwitchCase.cs
- srgsitem.cs
- Stream.cs
- PropertyRecord.cs
- ProcessModelInfo.cs
- Error.cs
- ToolStripLocationCancelEventArgs.cs
- RuntimeConfig.cs
- PostBackTrigger.cs
- XmlArrayItemAttributes.cs
- TextProperties.cs
- Sql8ConformanceChecker.cs
- CodeAttachEventStatement.cs
- DynamicDiscoSearcher.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- PerformanceCounterLib.cs
- ValidationRule.cs
- Rotation3D.cs
- Utils.cs
- _OSSOCK.cs
- Decimal.cs
- UInt16Storage.cs
- ObjectViewEntityCollectionData.cs
- UrlParameterWriter.cs
- ResourceAssociationType.cs
- RepeaterItemCollection.cs
- UnknownWrapper.cs
- MailDefinition.cs
- XmlILModule.cs
- ProcessThread.cs