Beispiel #1
0
 /// <summary>
 /// Find the FieldEnd node that matches the field's start node.
 /// </summary>
 private static FieldEnd FindMatchingEnd(FieldStart start)
 {
     try
     {
         FieldEnd end;
         start.ParseInlineField(out end);
         return end;
     }
     catch
     {
         return null;
     }
 }
Beispiel #2
0
        /// <summary>
        /// Determines if the given field start is the quote reference field and returns its field end if so.
        /// </summary>
        public static bool IsQuoteField(FieldStart start, out FieldEnd end)
        {
            if (start.FieldType != FieldType.FieldSet)
            {
                end = null;
                return false;
            }

            return start.ParseInlineField(out end).Trim() == "SET q \"\\\"\"";
        }