#include <stdio.h>
#include "libavutil/common.h"
#include "libavutil/mem.h"
#include "libavutil/avstring.h"
Go to the source code of this file.
#define TEST_APPEND_PATH_COMPONENT |
( |
|
path, |
|
|
|
component, |
|
|
|
expected |
|
) |
| |
Value:
printf(
"%s = %s\n", fullpath ? fullpath :
"(null)", expected);
\
char * av_append_path_component(const char *path, const char *component)
Append path component to the existing path.
Referenced by main().
#define TEST_STRNSTR |
( |
|
haystack, |
|
|
|
needle, |
|
|
|
hay_length, |
|
|
|
expected |
|
) |
| |
Value:
printf("expected: %p, received %p\n", expected, ptr); \
}
char * av_strnstr(const char *haystack, const char *needle, size_t hay_length)
Locate the first occurrence of the string needle in the string haystack where not more than hay_lengt...
Referenced by main().
#define TEST_STRIREPLACE |
( |
|
haystack, |
|
|
|
needle, |
|
|
|
expected |
|
) |
| |
Value:
printf("error, received null pointer!\n"); \
if (strcmp(ptr, expected) != 0) \
printf(
"expected: %s, received: %s\n", expected, ptr);
\
}
char * av_strireplace(const char *str, const char *from, const char *to)
Locale-independent strings replace.
Referenced by main().
#define TEST_D2STR |
( |
|
value, |
|
|
|
expected |
|
) |
| |
Value:
printf("error, received null pointer!\n"); \
if(strcmp(ptr, expected) != 0) \
printf(
"expected: %s, received: %s\n", expected, ptr);
\
}
char * av_d2str(double d)
Convert a number to an av_malloced string.
GLsizei GLboolean const GLfloat * value
Referenced by main().