1cc8c6d3d7f2357898ad366c94b1f33a403a2aee
angie
  Thu Dec 8 14:14:33 2016 -0800
Libifying isAllDigits from a handful of places into common.c.

diff --git src/hg/lib/hdb.c src/hg/lib/hdb.c
index 3c1c9c5..b792168 100644
--- src/hg/lib/hdb.c
+++ src/hg/lib/hdb.c
@@ -4862,40 +4862,30 @@
 
 if (position == NULL)
     return NULL;
 
 if (hgParseChromRangeLong(NULL, position, &chromName, &winStart, &winEnd))
     {
     sprintLongWithCommas(num1Buf, winStart + 1);
     sprintLongWithCommas(num2Buf, winEnd);
     safef(buffer, sizeof(buffer), "%s:%s-%s",chromName, num1Buf,  num2Buf);
     }
 else
     safecpy(buffer, sizeof(buffer), position);
 return buffer;
 }
 
-INLINE boolean isAllDigits(char *str)
-/* Return TRUE if every character in str is a digit. */
-{
-char *p = str;
-while (*p != '\0')
-    if (!isdigit(*p++))
-	return FALSE;
-return TRUE;
-}
-
 boolean parsePosition(char *position, char **retChrom, uint *retStart, uint *retEnd)
 /* If position is word:number-number (possibly with commas & whitespace),
  * set retChrom, retStart (subtracting 1) and retEnd, and return TRUE.
  * Otherwise return FALSE and leave rets unchanged. */
 {
 char *chrom = cloneString(position);
 stripChar(chrom, ',');
 eraseWhiteSpace(chrom);
 char *startStr = strchr(chrom, ':');
 if (startStr == NULL)
     return FALSE;
 *startStr++ = '\0';
 char *endStr = strchr(startStr, '-');
 if (endStr == NULL)
     return FALSE;