Beispiel #1
0
        public void ToString(FString result, char split, bool quot)
        {
            int count = _values.Count;

            for (int n = 0; n < count; n++)
            {
                if (n > 0)
                {
                    result.Append(split);
                }
                object value = _values[n];
                if (value != null)
                {
                    RCsv.FormatField(result, value.ToString(), quot);
                }
            }
        }
Beispiel #2
0
 protected FCsvLine NextLine()
 {
     if (_reader != null && _reader.HasNext())
     {
         FCsvLine line = RCsv.ParseLine(_reader, _format);
         if (line != null)
         {
             if (_skipBlank && line.IsEmpty)
             {
                 return(NextLine());
             }
             line._heads = _heads;
             return(line);
         }
     }
     return(null);
 }
Beispiel #3
0
        public void ToString(FString result)
        {
            int count = _values.Count;

            for (int n = 0; n < count; n++)
            {
                if (n > 0)
                {
                    result.Append(',');
                }
                object value = _values[n];
                if (value != null)
                {
                    RCsv.FormatField(result, value.ToString(), false);
                }
            }
        }