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
- CheckBoxAutomationPeer.cs
- ColorConverter.cs
- ProfileBuildProvider.cs
- SequentialUshortCollection.cs
- PenLineJoinValidation.cs
- ToolstripProfessionalRenderer.cs
- SQLMoneyStorage.cs
- CookieParameter.cs
- PermissionRequestEvidence.cs
- CodeMemberMethod.cs
- FreezableCollection.cs
- ClaimTypes.cs
- ConfigXmlWhitespace.cs
- ExpressionBinding.cs
- TypeUtils.cs
- OleDbException.cs
- Padding.cs
- EncodingInfo.cs
- _AutoWebProxyScriptHelper.cs
- ControlParameter.cs
- WorkflowLayouts.cs
- BamlBinaryReader.cs
- ListViewSortEventArgs.cs
- SqlError.cs
- XmlIncludeAttribute.cs
- SQLSingle.cs
- Memoizer.cs
- StreamUpdate.cs
- AssociationEndMember.cs
- XmlExtensionFunction.cs
- XmlSerializerNamespaces.cs
- DbQueryCommandTree.cs
- TripleDES.cs
- BitmapFrame.cs
- MergeFailedEvent.cs
- EntityClientCacheKey.cs
- DataSourceView.cs
- DefaultValueAttribute.cs
- ManagementOperationWatcher.cs
- EdmSchemaAttribute.cs
- CodeExpressionStatement.cs
- DataListCommandEventArgs.cs
- SortAction.cs
- HttpModulesSection.cs
- HtmlToClrEventProxy.cs
- X509Certificate2.cs
- MergablePropertyAttribute.cs
- SerializableAttribute.cs
- TypeToken.cs
- EnlistmentTraceIdentifier.cs
- ModuleBuilderData.cs
- PathTooLongException.cs
- SimpleWorkerRequest.cs
- SmiMetaDataProperty.cs
- SpecularMaterial.cs
- _SslState.cs
- DataGridViewCellStyleEditor.cs
- SafeProcessHandle.cs
- WeakHashtable.cs
- FreezableDefaultValueFactory.cs
- ActivationArguments.cs
- CellConstant.cs
- StylusPointProperties.cs
- ConvertBinder.cs
- FloaterParagraph.cs
- ImageList.cs
- XmlILModule.cs
- ISO2022Encoding.cs
- DefaultMemberAttribute.cs
- TreePrinter.cs
- _BufferOffsetSize.cs
- Table.cs
- SchemaImporterExtensionsSection.cs
- DictionarySurrogate.cs
- XmlWhitespace.cs
- PublisherMembershipCondition.cs
- __ConsoleStream.cs
- ByteStorage.cs
- ApplicationId.cs
- DataGridComponentEditor.cs
- SqlGenerator.cs
- SchemaComplexType.cs
- PlaceHolder.cs
- FormViewInsertedEventArgs.cs
- TemplateBindingExpression.cs
- HtmlShimManager.cs
- SoapSchemaExporter.cs
- FormsAuthenticationEventArgs.cs
- SqlPersonalizationProvider.cs
- RootBrowserWindowProxy.cs
- ArgIterator.cs
- MembershipUser.cs
- DataGrid.cs
- FormatControl.cs
- ProxyHelper.cs
- AssemblyCache.cs
- Win32PrintDialog.cs
- ResourceAttributes.cs
- Image.cs
- MaskInputRejectedEventArgs.cs