cfad47cfa3/t3compiler/tads3/test/data/charset.t

4b825dc642cb6eb9a060e54bf8d69288fbee4904cfad47cfa334b206c65f22086bcc5d63e6f70944
1
/*
2
 *   character set mappings - this file was prepared with code page 1252
3
 */
4
5
#include "t3.h"
6
#include "t3test.h"
7
#include "tads.h"
8
9
_say_embed(str) { tadsSay(str); }
10
11
_main(args)
12
{
13
    t3SetSay(&_say_embed);
14
    main();
15
}
16
17
main()
18
{
19
    local str;
20
    
21
    "Welcome to the character set test!\n
22
    Here are some accented A's: ÀÁÂÃÄÅàáâãäå\n
23
    How about some accented E's: ÈÉÊËèéêë\n
24
    That should do it!\n";
25
26
    /* set the string to something wacky to look at in the debugger */
27
    str = 'ÀÁÂÃÄÅàáâãäå\u1234\uABCD\u7f7f/Hello!\n\b\t\015\001\\$@';	
28
29
    "Try entering some text!\n> ";
30
    str = inputLine();
31
    "You entered \"<<str>>\" = ";
32
    for (local i = 1 ; i <= str.length() ; ++i)
33
        "<<toString(t3test_get_charcode(str.substr(i, 1)), 16)>> ";
34
    "\n";
35
}
36