3fd4131517e0d224eb271e312c9fda6419e1872d kate Tue Mar 13 15:51:59 2018 -0700 1. Add support for spectrum setting. 2. Allow dot for empty field. 3. Show multiple items on details page if they overlap. 4. Some cleanup of map boxes. refs #17512 diff --git src/inc/common.h src/inc/common.h index 200b1e3..27e7df5 100644 --- src/inc/common.h +++ src/inc/common.h @@ -772,30 +772,33 @@ * the input. If used in a sort the NULLs will end * up before any of the cases with data. */ #define sameOk(a,b) (differentStringNullOk(a,b) == 0) /* returns TRUE if two strings same, NULLs OK */ #define sameString(a,b) (strcmp(a,b)==0) /* Returns TRUE if two strings same. */ #define sameStringN(a,b,c) (strncmp(a,b,c)==0) /* Returns TRUE if two strings start with the same c characters. */ #define isEmpty(string) ((string) == NULL || (string)[0] == 0) #define isNotEmpty(string) (! isEmpty(string)) +boolean isEmptyTextField(char *s); +/* Recognize empty string or dot as empty text */ + int cmpStringsWithEmbeddedNumbers(const char *a, const char *b); /* Compare strings such as gene names that may have embedded numbers, * so that bmp4a comes before bmp14a */ int cmpWordsWithEmbeddedNumbers(const char *a, const char *b); /* Case insensitive version of cmpStringsWithEmbeddedNumbers. */ boolean startsWith(const char *start, const char *string); /* Returns TRUE if string begins with start. */ boolean startsWithNoCase(const char *start, const char *string); /* Returns TRUE if string begins with start, case-insensitive. */ boolean startsWithWord(char *firstWord, char *line); /* Return TRUE if first white-space-delimited word in line