Changeset 8263c68 in mainline for kernel/test/print/print4.c
- Timestamp:
- 2009-03-22T22:07:25Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a5e5030
- Parents:
- 5251bab
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/test/print/print4.c
r5251bab r8263c68 33 33 { 34 34 if (!quiet) { 35 printf("ASCII printable characters (32 - 127) using printf( %%c):\n");35 printf("ASCII printable characters (32 - 127) using printf(\"%%c\") and printf(\"%%lc\"):\n"); 36 36 37 37 uint8_t hextet; … … 43 43 printf("%c", (char) ((hextet << 4) + index)); 44 44 45 printf(" "); 46 for (index = 0; index < 16; index++) 47 printf("%lc", (wchar_t) ((hextet << 4) + index)); 48 45 49 printf("\n"); 46 50 } 47 51 48 printf("\nExtended ASCII characters (128 - 255) using printf( %%c):\n");52 printf("\nExtended ASCII characters (128 - 255) using printf(\"%%c\") and printf(\"%%lc\"):\n"); 49 53 50 54 for (hextet = 8; hextet < 16; hextet++) { … … 55 59 printf("%c", (char) ((hextet << 4) + index)); 56 60 61 printf(" "); 62 for (index = 0; index < 16; index++) 63 printf("%lc", (wchar_t) ((hextet << 4) + index)); 64 57 65 printf("\n"); 58 66 } 59 67 68 printf("\nUTF-8 strings using printf(\"%%s\"):\n"); 69 printf("English: %s\n", "Quick brown fox jumps over the lazy dog"); 70 printf("Czech: %s\n", "Příliš žluťoučký kůň úpěl dábelské ódy"); 71 printf("Greek: %s\n", "Ὦ ξεῖν’, ἀγγέλλειν Λακεδαιμονίοις ὅτι τῇδε"); 72 printf("Hebrew: %s\n", "משוואת ברנולי היא משוואה בהידרודינמיקה"); 60 73 } 61 74
Note:
See TracChangeset
for help on using the changeset viewer.