comparison trunk/src/dil/Unicode.d @ 747:00f872d949ea

Added method scanCommentText() to DDocEmitter. Added method writeParams() and scanCodeSection(). Added method scanMacro() to MacroParser. Made fixes and improvements to the MacroExpander. Applied other minor fixes.
author Aziz K?ksal <aziz.koeksal@gmail.com>
date Mon, 11 Feb 2008 03:15:45 +0100
parents 35184354a502
children 4579e8505d5e
comparison
equal deleted inserted replaced
746:32a8ddd330f8 747:00f872d949ea
29 { 29 {
30 return 0xFDD0 <= d && d <= 0xFDEF || // 32 30 return 0xFDD0 <= d && d <= 0xFDEF || // 32
31 d <= 0x10FFFF && (d & 0xFFFF) >= 0xFFFE; // 34 31 d <= 0x10FFFF && (d & 0xFFFF) >= 0xFFFE; // 34
32 } 32 }
33 33
34 /// Returns true if this is a trail byte of a UTF-8 sequence? 34 /// Returns: true if this is a trail byte of a UTF-8 sequence.
35 bool isTrailByte(ubyte b) 35 bool isTrailByte(ubyte b)
36 { 36 {
37 return (b & 0xC0) == 0x80; // 10xx_xxxx 37 return (b & 0xC0) == 0x80; // 10xx_xxxx
38 } 38 }
39 39
40 /// Returns true if this is a lead byte of a UTF-8 sequence. 40 /// Returns: true if this is a lead byte of a UTF-8 sequence.
41 bool isLeadByte(ubyte b) 41 bool isLeadByte(ubyte b)
42 { 42 {
43 return (b & 0xC0) == 0xC0; // 11xx_xxxx 43 return (b & 0xC0) == 0xC0; // 11xx_xxxx
44 } 44 }
45 45