Changeset 325:0c891bed575f for dwt/dwthelper/utils.d
- Timestamp:
- 11/30/08 03:43:39 (1 month ago)
- Files:
-
- dwt/dwthelper/utils.d (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
dwt/dwthelper/utils.d
r324 r325 524 524 while( searchRelCp !is 0 ){ 525 525 526 //Trace.formatln( "( i+2 < str.length ) = {}", ( i+2 < str.length ));527 //Trace.formatln( "( str[i+2] & 0xC0 ) is 0x80 ) = {}", (( str[i+2] & 0xC0 ) is 0x80 ));528 //Trace.formatln( "( str[i+1] & 0xC0 ) is 0x80 ) = {}", (( str[i+1] & 0xC0 ) is 0x80 ));529 //Trace.formatln( "( str[i ] & 0xF0 ) is 0xE0 ) = {}", (( str[i ] & 0xF0 ) is 0xE0 ));530 531 526 if( ( i < str.length ) 532 527 && (( str[i] & 0x80 ) is 0x00 )) … … 560 555 } 561 556 searchRelCp--; 562 //Trace.formatln(" . ");563 557 } 564 558 } … … 569 563 if( i < 0 ){ 570 564 return startIndex-1; 571 //Trace.formatln( "dwthelper.utils getRelativeCodePointOffset {}: str={}, startIndex={}, searchRelCp={}", __LINE__, str, startIndex, searchRelCp );572 //tango.text.convert.Utf.onUnicodeError( "invalid utf8 input", i );573 565 } 574 566 } while(( str[i] & 0xC0 ) is 0x80 );
