Is there an easy way to do this?
--
Fred K
I've tried using the ParseMapping, without success. The reason is that
the input to XmStringParseText is a char*, not an XmString. So I still
have to convert the original XmString to a char*, thus losing all of
the
tags associated with each component.
--
Fred K
However, I did come up with a solution.
In a loop, I call XmStringGetNextSegment, which returns the text, the
tag, and whether this is a separator. I create a new XmString with
that
text and tag (if it is a separator, I use my substitute string), and
concatenate
the new strings together.
The manual says XmStringGetNextSegment is obsolete, replaced by
XmStringGetNextTriple, which is much, much more difficult to work
with
to get the above results.
--
Fred K