mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-07 22:44:49 +00:00
ICU-75 unescape rules during variable range scan (slow!)
X-SVN-Rev: 6283
This commit is contained in:
parent
4581a6a577
commit
b8821ea393
2 changed files with 16 additions and 4 deletions
|
@ -4,8 +4,8 @@
|
|||
* Corporation and others. All Rights Reserved.
|
||||
**********************************************************************
|
||||
* $Source: /xsrl/Nsvn/icu/icu4j/src/com/ibm/icu/text/TransliteratorParser.java,v $
|
||||
* $Date: 2001/10/17 19:17:06 $
|
||||
* $Revision: 1.4 $
|
||||
* $Date: 2001/10/17 20:09:17 $
|
||||
* $Revision: 1.5 $
|
||||
**********************************************************************
|
||||
*/
|
||||
package com.ibm.text;
|
||||
|
@ -918,6 +918,12 @@ class TransliteratorParser {
|
|||
if (str == null) {
|
||||
break;
|
||||
}
|
||||
// TODO This is getting too expensive -- not only
|
||||
// do we need to create all these line strings twice,
|
||||
// now we need to unescape them as well. Stop doing
|
||||
// scans; instead, use a 'use' pragma like this:
|
||||
// use variable range E400 EFFF;
|
||||
str = Utility.unescapeLeniently(str);
|
||||
int n = str.length();
|
||||
for (int i=0; i<n; ++i) {
|
||||
char c = str.charAt(i);
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
* Corporation and others. All Rights Reserved.
|
||||
**********************************************************************
|
||||
* $Source: /xsrl/Nsvn/icu/icu4j/src/com/ibm/text/Attic/TransliteratorParser.java,v $
|
||||
* $Date: 2001/10/17 19:17:06 $
|
||||
* $Revision: 1.4 $
|
||||
* $Date: 2001/10/17 20:09:17 $
|
||||
* $Revision: 1.5 $
|
||||
**********************************************************************
|
||||
*/
|
||||
package com.ibm.text;
|
||||
|
@ -918,6 +918,12 @@ class TransliteratorParser {
|
|||
if (str == null) {
|
||||
break;
|
||||
}
|
||||
// TODO This is getting too expensive -- not only
|
||||
// do we need to create all these line strings twice,
|
||||
// now we need to unescape them as well. Stop doing
|
||||
// scans; instead, use a 'use' pragma like this:
|
||||
// use variable range E400 EFFF;
|
||||
str = Utility.unescapeLeniently(str);
|
||||
int n = str.length();
|
||||
for (int i=0; i<n; ++i) {
|
||||
char c = str.charAt(i);
|
||||
|
|
Loading…
Add table
Reference in a new issue