Exemplo n.º 1
0
 public bool ContainsKey(InputFormats inpFormat, InputDigitLanguages inpLang)
 {
     return(ContainsKey(new KeyValuePair <InputFormats, InputDigitLanguages>(inpFormat, inpLang)));
 }
Exemplo n.º 2
0
 public KeyValuePair <OutputFormats, OutputDigitLanguages> GetValueForKey(InputFormats inpFormat, InputDigitLanguages inpLang)
 {
     return(GetValueForKey(new KeyValuePair <InputFormats, InputDigitLanguages>(inpFormat, inpLang)));
 }
Exemplo n.º 3
0
        public static void DectectInputFormat(string str, out InputFormats inputFormat, out InputDigitLanguages inputDigitLanguage)
        {
            inputFormat = InputFormats.Digits;

            if (str[0] == '-' || str[0] == '+')
            {
                inputFormat = InputFormats.DigitsWithSign;
            }

            inputDigitLanguage = NumberParsersSuggestions.DetectInputDigitLanguage(str);

            if (inputDigitLanguage == InputDigitLanguages.None)
            {
                inputFormat = InputFormats.Letters;
            }
        }