#include <stdio.h>
#include "SDL.h"
Go to the source code of this file.
◆ main()
int main |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
Definition at line 29 of file testiconv.c.
30{
32 "UTF8",
33 "UTF-8",
34 "UTF16BE",
35 "UTF-16BE",
36 "UTF16LE",
37 "UTF-16LE",
38 "UTF32BE",
39 "UTF-32BE",
40 "UTF32LE",
41 "UTF-32LE",
42 "UCS4",
43 "UCS-4",
44 };
46 char *ucs4;
47 char *test[2];
49 FILE *file;
50 int errors = 0;
51
52
54
55 if (!argv[1]) {
56 argv[1] = "utf8.txt";
57 }
58 file = fopen(argv[1], "rb");
59 if (!file) {
61 return (1);
62 }
63
65
67 ucs4 =
76 ++errors;
77 }
80 }
83 fputs(test[0], stdout);
85 }
86 fclose(file);
87 return (errors ? errors + 1 : 0);
88}
#define SDL_LogSetPriority
@ SDL_LOG_CATEGORY_APPLICATION
#define SDL_arraysize(array)
return Display return Display Bool Bool int int int return Display XEvent Bool(*) XPointer return Display return Display Drawable _Xconst char unsigned int unsigned int return Display Pixmap Pixmap XColor XColor unsigned int unsigned int return Display _Xconst char char int char return Display Visual unsigned int int int char unsigned int unsigned int in i)
static size_t widelen(char *data)
References i, SDL_arraysize, SDL_free, SDL_iconv_string, SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO, SDL_LogError, SDL_LogSetPriority, SDL_memcmp, SDL_strlen, and widelen().
◆ widelen()
static size_t widelen |
( |
char * |
data | ) |
|
|
static |
Definition at line 18 of file testiconv.c.
19{
24 }
26}
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Referenced by main().