Rewrite java.util.regex to use ICU's C++ API.
I've also removed a bunch of dead code and changed the interface to reduce the
number of JNI transitions. Error checking is more uniform, various special
cases have been removed, and we pass all the tests referenced by
libcore/luni/src/test/java/tests/regex/AllTests.java for the first time.
This should also be a stepping-stone to fixing http://b/2777924, removing the
need to copy the input string to the native heap.
Bug: 2587040
Change-Id: I62685a2384db441cd02df159e117187f3175e10d
8 files changed