Mercurial > projects > dil
diff trunk/src/dil/Messages.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 | 47c5099562c7 |
children | c24be8d4f6ab |
line wrap: on
line diff
--- a/trunk/src/dil/Messages.d Sun Feb 24 03:19:02 2008 +0100 +++ b/trunk/src/dil/Messages.d Mon Feb 25 02:56:22 2008 +0100 @@ -10,7 +10,7 @@ { // Lexer messages: IllegalCharacter, - InvalidUnicodeCharacter, +// InvalidUnicodeCharacter, InvalidUTF8Sequence, // '' UnterminatedCharacterLiteral, @@ -18,7 +18,7 @@ // #line ExpectedIdentifierSTLine, ExpectedIntegerAfterSTLine, - ExpectedFilespec, // Deprecated. +// ExpectedFilespec, UnterminatedFilespec, UnterminatedSpecialToken, // "" @@ -109,6 +109,7 @@ auto UndefinedDDocMacro = "DDoc macro '{}' is undefined"; auto UnterminatedDDocMacro = "DDoc macro '{}' has no closing ')'"; // Parser messages: + auto InvalidUTF8SequenceInString = "invalid UTF-8 sequence in string literal: '{0}'"; auto ModuleDeclarationNotFirst = "a module declaration is only allowed as the first declaration in a file"; auto StringPostfixMismatch = "string literal has mistmatching postfix character"; auto ExpectedIdAfterTypeDot = "expected identifier after '(Type).', not '{}'";