Changeset 183:c4643827733c
- Timestamp:
- 03/10/08 11:48:51
(9 months ago)
- Author:
- Frank Benoit <benoit@tionex.de>
- branch:
- default
- Message:
Added toStringzValidPtr to sync with dwt-linux
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r180 |
r183 |
|
| 321 | 321 | } |
|---|
| 322 | 322 | |
|---|
| 323 | | public char* toStringzValidPtr( char[] src ){ |
|---|
| 324 | | if( src ){ |
|---|
| 325 | | return src.toStringz(); |
|---|
| 326 | | } |
|---|
| 327 | | else{ |
|---|
| 328 | | static const char[] nullPtr = "\0"; |
|---|
| 329 | | return nullPtr.ptr; |
|---|
| 330 | | } |
|---|
| 331 | | } |
|---|
| 332 | | |
|---|
| 333 | 323 | static char[] toHex(uint value, bool prefix = true, int radix = 8){ |
|---|
| 334 | 324 | return tango.text.convert.Integer.toString( |
|---|