find_suffixes_simple (FastRI::FullTextIndexer)

    # File lib/fastri/full_text_indexer.rb, line 41
      def find_suffixes_simple(string, word_re, nonword_re, offset)
        suffixes = []
        sc = StringScanner.new(string)
        until sc.eos?
          sc.skip(nonword_re)
          len = string.size
          loop do
            break if sc.pos == len
            suffixes << offset + sc.pos
            skipped_word = sc.skip(word_re)
            break unless skipped_word
            loop do
              skipped_nonword = sc.skip(nonword_re)
              break unless skipped_nonword
            end
          end
        end
        suffixes
      end