mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2024-11-10 00:52:11 +01:00
Same change for the other get_slice_count.
This commit is contained in:
parent
6bfc78ec49
commit
4acfa61f58
@ -358,7 +358,7 @@ void String::trim_end() {
|
||||
}
|
||||
|
||||
int String::get_slice_count(const char splitter) const {
|
||||
int count = 0;
|
||||
int count = 1;
|
||||
|
||||
for (int i = 0; i < _size; ++i) {
|
||||
if (_data[i] == splitter) {
|
||||
|
Loading…
Reference in New Issue
Block a user