Commit 0475b94
authored
Added contexts and changed how pcre2_compile_java()-method is called (#2)
* Changed how compile function length parameter is passed to pcre2. Added context parametrization. Added extra_options parametrization for pcre2_compile.
* Cleaned up code
* Added IDE settings to gitignore, added slf4j for error logging, added rc parameter to RegexStruct for passing match error codes to java.
* Added IDE settings to gitignore again
* Added IDE settings to gitignore again 2
* Added IDE settings to gitignore again 3
* Added slf4j-simple dependency, removed slf4j-nop dependency, added slf4j tests, changed no-match logging level to debug, added IllegalStateExcecption and IllegalArgumentException for error handling where relevant.
* Added errorcode cases to match error handling.
* Overhauled pcre2_compile_java() to return a struct with both compile data and error data. Ready to implement pcre2_get_error_message() to translate error codes to textual error messages in java.
* Added pcre2_translate_error_code() function for getting textual error messages
* Added PatternSyntaxException for pcre2_jcompile()
* Improved match exception handling and added more test cases.
* Removed redundant logging from exception handling.
* Added pcre2_get_utf8(), pcre2_check_utf8(), checkoptionzero() and pcre2_get_crlf_is_newline() functions for handling the recoverable matching errors.
* Fixed compile context memory release bug. Creating comprehensive example for using the library and all its functions.
* Fixed bug in matching error handling.
* Fixed bugs, polished Main()-function example, found confusing bug around pcre2_translate_error_code() which still needs attention.
* Replaced broken pcre2_translate_error_code() with working pcre2_translate_error_code_alternative().
* Fixed nullpointerexception (hopefully)
* Fixed nullpointerexception (again)
* Fixed pcre2_translate_error_code_alternative() malloc error handling
* fixed bugs in matching exception handling, adding assertions to tests
* fixed checkoptionzero()
* fixed stuff, cleaned up code, added assertions to test cases.
* Changed slf4j-simple scope to test
* fixing test cases and example
* Fixed enforcing the execution of assertions in test cases.1 parent 7aa0f32 commit 0475b94
10 files changed
Lines changed: 1255 additions & 829 deletions
File tree
- .idea
- src
- main
- c
- java/org/teragrep
- test/java/org/teragrep
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
10 | 12 | | |
| 13 | + | |
11 | 14 | | |
12 | 15 | | |
13 | 16 | | |
| |||
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
43 | 54 | | |
44 | 55 | | |
45 | 56 | | |
| |||
0 commit comments