File: string_dumper.h

package info (click to toggle)
jmp 0.48-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 2,692 kB
  • ctags: 1,732
  • sloc: ansic: 13,985; sh: 8,611; makefile: 526; yacc: 318; java: 18
file content (21 lines) | stat: -rw-r--r-- 551 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef STRING_DUMPER_H__
#define STRING_DUMPER_H__

#include <jni.h>
#include <jvmpi.h>

/** Dump all strings into the next jmp_string_dump-<number>.txt file. */
void dump_strings ();

/** Get the next string dump file. */
FILE* get_string_dump_file ();

/** Get the name of the current dump file. */
char* get_current_dump_file ();

char* utf16_to_utf8 (char* text, size_t count, long* items_written, int* err);

/** write the utf-8 text into the file. */
int write_string (FILE* f, char* text, int count, int used);

#endif /* STRING_DUMPER_H__ */