Lines Matching defs:out
172 This example first creates a UChar String out of the Unicode chars.
229 // Print it out
241 "Sample 03: C: print out all converters\n");
349 // simply ran out of space - we'll reset the target ptr the next
357 // Break out of the loop (by force)
369 } while (source < sourceLimit); // while simply out of space
372 printf("%d letters out of %d total UChars.\n", letters, total);
488 printf("%d letters out of %d total UChars.\n", letters, total);
553 // Print it out
633 /* print out the original source */
654 /* Converter starts out with the SUBSTITUTE callback set. */
676 /* print out the original source */
734 /* print out the original source */
755 /* Converter starts out with the SUBSTITUTE callback set. */
758 /* from the 'bottom' innermost, out
834 /* print out the original source */
877 FILE *out;
897 out = fopen("data40.utf16", "wb");
898 if(!out)
938 // simply ran out of space - we'll reset the target ptr the next
946 // Break out of the loop (by force)
951 assert(fwrite(uBuf, sizeof(uBuf[0]), (target-uBuf), out) ==
954 } while (source < sourceLimit); // while simply out of space
957 printf("%d bytes in, %d UChars out.\n", inbytes, total);
963 fclose(out);
972 // 46- C, UTF16 -> latin2 [data40.utf16 -> data46.out]
979 "Sample 46: C: convert data40.utf16 from UTF16 to latin2 [data46.out]\n");
982 FILE *out;
1003 out = fopen("data46.out", "wb");
1004 if(!out)
1006 fprintf(stderr, "Couldn't create file 'data46.out'.\n");
1044 // simply ran out of space - we'll reset the target ptr the next
1052 // Break out of the loop (by force)
1056 assert(fwrite(buf, sizeof(buf[0]), (target-buf), out) ==
1059 } while (source < sourceLimit); // while simply out of space
1062 printf("%d Uchars (%d bytes) in, %d chars out.\n", inchars, inchars * sizeof(UChar), total);
1068 fclose(out);
1089 UChar *target = output, *out;
1099 out = output;
1101 ++out; // ignore initial U+FEFF
1103 while(out != target) {
1104 printf("%04x ", *out++);
1135 convsample_46(); // C, UTF16 -> latin3 [data41.utf16 -> data46.out]