comparison mde/content/Content.d @ 163:24d77c52243f

Provided sensible conversions for setting the value of one AStringContent from another, along with unittest. Updated layout and Translation unittests to run.
author Diggory Hardy <diggory.hardy@gmail.com>
date Sat, 23 May 2009 15:47:32 +0200
parents 2476790223b8
children bb2f1a76346d
comparison
equal deleted inserted replaced
162:2476790223b8 163:24d77c52243f
136 : null; 136 : null;
137 } 137 }
138 138
139 /** A naive implementation which assumes the passed content is 139 /** A naive implementation which assumes the passed content is
140 * incompatible. */ 140 * incompatible. */
141 override bool setContent (IContent) { 141 override bool set (IContent) {
142 return false; 142 return false;
143 } 143 }
144 144
145 protected: 145 protected:
146 char[] symbol; 146 char[] symbol;
188 188
189 override void append (Content x) { 189 override void append (Content x) {
190 list_ ~= x; 190 list_ ~= x;
191 } 191 }
192 192
193 override bool setContent (IContent c) { 193 override bool set (IContent c) {
194 IContentList cl = cast (IContentList) c; 194 IContentList cl = cast (IContentList) c;
195 if (cl !is null) { 195 if (cl !is null) {
196 list_ = cl.list(); 196 list_ = cl.list();
197 return true; 197 return true;
198 } 198 }