Exemplo n.º 1
0
        internal static new bool ReadFromString(StringScanner scanner, out DataStringItem item)
        {
            using (var token = scanner.SaveIndex())
            {
                if (scanner.CurrentChar == GlobalConsts.STRING_ENCLOSING_CHAR)
                {
                    while (scanner.CurrentChar != GlobalConsts.STRING_ENCLOSING_CHAR)
                    {
                        scanner.Increment();
                    }

                    item = new DataStringLiteralString(scanner.GetString(token));
                }

                scanner.RestoreIndex(token);
                item = null;
                return(false);
            }
        }
Exemplo n.º 2
0
 internal static new bool ReadFromString(StringScanner scanner, out DataStringItem item)
 {
     return(DataStringLiteralString.ReadFromString(scanner, out item) ||
            DataStringLiteralBinary.ReadFromString(scanner, out item) ||
            DataStringLiteralNumber.ReadFromString(scanner, out item));
 }