comparison trunk/src/lang_en.d @ 789:c1d5cfd7aa44

Implemented string literal conversion. Removed two MID messages. Added MSG.InvalidUTF8SequenceInString. Added toUTF16() and toUTF32(). Fixed escape sequences. Added formatBytes() and findInvalidUTF8Sequence().
author Aziz K?ksal <aziz.koeksal@gmail.com>
date Mon, 25 Feb 2008 02:56:22 +0100
parents 3ead178e0662
children
comparison
equal deleted inserted replaced
788:139c9a6a39a8 789:c1d5cfd7aa44
6 string lang_code = "en"; 6 string lang_code = "en";
7 7
8 string[] messages = [ 8 string[] messages = [
9 // Lexer messages: 9 // Lexer messages:
10 "illegal character found: '{0}'", 10 "illegal character found: '{0}'",
11 "invalid Unicode character.", 11 // "invalid Unicode character.",
12 "invalid UTF-8 sequence.", 12 "invalid UTF-8 sequence: '{0}'",
13 // '' 13 // ''
14 "unterminated character literal.", 14 "unterminated character literal.",
15 "empty character literal.", 15 "empty character literal.",
16 // #line 16 // #line
17 "expected 'line' after '#'.", 17 "expected 'line' after '#'.",
18 "integer expected after #line", 18 "integer expected after #line",
19 `expected filespec string (e.g. "path\to\file".)`, 19 // `expected filespec string (e.g. "path\to\file".)`,
20 "unterminated filespec string.", 20 "unterminated filespec string.",
21 "expected a terminating newline after special token.", 21 "expected a terminating newline after special token.",
22 // "" 22 // ""
23 "unterminated string literal.", 23 "unterminated string literal.",
24 // x"" 24 // x""
32 "unterminated raw string.", 32 "unterminated raw string.",
33 "unterminated back quote string.", 33 "unterminated back quote string.",
34 // \x \u \U 34 // \x \u \U
35 "found undefined escape sequence '{0}'.", 35 "found undefined escape sequence '{0}'.",
36 "found invalid Unicode escape sequence '{0}'.", 36 "found invalid Unicode escape sequence '{0}'.",
37 "insufficient number of hex digits in escape sequence.", 37 "insufficient number of hex digits in escape sequence: '{0}'",
38 // \&[a-zA-Z][a-zA-Z0-9]+; 38 // \&[a-zA-Z][a-zA-Z0-9]+;
39 "undefined HTML entity '{0}'", 39 "undefined HTML entity '{0}'",
40 "unterminated HTML entity '{0}'.", 40 "unterminated HTML entity '{0}'.",
41 "HTML entities must begin with a letter.", 41 "HTML entities must begin with a letter.",
42 // integer overflows 42 // integer overflows
64 "expected one or more base classes, not '{0}'.", 64 "expected one or more base classes, not '{0}'.",
65 "base classes are not allowed in forward declarations.", 65 "base classes are not allowed in forward declarations.",
66 66
67 // Help messages: 67 // Help messages:
68 `dil v{0} 68 `dil v{0}
69 Copyright (c) 2007 by Aziz Köksal. Licensed under the GPL3. 69 Copyright (c) 2007-2008 by Aziz Köksal. Licensed under the GPL3.
70 70
71 Subcommands: 71 Subcommands:
72 {1} 72 {1}
73 Type 'dil help <subcommand>' for more help on a particular subcommand. 73 Type 'dil help <subcommand>' for more help on a particular subcommand.
74 74