1. 21 Nov, 2018 1 commit
  2. 20 Nov, 2018 1 commit
  3. 18 Nov, 2018 4 commits
  4. 17 Nov, 2018 1 commit
  5. 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
  6. 14 Nov, 2018 1 commit
  7. 09 Nov, 2018 10 commits
  8. 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
  9. 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
  10. 30 Oct, 2018 2 commits
  11. 29 Oct, 2018 4 commits
  12. 28 Jun, 2018 2 commits
  13. 26 Jun, 2018 1 commit
  14. 15 Jun, 2018 5 commits
  15. 13 Jun, 2018 1 commit
  16. 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
  17. 07 Jun, 2018 1 commit