src/inc/ra.h 1.7

1.7 2009/11/23 07:33:44 kent
Adding a few new .ra parsing routines.
Index: src/inc/ra.h
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/inc/ra.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -b -B -U 4 -r1.6 -r1.7
--- src/inc/ra.h	28 Jun 2006 20:25:55 -0000	1.6
+++ src/inc/ra.h	23 Nov 2009 07:33:44 -0000	1.7
@@ -14,8 +14,20 @@
  * when done.  Note this will free the hash
  * keys and values as well, so you'll have to
  * cloneMem them if you want them for later. */
 
+struct slPair *raNextRecordAsSlPairList(struct lineFile *lf);
+/* Return ra record as a slPair list instead of a hash.  Handy if you want to preserve the order. 
+ * Do a slPairFreeValsAndList on result when done. */
+
+boolean raSkipLeadingEmptyLines(struct lineFile *lf);
+/* Skip leading empty lines and comments.  Returns FALSE at end of file. 
+ * Together with raNextTagVal you can construct your own raNextRecord.... */
+
+boolean raNextTagVal(struct lineFile *lf, char **retTag, char **retVal);
+/* Read next line.  Return FALSE at end of file or blank line.  Otherwise
+ * fill in *retTag and *retVal and return TRUE */
+
 struct hash *raFromString(char *string);
 /* Return hash of key/value pairs from string.
  * As above freeHash this when done. */