"Denis M. Wilson" <d...@oxytropis.plus.com> wrote: > Sorry, the macros I've written are .strchr and .strrchr. > > .index should not be too hard using direct method (KMP is too > complicated). I may have time to try, no promises...
Thank you. I had a mistaken presumption that it was something people would've already solved as a groff macro. Unless you find it a fun challenge, you needn't attempt it on my behalf. It seems like the right solution in the long run is to implement .index in groff's C code. —b9