예제 #1
0
파일: InlineField.cs 프로젝트: vc3/ExoMerge
 /// <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;
     }
 }
예제 #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 \"\\\"\"";
        }