Changeset 124:1da8c82b1c84
- Timestamp:
- 02/11/08 20:21:26
(1 year ago)
- Author:
- Frank Benoit <benoit@tionex.de>
- branch:
- default
- Message:
Add: hasString for ResourceBundle? to indicate if the string has length 0 or is not present
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r84 |
r124 |
|
| 35 | 35 | //tango.io.Stdout.Stdout.formatln( "properties put {} startline", __LINE__ ); |
|---|
| 36 | 36 | readLine(); |
|---|
| 37 | | line = tango.text.Util.trim( line ); |
|---|
| | 37 | line = line.trim(); |
|---|
| 38 | 38 | if( line.length is 0 ){ |
|---|
| 39 | 39 | //tango.io.Stdout.Stdout.formatln( "properties put {} was 0 length", __LINE__ ); |
|---|
| … | … | |
| 62 | 62 | case 'n': c = '\n'; break; |
|---|
| 63 | 63 | case '\\': c = '\\'; break; |
|---|
| 64 | | default: c = '?'; break; |
|---|
| | 64 | default: break; |
|---|
| 65 | 65 | } |
|---|
| 66 | 66 | } |
|---|
| … | … | |
| 90 | 90 | } |
|---|
| 91 | 91 | if( iskeypart ){ |
|---|
| 92 | | tango.io.Stdout.Stdout.formatln( "dwt.dwthelper.ResourceBundle ctor cannot find '='." ); |
|---|
| | 92 | //tango.io.Stdout.Stdout.formatln( "dwt.dwthelper.ResourceBundle ctor cannot find '='." ); |
|---|
| 93 | 93 | continue; |
|---|
| 94 | 94 | } |
|---|
| 95 | | key = tango.text.Util.trim( key ); |
|---|
| 96 | | value = tango.text.Util.trim(value); |
|---|
| | 95 | key = key.trim(); |
|---|
| | 96 | value = value.trim(); |
|---|
| 97 | 97 | //tango.io.Stdout.Stdout.formatln( "properties put {}=>{}", key, value ); |
|---|
| 98 | 98 | |
|---|
| … | … | |
| 100 | 100 | //tango.io.Stdout.Stdout.formatln( "properties put {}", __LINE__ ); |
|---|
| 101 | 101 | } |
|---|
| | 102 | } |
|---|
| | 103 | |
|---|
| | 104 | public bool hasString( char[] key ){ |
|---|
| | 105 | return ( key in map ) !is null; |
|---|
| 102 | 106 | } |
|---|
| 103 | 107 | |
|---|