Quantcast
Channel: MicroStation Programming Forum - Recent Threads
Viewing all articles
Browse latest Browse all 7260

RE: [CONNECT C++] Use TextBlock::FindText() to locate "special" characters in a string

$
0
0

[quote user="Bruce Reeves SRNS"]Using std::regex[/quote]

That's for ASCII strings.  For Unicode, use std::wregex; (as in my example).

TextBlock::FindTextParametersPtr  findParams;
...
findParams->SetUseRegularExpressions(true);

Perhaps you omitted some code when you originally posted, but as shown findParams is not valid.  You need to create it...

TextBlock::FindTextParametersPtr  findParams = TextBlock::FindTextParameters::Create ();
// UseRegularExpressions => false MatchWholeWords => false MatchCase => false
...
findParams->SetUseRegularExpressions(true);

Viewing all articles
Browse latest Browse all 7260

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>