~ubuntu-branches/ubuntu/oneiric/monodevelop/oneiric-updates

« back to all changes in this revision

Viewing changes to src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Search/WildcardSearchStrategy.cs

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2009-02-18 08:40:51 UTC
  • mfrom: (1.2.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090218084051-gh8m6ukvokbwj7cf
Tags: 1.9.2+dfsg-1ubuntu1
* Merge from Debian Experimental (LP: #330519), remaining Ubuntu changes:
  + debian/control:
    - Update for Gnome# 2.24
    - Add libmono-cairo1.0-cil to build-deps to fool pkg-config check

Show diffs side-by-side

added added

removed removed

Lines of Context:
163
163
                        CompilePattern(options.SearchPattern, options.IgnoreCase);
164
164
                }
165
165
                
166
 
                public ISearchResult FindNext(ITextIterator textIterator, SearchOptions options, bool reverseSearch)
 
166
                public SearchResult FindNext(ITextIterator textIterator, SearchOptions options, bool reverseSearch)
167
167
                {
168
168
                        if (reverseSearch)
169
169
                                throw new NotSupportedException ();
170
170
                                
171
171
                        int charCount = InternalFindNext(textIterator, options);
172
 
                        return charCount != -1 ? new DefaultSearchResult (textIterator, charCount) : null;
 
172
                        return charCount != -1 ? new SearchResult (textIterator, charCount) : null;
173
173
                }
174
174
                
175
175
                public bool SupportsReverseSearch (ITextIterator textIterator, SearchOptions options)