Mercurial > projects > dwt-linux
comparison dwt/internal/image/PngChunk.d @ 238:380bad9f6852
reverted char[] to String
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 05 May 2008 00:42:55 +0200 |
parents | 08789b28bdf3 |
children |
comparison
equal
deleted
inserted
replaced
237:98b80b00af79 | 238:380bad9f6852 |
---|---|
362 | 362 |
363 /** | 363 /** |
364 * Provided so that subclasses can override and add | 364 * Provided so that subclasses can override and add |
365 * data to the toString() call. | 365 * data to the toString() call. |
366 */ | 366 */ |
367 char[] contributeToString() { | 367 String contributeToString() { |
368 return ""; | 368 return ""; |
369 } | 369 } |
370 | 370 |
371 /** | 371 /** |
372 * Returns a string containing a concise, human-readable | 372 * Returns a string containing a concise, human-readable |
373 * description of the receiver. | 373 * description of the receiver. |
374 * | 374 * |
375 * @return a string representation of the event | 375 * @return a string representation of the event |
376 */ | 376 */ |
377 public override char[] toString() { | 377 public override String toString() { |
378 char[] buffer = Format( "{\n\tLength: {}\n\tType: {}{}\n\tCRC: {:X}\n}", | 378 String buffer = Format( "{\n\tLength: {}\n\tType: {}{}\n\tCRC: {:X}\n}", |
379 getLength(), | 379 getLength(), |
380 cast(char[]) getTypeBytes(), | 380 cast(String) getTypeBytes(), |
381 contributeToString(), | 381 contributeToString(), |
382 getCRC()); | 382 getCRC()); |
383 return buffer; | 383 return buffer; |
384 } | 384 } |
385 | 385 |