History log of /libcore/luni/src/main/native/libcore_icu_NativeConverter.cpp
Revision Date Author Comments
1bdc6bc1c72b033ed860360e69fc9f1f1121579b 22-Apr-2016 Narayan Kamath <narayan@google.com> CharsetEncoder/Decoder: Use NativeAllocationRegistry.

Works around issues with finalizer ordering.

bug: 26076560

(cherry picked from commit c672ce800bbc27cb79f78d9204a51ec06ef1ec3d)

Change-Id: I434842966fe2cda70aa955250162c562ce0f8991
8fbe7d8a9df5f464da59a2938acaf211845b89da 26-Jan-2016 Yi Kong <yikong@google.com> Check for exceptions before calling NewObject

JNI functions while an exception is pending is not allowed.

Bug: 26763262
Change-Id: I679961961a0063f8657558cc4f0728571db336fd
a04b5c3d39232c7616591883ee2124520e3ab622 06-Mar-2015 Elliott Hughes <enh@google.com> Explicitly specify the icu:: namespace.

Bug: 15350832
Change-Id: I8d84f3e50b643806ccf01190797c69ce6445b539
b3aacde3d8af759ee4a7b395c636ea360547d92d 05-Nov-2014 Ian Rogers <irogers@google.com> Move from UniquePtr to std::unique_ptr.

Switch from stlport to libcxx as stlport lacks std::unique_ptr.

Change-Id: I45a3588a8ecf4689521f1df6654ed279a6d0669e
4e4b93ffe988b0a597835d852489573b57e0f3fe 30-Jul-2014 Narayan Kamath <narayan@google.com> Don't account buffer.arrayOffset() twice.

data[OUTPUT_OFFSET] from the perspective of native
code must always be the offset from the start of the
buffer passed in to it.

Change-Id: I4a5c9595aebd105c57ce2239dc95cf85d5bd6256
41c3d56dfdc92bd5710bdaf901f45d6c4da8fd0d 30-Jul-2014 Narayan Kamath <narayan@google.com> Don't account buffer.arrayOffset() twice.

data[OUTPUT_OFFSET] from the perspective of native
code must always be the offset from the start of the
buffer passed in to it.

bug: 16449607

(cherry picked from commit 4e4b93ffe988b0a597835d852489573b57e0f3fe)

Change-Id: Iddd3a835b72ae122c10e802bad92baffd0a85283
bd024cc687470a008999d96fd3af4a1261413d55 26-Nov-2013 Narayan Kamath <narayan@google.com> Fix several decoder bugs.

- NativeConverter should report unterminated character
sequences to managed code.
- CharsetDecoderIcu should report those errors correctly
from flush()
- InputStreamReader should check the return value of
flush() and not ignore it altogether.

bug: 11665359
bug: 10729779

Change-Id: Ic678a645a4ef2b3fe70e2c900c0cd393679f1037
f15b280ac1c2e32f7becdb314440c2999dc8d204 26-Nov-2013 Narayan Kamath <narayan@google.com> Fix an ASCIICharsetEncoderTest testcase.

Deal with truncated char sequences correctly.

bug: 10729779
Change-Id: I232b0ec899084270a6d621e6c7292ef8b94f8f7d
aaf01db628576a4e8c76c23b94d12adeefb7bbae 26-Aug-2013 Elliott Hughes <enh@google.com> Fix the Charset alias generation to use the correct icu4c API.

Bug: 10492721

(cherry picked from commit 783a57a7ece339bc246925e328bc82b50cae427a)

Change-Id: I53bbdf459944c6b5bcb134cae29c541bba17d2f8
783a57a7ece339bc246925e328bc82b50cae427a 26-Aug-2013 Elliott Hughes <enh@google.com> Fix the Charset alias generation to use the correct icu4c API.

Bug: 10492721
Change-Id: Ie81b8aca9d7531d0fd8476ccab78653b0aa68755
f5d8857b623192a985e449453de5bf1efaa4ea79 16-Aug-2013 Elliott Hughes <enh@google.com> Fix a bunch of Charset tests.

The isRegistered test is still failing. The problem is that icu4c's
convrtrs.txt has names like "windows-1252" that are both the canonical
name for one charset and an alias for another legacy charset. I need
to work out how to resolve that.

Bug: 10210999

(cherry picked from commit ea1caf4ccc5c2255f384c0774aa9e055763a6a41)

Change-Id: I83cf1b9ae1d29f9956f443ef914a3e473e0f4692
ea1caf4ccc5c2255f384c0774aa9e055763a6a41 16-Aug-2013 Elliott Hughes <enh@google.com> Fix a bunch of Charset tests.

The isRegistered test is still failing. The problem is that icu4c's
convrtrs.txt has names like "windows-1252" that are both the canonical
name for one charset and an alias for another legacy charset. I need
to work out how to resolve that.

Bug: 10210999
Change-Id: If3425321c814622e4f54b2efca95a767bd16c080
5ec6bf8d033754e06a463adb091d2c0afd0755ac 08-Aug-2013 Elliott Hughes <enh@google.com> Fix various Charset tests, clean up the implementation.

Bug: 10211558
Bug: 10211378
Change-Id: Ib3f97430f62163c0459c53e0c282ae0ca840e0af
3aac4ddc4d17c07fa8b4908069d23d5401a77993 05-Feb-2013 Elliott Hughes <enh@google.com> Add icu4c-backed transliteration.

Change-Id: I4194810646a2a0661331aaf941fb5f99ce7758b1
6c1e5f4ad36c1f51687aa2b059e998a7c2db2e36 26-Jan-2013 Elliott Hughes <enh@google.com> Manually update the libcore native code.

Cherry-picking all the individual tiny cleanups from the internal branch was
too hard.

Change-Id: Ib97643d3502295685390854c9edd97c93c4c2ecf
5ec69b20ab9b3e2dcbe225d548168b09afbbbac2 24-Jul-2012 Elliott Hughes <enh@google.com> Clean up ICU error reporting.

Throw all ICU exceptions from the native side, and include the name of the
function that failed.

Bug: 5037042
Change-Id: I49b5493a7e7365226d612479294b5b8f47ec4e8c
7cd6760f7045d771faae8080a8c6150bf678f679 04-May-2012 Elliott Hughes <enh@google.com> Make libjavacore independent of libnativehelper for the PDK.

Bug: 6369821
Change-Id: Ie038571a5dac1f301c0c3c6fb84df432e67b62c0
bef9ec33e1368f57c731fce63b6a8c61628c64b0 19-Apr-2011 Elliott Hughes <enh@google.com> Clean up ICU exception throwing.

Change-Id: Ifce086e1fb20b7cb99673f4d38c8c56144328295
57d0a10f4fa6cae6d5c63b4f799e048e83c5d11e 03-Mar-2011 Elliott Hughes <enh@google.com> Make all filenames match their classes.

Change-Id: I2c9f95a27ee3881fc609e3e4f1468205c701215d