How does this compare to MikePopoloski/StringFormatter?
jamesford42 opened this issue · 3 comments
I was using StringBuilder, and just converted to using this:
MikePopoloski/StringFormatter
The project is dead, but it does work. I had to jiggle a few things to fully match the same AIP as StringBuilder, but now it does. Someone has added to it (and i have pulled it in) custom format specifiers for numbers, which might have some implementation issues, not sure on that yet.
So..
- Is anyone even aware of MikePopoloski/StringFormatter or by looking at it say what the likely comparison is to there?
- How well does this project here work as a 'drop in' StringBuilder replacement?
Actually I have a better question. So, this project looks like it has gotten a fair amount of use, from people with Unity (which i would also be using this for), and thats good, but it is an older project that cannot be upgraded, and is using 2020.3.32f1.
My first attempt of pulling the code from this project into my own (just the .csproj not the unity project) shows that it uses C# 8.0 language version features, so that is an issue. I can change the csproj to 8.0 but i suspect that might break things in the unity editor.
How well does this project here work as a 'drop in' StringBuilder replacement?
It's pretty close. Some method names are different or you might have to do some things with args but when I tried to do so, the main challenge I ran into was that there was not a built-in ReplaceAt()
for single characters (and the normal replace did too many bounds checks). Most other things I ran into were easy enough to refactor though.
Cannot speak to the unity side however.
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 30 days.