| | 667 | #if 0 |
|---|
| | 668 | { |
|---|
| | 669 | NSMutableString *nss = [NSMutableString string]; |
|---|
| | 670 | int i; |
|---|
| | 671 | |
|---|
| | 672 | for (i = 0; i < [div->text length]; i++) { |
|---|
| | 673 | if (bitfield_test(breakOpportunities, i)) |
|---|
| | 674 | [nss appendFormat:@"%c", '|']; |
|---|
| | 675 | |
|---|
| | 676 | [nss appendFormat:@"%C", [div->text characterAtIndex:i]]; |
|---|
| | 677 | } |
|---|
| | 678 | |
|---|
| | 679 | NSLog(@"breaks (div): \"%@\"", nss); |
|---|
| | 680 | } |
|---|
| | 681 | |
|---|
| | 682 | { |
|---|
| | 683 | NSMutableString *nss = [NSMutableString string]; |
|---|
| | 684 | int i; |
|---|
| | 685 | |
|---|
| | 686 | for (i = 0; i < lineLen; i++) { |
|---|
| | 687 | if (bitfield_test(breakOpportunities, i)) |
|---|
| | 688 | [nss appendFormat:@"%c", '|']; |
|---|
| | 689 | |
|---|
| | 690 | [nss appendFormat:@"%C", uline[i]]; |
|---|
| | 691 | } |
|---|
| | 692 | |
|---|
| | 693 | NSLog(@"breaks (uline): \"%@\"", nss); |
|---|
| | 694 | } |
|---|
| | 695 | #endif |
|---|
| | 696 | |
|---|
| 1226 | | status = UCFindTextBreak(breakLocator, kUCTextBreakLineMask, kUCTextBreakLeadingEdgeMask | (lastBreak ? kUCTextBreakLeadingEdgeMask : 0), uline, lineLen, lastBreak, &breakOffset); |
|---|
| 1227 | | |
|---|
| 1228 | | if (status != noErr || breakOffset == lineLen) break; |
|---|
| | 1256 | status = UCFindTextBreak(breakLocator, kUCTextBreakLineMask, kUCTextBreakLeadingEdgeMask | (lastBreak ? kUCTextBreakIterateMask : 0), uline, lineLen, lastBreak, &breakOffset); |
|---|
| | 1257 | |
|---|
| | 1258 | if (status != noErr || breakOffset >= lineLen) break; |
|---|