From 24d35f5311541e09b1c1079539b1191fb9beebd1 Mon Sep 17 00:00:00 2001 From: Andy Heninger Date: Wed, 18 Apr 2012 21:38:54 +0000 Subject: [PATCH] ICU-9267 Change buffer creation in unshapeLamAlef() function. X-SVN-Rev: 31740 --- .../core/src/com/ibm/icu/text/CharsetRecog_sbcs.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/icu4j/main/classes/core/src/com/ibm/icu/text/CharsetRecog_sbcs.java b/icu4j/main/classes/core/src/com/ibm/icu/text/CharsetRecog_sbcs.java index 033612044b..c386bc613c 100644 --- a/icu4j/main/classes/core/src/com/ibm/icu/text/CharsetRecog_sbcs.java +++ b/icu4j/main/classes/core/src/com/ibm/icu/text/CharsetRecog_sbcs.java @@ -1204,19 +1204,18 @@ abstract class CharsetRecog_sbcs extends CharsetRecognizer { private byte[] unshapeLamAlef(byte[] inputBytes, int inputLen) { ByteBuffer resultBigBuffer = ByteBuffer.allocate(inputLen*2); - ByteBuffer resultBuffer; byte unshapedLamAlef[] = {(byte)0xb1, (byte)0x56}; - - + for (int i=0; i