#include <stdio.h>#include <stdlib.h>#include <ctype.h>#include <string.h>#include "include/studynr.h"Functions | |
| int | studynr_from_fname (char *fname, char *studynr) |
| int | fnmatch (char *key, char *fname) |
| int | fncasematch (char *key, char *fname) |
| int | rnameSplit (char *rname, char *name1, char *name2, char *name3, int max_name_len) |
| int | rnameMatch (char *rname, int rnr, char *test_str) |
|
||||||||||||
|
Case-independent check whether string fname matches string key, which may contain wildcards ? and *.
|
|
||||||||||||
|
Check if string fname matches string key, which may contain wildcards ? and *.
|
|
||||||||||||||||
|
Test whether region name or number matches with a test string. Test string can contain wildcards. If test string contains only one subname, it is tested against whole rname. If it contains 2-3 subnames, those are tested against the corresponding tokens in rname. Subname '.' stands for empty name. Number is tested only if test string contains one token of all digits.
|
|
||||||||||||||||||||||||
|
Split region name into 1-3 subparts of given max length.
|
|
||||||||||||
|
Extract study number (max 8 chars) from filename (may include path). Fname is not modified. Memory (>=MAX_STUDYNR_LEN+1 chars) for studynr must be allocated when calling this.
|
1.4.1