The function in objectivec_helpers.cc that's referenced also splits segments if they come after a digit, which wasn't being handled correctly.
e.g. vector3f -> Vector3F
This sadly makes this function a lot more complicated (read: gross), I naively transliterated the function, so I have no doubt that this could be made way better.
Specifically, I'd be slightly concerned about starlark performance if you were using this for some absurd number of types.
Anyway, regardless of actual implementation, this fixes a bug I was hitting that I suppose was rather obscure.
The function in
objectivec_helpers.cc
that's referenced also splits segments if they come after a digit, which wasn't being handled correctly.e.g.
vector3f
->Vector3F
This sadly makes this function a lot more complicated (read: gross), I naively transliterated the function, so I have no doubt that this could be made way better. Specifically, I'd be slightly concerned about starlark performance if you were using this for some absurd number of types.
Anyway, regardless of actual implementation, this fixes a bug I was hitting that I suppose was rather obscure.