On 09/01/08 21:28, Robert Vojta wrote:
Hi,
imagine you have a text document with text elements like "{$s:name}",
"{$s:phone}", etc. (without quotes, separated by spaces to simplify
testing case). I'm trying to select whole word with ...
wordCursor.gotoNextWord( false );
wordCursor.gotoEndOfWord( true );
... and it works partially, because wordCursor.getString() returns
"{$s:name", "{$s:phone", etc. ( missing right "}" ). Shouldn't
wordCursor.getString() return "{$s:name}" when the word starts with
"{"?
Hi,
I just checked this in a OOO300 m3 and it worked differently. It marked
the "phone" part only.
The behavior of these functions depends on the break iterator.
What do you want to achieve with your code? If you want to replace those
tags then it might make sense to use the XSearchable interface and
search with regular expressions.
Regards,
Oliver
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]