1. 17 Nov, 2018 1 commit
  2. 16 Nov, 2018 2 commits
    • Olly Betts's avatar
      Allow runtime/api.h to be used in C++ code · eac8be4d
      Olly Betts authored
      Conditionally add extern "C" { ... } around the function declarations
      for C++ compilers.
      
      Closes #90, reported by vvarma.
      eac8be4d
    • Olly Betts's avatar
      Use "substring" in kraaij_pohlmann stemmer · 1d5f4d40
      Olly Betts authored
      Make this stemmer use the same construct as the others:
      
          [substring] among (
              // cases
          )
      
      rather than:
      
          [among ( (])
              // cases
          )
      
      The second version seems more cryptic, and I suspect dates back to
      before substring was added to the language.
      
      Both result in almost identical code being generated - aside from
      different comments, the only difference is that the new version avoids
      an interim assignment to among_var in one case which is arguably better
      though the compiler will probably optimise both versions to the same
      machine code.
      1d5f4d40
  3. 14 Nov, 2018 1 commit
  4. 09 Nov, 2018 10 commits
  5. 08 Nov, 2018 1 commit
    • Olly Betts's avatar
      Handle 4-byte UTF-8 sequences · 496d1882
      Olly Betts authored
      Previously 'hop' and 'next' handled sequences of any length, but
      commands which look at the character value only handled sequences up to
      length 3.
      
      Fixes #89.
      496d1882
  6. 31 Oct, 2018 2 commits
    • Olly Betts's avatar
      Use more sensible initial input buffer size · f5d9bcf7
      Olly Betts authored
      Snowball programs are typically a few KB in size (with the current
      largest we ship being the Arabic stemmer at 17.1KB) so starting with
      a 10 byte input buffer and increasing its size by 50% plus 40 bytes
      each time it fills is inefficient - it needs up to 14 reallocations to
      load the sources for the stemmers we ship.
      
      Instead start at 8192 bytes and double the size each time we fill it.
      f5d9bcf7
    • Olly Betts's avatar
      Consistently omit space before postfix ++ · 06bac0b6
      Olly Betts authored
      06bac0b6
  7. 30 Oct, 2018 2 commits
  8. 29 Oct, 2018 4 commits
  9. 28 Jun, 2018 2 commits
  10. 26 Jun, 2018 1 commit
  11. 15 Jun, 2018 5 commits
  12. 13 Jun, 2018 1 commit
  13. 11 Jun, 2018 1 commit
    • Olly Betts's avatar
      [java] Fix lint check issues in generated Java code · 2df7a377
      Olly Betts authored
      The stemmer classes are only referenced in the example app via
      reflection, so add @SuppressWarnings("unused") for them.
      
      The stemmer classes override equals() and hashCode() methods from
      the standard java Object class, so mark these with @Override.
      
      Both suggested by GerritDeMeulder in #72.
      2df7a377
  14. 07 Jun, 2018 2 commits
  15. 06 Jun, 2018 1 commit
    • Olly Betts's avatar
      Support more versatile integer tests · a2bf6646
      Olly Betts authored
      Currently you can only perform an integer relational comparison where the
      left side is an integer variable.  This means several of the stemmers have
      to use a clumsy construct such as: $tmp = len $tmp > 3 - now they can
      instead perform the comparison directly: $(len > 3)
      a2bf6646
  16. 05 Jun, 2018 1 commit
  17. 04 Jun, 2018 3 commits