I am attempting to create a function in C++ that implements Levenshtein distance algorithim (determine the distance between two strings) where distance is the number of insertions, deletions and substitutions necessary to make the two strings equivalent. Unfortunately, my C++ skills in Unreal are not up to the task of implementing this. I am able to create basic functions in C++ and then implement them in blueprints–which is the goal of this project. However, I have been unable to do so with this task because of the complexity of the algorithim and my lack of knowing how to work with the unreal API.
Forgive my ignorance, but whats stopping you from just taking/using the code from one of your links? not seeing anything that wouldn’t work with UE4 as far as i can tell.
No the ignorance is on my part–that much is for sure. I have attempted that several times and I get a variety of errors when I try to compile. I also attempted to re-write the algorithim myself in C++ for unreal but I have difficulty even doing this from the very beginning. I suspect that this is because the example code uses libraries that don’t jive with C++. I might be wrong on that last point. At the very least I don’t know how to make them jive–that is my problem. Sorry for being a nube.
Yes, that is the difficulty approaching the unreal API from a novice perspective. But I actually figured out a workaround this afternoon and implemented the entire algorithm using blueprints. Works quite nice for my needs. If anyone is interested in the blueprint solution PM me.