Changeset 8565a42 in mainline for uspace/app/tester/print/print4.c
- Timestamp:
- 2018-03-02T20:34:50Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a1a81f69, d5e5fd1
- Parents:
- 3061bc1 (diff), 34e1206 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-02 20:34:50)
- git-committer:
- GitHub <noreply@…> (2018-03-02 20:34:50)
- File:
-
- 1 edited
-
uspace/app/tester/print/print4.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/tester/print/print4.c
r3061bc1 r8565a42 35 35 { 36 36 TPRINTF("ASCII printable characters (32 - 127) using printf(\"%%c\") and printf(\"%%lc\"):\n"); 37 37 38 38 uint8_t group; 39 39 for (group = 1; group < 4; group++) { 40 40 TPRINTF("%#x: ", group << 5); 41 41 42 42 uint8_t index; 43 43 for (index = 0; index < 32; index++) 44 44 TPRINTF("%c", (char) ((group << 5) + index)); 45 45 46 46 TPRINTF(" "); 47 47 for (index = 0; index < 32; index++) 48 48 TPRINTF("%lc", (wint_t) ((group << 5) + index)); 49 49 50 50 TPRINTF("\n"); 51 51 } 52 52 53 53 TPRINTF("\nExtended ASCII characters (128 - 255) using printf(\"%%lc\"):\n"); 54 54 55 55 for (group = 4; group < 8; group++) { 56 56 TPRINTF("%#x: ", group << 5); 57 57 58 58 uint8_t index; 59 59 for (index = 0; index < 32; index++) 60 60 TPRINTF("%lc", (wint_t) ((group << 5) + index)); 61 61 62 62 TPRINTF("\n"); 63 63 } 64 64 65 65 TPRINTF("\nUTF-8 strings using printf(\"%%s\"):\n"); 66 66 TPRINTF("English: %s\n", "Quick brown fox jumps over the lazy dog"); … … 71 71 TPRINTF("Russian: %s\n", "Леннон познакомился с художницей-авангардисткой"); 72 72 TPRINTF("Armenian: %s\n", "Սկսեց հրատարակվել Երուսաղեմի հայկական"); 73 73 74 74 TPRINTF("\nUTF-32 strings using printf(\"%%ls\"):\n"); 75 75 TPRINTF("English: %ls\n", L"Quick brown fox jumps over the lazy dog"); … … 80 80 TPRINTF("Russian: %ls\n", L"Леннон познакомился с художницей-авангардисткой"); 81 81 TPRINTF("Armenian: %ls\n", L"Սկսեց հրատարակվել Երուսաղեմի հայկական"); 82 82 83 83 return NULL; 84 84 }
Note:
See TracChangeset
for help on using the changeset viewer.
