link-grammar-5.8.0/link-grammar/dict-common/dialect.h
/**
 * Validate that \p name is a valid dialect tag name.
 * @name Dialect tag name
 * @return NULL if valid, else the first offending character.
 */
Validate that \p name is a valid dialect tag name.
@name Dialect tag name
@return NULL if valid, else the first offending character.
Validate that \ p name is a valid dialect tag name . @name Dialect tag name @return NULL if valid else the first offending character .
static inline const char *valid_dialect_name(const char *name)
{
	if (!isalpha(name[0])) return name;
	while (*++name != '\0')
	{
		if (!isalnum(name[0]) && name[0] != '_' && name[0] != '-')
			return name;
	}
	return NULL;
}
static inline const char * valid_dialect_name ( const char * name ) { if ( ! isalpha ( name [ 0 ] ) ) return name ; while ( * ++ name != ' \0 ' ) { if ( ! isalnum ( name [ 0 ] ) && name [ 0 ] != ' ' && name [ 0 ] != ' ' ) return name ; } return NULL ; }
Validate that \p name is a valid dialect tag name.
Validate that \ p name is a valid dialect tag name .