This repository was archived by the owner on Aug 31, 2021. It is now read-only.
Commit 1f85320
committed
[[ Bug 22536 ]] Don't fail MCStringFindAndReplace if replacement not possible
This patch ensures that MCStringFindAndReplace won't fail if it determines
that the target string is native and the pattern string cannot ever be
native (and thus not exist in the target). The case this optimization occurs
is not hugely common as it requires the pattern string to have been 'checked'
at some point. The method will now just exit early in this case.1 parent 3435327 commit 1f85320
File tree
3 files changed
+18
-1
lines changed- docs/notes
- libfoundation/src
- tests/lcs/core/strings
3 files changed
+18
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5748 | 5748 | | |
5749 | 5749 | | |
5750 | 5750 | | |
5751 | | - | |
| 5751 | + | |
5752 | 5752 | | |
5753 | 5753 | | |
5754 | 5754 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
0 commit comments