Lines Matching refs:cfp
39 void make_hhc_char(FILE *sfp, FILE *cfp);
40 void make_stc_char(FILE *sfp, FILE *cfp);
41 void make_stc_word(FILE *sfp, FILE *cfp);
47 FILE *sfp, *cfp; in SAL_IMPLEMENT_MAIN_WITH_ARGS() local
60 cfp = fopen(argv[3], "wb"); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
61 if (cfp == NULL) { in SAL_IMPLEMENT_MAIN_WITH_ARGS()
67 fprintf(cfp, "/*\n"); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
68 fprintf(cfp, " * Copyright(c) 1999 - 2000, Sun Microsystems, Inc.\n"); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
69 fprintf(cfp, " * All Rights Reserved.\n"); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
70 fprintf(cfp, " */\n\n"); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
71 fprintf(cfp, "/* !!!The file is generated automatically. DONOT edit the file manually!!! */\n\n"); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
72 fprintf(cfp, "#include <sal/types.h>\n"); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
73 fprintf(cfp, "#include <textconversion.hxx>\n"); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
74 fprintf(cfp, "\nextern \"C\" {\n"); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
77 make_hhc_char(sfp, cfp); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
79 make_stc_char(sfp, cfp); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
81 make_stc_word(sfp, cfp); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
83 fprintf (cfp, "}\n"); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
86 fclose(cfp); in SAL_IMPLEMENT_MAIN_WITH_ARGS()
92 void make_hhc_char(FILE *sfp, FILE *cfp) in make_hhc_char() argument
102 fprintf(cfp, "\nstatic const sal_Unicode Hangul2HanjaData[] = {"); in make_hhc_char()
122 fprintf(cfp, "\n\t"); in make_hhc_char()
123 fprintf(cfp, "0x%04x, ", Ustr[i]); in make_hhc_char()
126 fprintf(cfp, "\n};\n"); in make_hhc_char()
128 fprintf(cfp, "\nstatic const com::sun::star::i18n::Hangul_Index Hangul2HanjaIndex[] = {\n"); in make_hhc_char()
130 fprintf(cfp, "\t{ 0x%04x, 0x%04x, 0x%02x },\n", in make_hhc_char()
134 fprintf(cfp, "};\n"); in make_hhc_char()
136 fprintf(cfp, "\nstatic const sal_uInt16 Hanja2HangulIndex[] = {"); in make_hhc_char()
140 fprintf(cfp, "\n\t"); in make_hhc_char()
147 cfp, "0x%04lx, ", in make_hhc_char()
152 fprintf(cfp, "\n};\n"); in make_hhc_char()
154 fprintf(cfp, "\nstatic const sal_Unicode Hanja2HangulData[] = {"); in make_hhc_char()
163 fprintf(cfp, "\n\t"); in make_hhc_char()
166 fprintf(cfp, "0x%04x, ", c ? c : 0xFFFF); in make_hhc_char()
171 fprintf(cfp, "\n};\n"); in make_hhc_char()
174 fprintf (cfp, "\tconst sal_Unicode* getHangul2HanjaData() { return Hangul2HanjaData; }\n"); in make_hhc_char()
175 …fprintf (cfp, "\tconst com::sun::star::i18n::Hangul_Index* getHangul2HanjaIndex() { return Hangul2… in make_hhc_char()
176 …fprintf (cfp, "\tsal_Int16 getHangul2HanjaIndexCount() { return sizeof(Hangul2HanjaIndex) / sizeof… in make_hhc_char()
177 fprintf (cfp, "\tconst sal_uInt16* getHanja2HangulIndex() { return Hanja2HangulIndex; }\n"); in make_hhc_char()
178 fprintf (cfp, "\tconst sal_Unicode* getHanja2HangulData() { return Hanja2HangulData; }\n"); in make_hhc_char()
182 void make_stc_char(FILE *sfp, FILE *cfp) in make_stc_char() argument
212 fprintf(cfp, "\nstatic const sal_uInt16 STC_CharIndex_S2T[] = {"); in make_stc_char()
216 fprintf(cfp, "\n\t"); in make_stc_char()
223 cfp, "0x%04lx, ", in make_stc_char()
228 fprintf(cfp, "\n};\n"); in make_stc_char()
230 fprintf(cfp, "\nstatic const sal_Unicode STC_CharData_S2T[] = {"); in make_stc_char()
239 fprintf(cfp, "\n\t"); in make_stc_char()
242 fprintf(cfp, "0x%04x, ", c ? c : 0xFFFF); in make_stc_char()
247 fprintf(cfp, "\n};\n"); in make_stc_char()
249 fprintf(cfp, "\nstatic const sal_uInt16 STC_CharIndex_S2V[] = {"); in make_stc_char()
253 fprintf(cfp, "\n\t"); in make_stc_char()
260 cfp, "0x%04lx, ", in make_stc_char()
265 fprintf(cfp, "\n};\n"); in make_stc_char()
267 fprintf(cfp, "\nstatic const sal_Unicode STC_CharData_S2V[] = {"); in make_stc_char()
276 fprintf(cfp, "\n\t"); in make_stc_char()
279 fprintf(cfp, "0x%04x, ", c ? c : 0xFFFF); in make_stc_char()
284 fprintf(cfp, "\n};\n"); in make_stc_char()
286 fprintf(cfp, "\nstatic const sal_uInt16 STC_CharIndex_T2S[] = {"); in make_stc_char()
290 fprintf(cfp, "\n\t"); in make_stc_char()
297 cfp, "0x%04lx, ", in make_stc_char()
302 fprintf(cfp, "\n};\n"); in make_stc_char()
304 fprintf(cfp, "\nstatic const sal_Unicode STC_CharData_T2S[] = {"); in make_stc_char()
313 fprintf(cfp, "\n\t"); in make_stc_char()
316 fprintf(cfp, "0x%04x, ", c ? c : 0xFFFF); in make_stc_char()
321 fprintf(cfp, "\n};\n"); in make_stc_char()
324 fprintf (cfp, "\tconst sal_uInt16* getSTC_CharIndex_S2T() { return STC_CharIndex_S2T; }\n"); in make_stc_char()
325 fprintf (cfp, "\tconst sal_Unicode* getSTC_CharData_S2T() { return STC_CharData_S2T; }\n"); in make_stc_char()
326 fprintf (cfp, "\tconst sal_uInt16* getSTC_CharIndex_S2V() { return STC_CharIndex_S2V; }\n"); in make_stc_char()
327 fprintf (cfp, "\tconst sal_Unicode* getSTC_CharData_S2V() { return STC_CharData_S2V; }\n"); in make_stc_char()
328 fprintf (cfp, "\tconst sal_uInt16* getSTC_CharIndex_T2S() { return STC_CharIndex_T2S; }\n"); in make_stc_char()
329 fprintf (cfp, "\tconst sal_Unicode* getSTC_CharData_T2S() { return STC_CharData_T2S; }\n"); in make_stc_char()
351 void make_stc_word(FILE *sfp, FILE *cfp) in make_stc_word() argument
396 fprintf(cfp, "\nstatic const sal_Unicode STC_WordData[] = {"); in make_stc_word()
398 if (i % 32 == 0) fprintf(cfp, "\n\t"); in make_stc_word()
399 fprintf(cfp, "0x%04x, ", STC_WordData[i]); in make_stc_word()
401 fprintf(cfp, "\n};\n"); in make_stc_word()
403 …fprintf(cfp, "\nstatic sal_Int32 STC_WordData_Count = %ld;\n", sal::static_int_cast< long >(char_t… in make_stc_word()
406 …fprintf (cfp, "\tconst sal_Unicode* getSTC_WordData(sal_Int32& count) { count = STC_WordData_Count… in make_stc_word()
408 …fprintf (cfp, "\tconst sal_Unicode* getSTC_WordData(sal_Int32& count) { count = 0; return NULL; }\… in make_stc_word()
416 fprintf(cfp, "\nstatic const sal_uInt16 STC_WordEntry_S2T[] = {"); in make_stc_word()
420 if (i % 32 == 0) fprintf(cfp, "\n\t"); in make_stc_word()
421 fprintf(cfp, "0x%04x, ", STC_WordEntry_S2T[i].address); in make_stc_word()
428 fprintf(cfp, "\n};\n"); in make_stc_word()
431 fprintf(cfp, "\nstatic const sal_uInt16 STC_WordIndex_S2T[] = {"); in make_stc_word()
433 if (i % 16 == 0) fprintf(cfp, "\n\t"); in make_stc_word()
434 fprintf(cfp, "0x%04x, ", STC_WordIndex[i]); in make_stc_word()
436 fprintf(cfp, "\n};\n"); in make_stc_word()
438 …fprintf(cfp, "\nstatic sal_Int32 STC_WordIndex_S2T_Count = %ld;\n", sal::static_int_cast< long >(l… in make_stc_word()
439 fprintf (cfp, "\tconst sal_uInt16* getSTC_WordEntry_S2T() { return STC_WordEntry_S2T; }\n"); in make_stc_word()
440 …fprintf (cfp, "\tconst sal_uInt16* getSTC_WordIndex_S2T(sal_Int32& count) { count = STC_WordIndex_… in make_stc_word()
442 fprintf (cfp, "\tconst sal_uInt16* getSTC_WordEntry_S2T() { return NULL; }\n"); in make_stc_word()
443 …fprintf (cfp, "\tconst sal_uInt16* getSTC_WordIndex_S2T(sal_Int32& count) { count = 0; return NULL… in make_stc_word()
449 fprintf(cfp, "\nstatic const sal_uInt16 STC_WordEntry_T2S[] = {"); in make_stc_word()
453 if (i % 32 == 0) fprintf(cfp, "\n\t"); in make_stc_word()
454 fprintf(cfp, "0x%04x, ", STC_WordEntry_T2S[i].address); in make_stc_word()
462 fprintf(cfp, "\n};\n"); in make_stc_word()
464 fprintf(cfp, "\nstatic const sal_uInt16 STC_WordIndex_T2S[] = {"); in make_stc_word()
466 if (i % 16 == 0) fprintf(cfp, "\n\t"); in make_stc_word()
467 fprintf(cfp, "0x%04x, ", STC_WordIndex[i]); in make_stc_word()
469 fprintf(cfp, "\n};\n"); in make_stc_word()
471 …fprintf(cfp, "\nstatic sal_Int32 STC_WordIndex_T2S_Count = %ld;\n\n", sal::static_int_cast< long >… in make_stc_word()
472 fprintf (cfp, "\tconst sal_uInt16* getSTC_WordEntry_T2S() { return STC_WordEntry_T2S; }\n"); in make_stc_word()
473 …fprintf (cfp, "\tconst sal_uInt16* getSTC_WordIndex_T2S(sal_Int32& count) { count = STC_WordIndex_… in make_stc_word()
475 fprintf (cfp, "\tconst sal_uInt16* getSTC_WordEntry_T2S() { return NULL; }\n"); in make_stc_word()
476 …fprintf (cfp, "\tconst sal_uInt16* getSTC_WordIndex_T2S(sal_Int32& count) { count = 0; return NULL… in make_stc_word()