link-grammar-5.8.0/link-grammar/dict-file/read-dict.c
/**
 * Return true if the string is a (floating point) number.
 * Float points can be proceeded by a single plus or minus sign.
 */
Return true if the string is a (floating point) number.
Float points can be proceeded by a single plus or minus sign.
Return true if the string is a ( floating point ) number . Float points can be proceeded by a single plus or minus sign .
static bool is_number(const char * str)
{
	if (str[0] == '\0') return false; 
	if ('+' == str[0] || '-' == str[0]) str++;
	size_t numlen = strspn(str, "0123456789.");
	return str[numlen] == '\0';
}
static bool is_number ( const char * str ) { if ( str [ 0 ] == ' \0 ' ) return false ; if ( ' ' == str [ 0 ] || ' ' == str [ 0 ] ) str ++ ; size_t numlen = strspn ( str , " " ) ; return str [ numlen ] == ' \0 ' ; }
Return true if the string is a (floating point) number.
Return true if the string is a ( floating point ) number .
/* End of file. */