Go to the source code of this file.
Data Structures |
struct | snake_t |
struct | file |
struct | fc_t |
Typedefs |
typedef struct snake_t | snake_t |
typedef struct file | file |
typedef struct fc_t | fc_t |
Functions |
static long | midsnake (int depth, long A, long N, long B, long M, long *ulx, long *uly, long *lrx, long *lry) |
static void | findsnake (int depth, long A, long N, long B, long M) |
double | explain_fstrcmp (const char *s1, const char *s2) |
static void | downcase (char *out, const char *in) |
double | explain_fstrcasecmp (const char *s1, const char *s2) |
Variables |
static long | tablesize |
static long | tablesize_max |
static long * | V1 |
static long * | V1_table |
static long * | V2 |
static long * | V2_table |
static snake_t * | nextsnake |
static snake_t * | snake_table |
static fc_t | fc |
Typedef Documentation
Function Documentation
static void downcase |
( |
char * |
out, |
|
|
const char * |
in |
|
) |
| [static] |
The explain_fstrcasecmp function may be used to compare two strings. The comparison is case insensitive. The order of the strings has no effect on the result.
- Parameters:
-
s1 | The first string to be compared. |
s2 | The second string to be compared. |
- Returns:
- Rather than a simple yes/no result, the similarity of the strings is returned. A return of 0.0 means the strings are completely differemt, and a return value of 1.0 means they are identical. However, values can be returned between these two values, indicating the degree of similarity.
- Note:
- This function uses dynamic memory. May return -1 if malloc fails.
Definition at line 424 of file fstrcmp.c.
The explain_fstrcmp function may be used to compare two strings. The order of the strings has no effect on the result.
- Parameters:
-
s1 | The first string to be compared. |
s2 | The second string to be compared. |
- Returns:
- Rather than a simple yes/no result, the similarity of the strings is returned. A return of 0.0 means the strings are completely differemt, and a return value of 1.0 means they are identical. However, values can be returned between these two values, indicating the degree of similarity.
- Note:
- This function uses dynamic memory. May return -1 if malloc fails. This function is not thread-safe.
Definition at line 289 of file fstrcmp.c.
static void findsnake |
( |
int |
depth, |
|
|
long |
A, |
|
|
long |
N, |
|
|
long |
B, |
|
|
long |
M |
|
) |
| [static] |
static long midsnake |
( |
int |
depth, |
|
|
long |
A, |
|
|
long |
N, |
|
|
long |
B, |
|
|
long |
M, |
|
|
long * |
ulx, |
|
|
long * |
uly, |
|
|
long * |
lrx, |
|
|
long * |
lry |
|
) |
| [static] |
Variable Documentation