Code:
/ DotNET / DotNET / 8.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FixedFindEngine.cs
- CalendarTable.cs
- SettingsPropertyValueCollection.cs
- ActivitySurrogate.cs
- ConfigurationProperty.cs
- BamlResourceContent.cs
- OleDbTransaction.cs
- BasicCommandTreeVisitor.cs
- StrongNameMembershipCondition.cs
- RowToParametersTransformer.cs
- RepeaterCommandEventArgs.cs
- PackagingUtilities.cs
- DataGridBoolColumn.cs
- UIElementPropertyUndoUnit.cs
- DataGridViewCellStyleChangedEventArgs.cs
- TextTrailingWordEllipsis.cs
- _BaseOverlappedAsyncResult.cs
- SmtpAuthenticationManager.cs
- SHA1.cs
- ResourceProperty.cs
- BooleanToVisibilityConverter.cs
- MenuRenderer.cs
- ComAdminInterfaces.cs
- XComponentModel.cs
- DataServiceQueryProvider.cs
- FileDialog_Vista.cs
- InternalTypeHelper.cs
- CollectionBuilder.cs
- Transform.cs
- FullTextState.cs
- ValueType.cs
- Int16KeyFrameCollection.cs
- WindowsListViewGroup.cs
- NetMsmqSecurityElement.cs
- TreeIterators.cs
- TypeBuilderInstantiation.cs
- DiscreteKeyFrames.cs
- Rotation3D.cs
- UnsafeNativeMethodsPenimc.cs
- UnmanagedMarshal.cs
- securitycriticaldataformultiplegetandset.cs
- TextSelectionHighlightLayer.cs
- ZipIOCentralDirectoryBlock.cs
- WorkflowTraceTransfer.cs
- DataGridDetailsPresenter.cs
- ServicesUtilities.cs
- SizeLimitedCache.cs
- OracleBoolean.cs
- UrlMapping.cs
- PagePropertiesChangingEventArgs.cs
- WebPartRestoreVerb.cs
- FileVersionInfo.cs
- SettingsBindableAttribute.cs
- VisualStyleRenderer.cs
- _LocalDataStore.cs
- BitSet.cs
- Logging.cs
- XomlCompiler.cs
- XmlSchemaAttributeGroupRef.cs
- UniqueConstraint.cs
- AssemblyGen.cs
- ReferencedType.cs
- _NtlmClient.cs
- MarkupCompilePass1.cs
- ServiceBehaviorElementCollection.cs
- RoleBoolean.cs
- ToolBarButtonClickEvent.cs
- designeractionlistschangedeventargs.cs
- CorrelationQuery.cs
- TitleStyle.cs
- XmlSchemaAttributeGroup.cs
- XamlReader.cs
- invalidudtexception.cs
- ConfigurationValue.cs
- DataGridViewButtonCell.cs
- CompareValidator.cs
- PolyLineSegmentFigureLogic.cs
- ClientBuildManager.cs
- AuthenticationService.cs
- EtwTrackingParticipant.cs
- EventHandlerService.cs
- WebPartEventArgs.cs
- Line.cs
- EditorBrowsableAttribute.cs
- WebConfigurationManager.cs
- HashHelper.cs
- XmlTextReaderImpl.cs
- SurrogateEncoder.cs
- Int32Converter.cs
- SaveFileDialog.cs
- Exceptions.cs
- XmlReturnReader.cs
- KeyTime.cs
- PagerSettings.cs
- XmlElementAttribute.cs
- CompilerGeneratedAttribute.cs
- DesignOnlyAttribute.cs
- AuthStoreRoleProvider.cs
- CaseKeyBox.ViewModel.cs
- EntitySqlQueryBuilder.cs