mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-16 15:24:10 +02:00
Merge pull request #222 from mundusnine/master
Update String.bf to replace all occurrences of char even as lastChar
This commit is contained in:
commit
1eb63173d3
1 changed files with 1 additions and 1 deletions
|
@ -1937,7 +1937,7 @@ namespace System
|
||||||
{
|
{
|
||||||
// Optimized version for single-character replacements
|
// Optimized version for single-character replacements
|
||||||
char8 findC = find[0];
|
char8 findC = find[0];
|
||||||
while (inIdx < mLength - find.mLength)
|
while (inIdx < mLength)
|
||||||
{
|
{
|
||||||
if (ptr[inIdx] == findC)
|
if (ptr[inIdx] == findC)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue