BurntSushi / BurntSushi/bstr

Incorrect Output rfind()

Open
#175 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
1.1k
Forks
77
PR merge metrics
No merged PRs in 30d

Description

```
let haystack_str = BStr::new("日本語テキストです。0123456789。E");
let pos = haystack_str.rfind("。");
println!("{}", pos.unwrap());
```
Output: 50
Expected output: 20

How to fix it?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.