Rev | Line | |
---|
[12503] | 1 | using System;
|
---|
| 2 | using System.Collections.Generic;
|
---|
| 3 | using System.Linq;
|
---|
| 4 | using System.Text;
|
---|
| 5 | using System.Globalization;
|
---|
| 6 |
|
---|
| 7 | namespace 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.