Mercurial > projects > dwt-addons
comparison dwtx/jface/internal/text/html/SubstitutionTextReader.d @ 134:51e6e63f930e
Regex fix for casts
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 24 Aug 2008 01:46:20 +0200 |
parents | 7d818bd32d63 |
children | 6dcb0baaa031 |
comparison
equal
deleted
inserted
replaced
133:7d818bd32d63 | 134:51e6e63f930e |
---|---|
100 | 100 |
101 int ch= fCharAfterWhiteSpace; | 101 int ch= fCharAfterWhiteSpace; |
102 if (ch is -1) { | 102 if (ch is -1) { |
103 ch= fReader.read(); | 103 ch= fReader.read(); |
104 } | 104 } |
105 if (fSkipWhiteSpace && Character.isWhitespace((char)ch)) { | 105 if (fSkipWhiteSpace && Character.isWhitespace(cast(wchar)ch)) { |
106 do { | 106 do { |
107 ch= fReader.read(); | 107 ch= fReader.read(); |
108 } while (Character.isWhitespace((char)ch)); | 108 } while (Character.isWhitespace(cast(wchar)ch)); |
109 if (ch !is -1) { | 109 if (ch !is -1) { |
110 fCharAfterWhiteSpace= ch; | 110 fCharAfterWhiteSpace= ch; |
111 return ' '; | 111 return ' '; |
112 } | 112 } |
113 } else { | 113 } else { |