Skip to content

{Source,Buffer}.indexOf(ByteString, Int) should return start index for empty ByteString #423

Open
@fzhinkin

Description

For consistency with CharSequence.indexOf (which out functions are mimicking), Source.indexOf(BS, Int) and Buffer.indexOf(BS, Int) should return a start index (0, by default) when byte string to search is empty.

Currently, both functions return 0 (disregard startIndex value).

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions