File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -512,6 +512,8 @@ BlRunRopedText >> iterator: aFromIndex to: aToIndex [
512512 assert: [ aFromIndex > 0 or : [ aFromIndex = 0 and : [ aToIndex = 0 ] ] ]
513513 description: [ ' Start and end must be positive or both zero' ].
514514
515+ self ifEmpty: [ ^ BlEmptyTextIterator new ].
516+
515517 ^ BlRunRopedTextIterator text: self from: aFromIndex to: aToIndex
516518]
517519
Original file line number Diff line number Diff line change @@ -46,6 +46,13 @@ BlEmptyTextIterator >> hasPrevious [
4646 ^ false
4747]
4848
49+ { #category : #' iterator - enumeration' }
50+ BlEmptyTextIterator >> nextLineIndicesDo: aBlock [
51+ " do nothing"
52+
53+
54+ ]
55+
4956{ #category : #' iterator - accessing' }
5057BlEmptyTextIterator >> position [
5158 " Return current iterator position within a text"
@@ -61,6 +68,11 @@ BlEmptyTextIterator >> position: anInteger [
6168 self error: ' Cannot position a BlEmptyTextIterator' ]
6269]
6370
71+ { #category : #' iterator - enumeration' }
72+ BlEmptyTextIterator >> selectAttributes: aBlock [
73+ ^ #()
74+ ]
75+
6476{ #category : #accessing }
6577BlEmptyTextIterator >> text [
6678 " Return an original text that I iterate over"
You can’t perform that action at this time.
0 commit comments