Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Problems.GrammaticalOptimization/DynamicDataDisplay/Common/TokenizerHelper.cs @ 13401

Last change on this file since 13401 was 12503, checked in by aballeit, 9 years ago

#2283 added GUI and charts; fixed MCTS

File size: 583 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Globalization;
6
7namespace Microsoft.Research.DynamicDataDisplay.Common
8{
9  internal static class TokenizerHelper
10  {
11    public static char GetNumericListSeparator(IFormatProvider provider)
12    {
13      char separator = ',';
14
15      NumberFormatInfo numberInfo = NumberFormatInfo.GetInstance(provider);
16      if (numberInfo.NumberDecimalSeparator.Length > 0 && separator == numberInfo.NumberDecimalSeparator[0])
17      {
18        separator = ';';
19      }
20
21      return separator;
22    }
23  }
24}
Note: See TracBrowser for help on using the repository browser.