Jump to content

Flatten A Group String Pattern?


Recommended Posts

I'm sure this is an easy one, just not finding it. I'd like to take a string like "0-6:2 ,10" and expand that into a flattened list: "0 2 4 6 10"

I found:

//OP_Node.h
// The following function will take a standard pattern and expand
00386	 // all the groups out of the pattern, leaving a simple pattern
00387	 // in the result.
00388	 bool				 expandGroupPattern(const char *pattern,
00389											 UT_String &result,
00390											 bool expandToFullPaths = false);

I didn't seem to do anything other then just return the same pattern to me. Maybe this is more for group name patterns.

Thanks

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...