https://bugs.documentfoundation.org/show_bug.cgi?id=165930

--- Comment #8 from Eyal Rozenberg <[email protected]> ---
(In reply to Heiko Tietze from comment #7)

Well, we're just guessing... I would guess it should be something like:

  needle = Compile(patterm);
  while FindNext(haystack_iterator, needle) {
    DoSomeMagic();
  }

but even if it's just like you described it, you can still probably do:

  if (not ValidPattern(*params); {
    HandleInvalidPattern(*params);
  }
  else while FindNext(*params)
  {
    DoSomeMagic();
  }

or:

  else while FindNext(*params)
  {
    DoSomeMagic();
  }
  status = GetFindState();
  if (status == PatternIsInvalid) {
    HandleInvalidPattern(*params);
  }

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to