mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-06 22:15:31 +00:00
Delimit script names in class name with $
X-SVN-Rev: 443
This commit is contained in:
parent
e4562a1b42
commit
110ad9d584
2 changed files with 8 additions and 8 deletions
|
@ -198,7 +198,7 @@ import java.text.MessageFormat;
|
|||
* <p>Copyright © IBM Corporation 1999. All rights reserved.
|
||||
*
|
||||
* @author Alan Liu
|
||||
* @version $RCSfile: Transliterator.java,v $ $Revision: 1.1 $ $Date: 1999/12/20 18:29:21 $
|
||||
* @version $RCSfile: Transliterator.java,v $ $Revision: 1.2 $ $Date: 1999/12/20 19:02:27 $
|
||||
*/
|
||||
public abstract class Transliterator {
|
||||
/**
|
||||
|
@ -319,7 +319,7 @@ public abstract class Transliterator {
|
|||
* to this String to obtain the class name.
|
||||
*/
|
||||
private static final String RB_RULE_BASED_PREFIX =
|
||||
"com.ibm.text.resources.TransliterationRule";
|
||||
"com.ibm.text.resources.TransliterationRule$";
|
||||
|
||||
/**
|
||||
* Resource bundle key for the RuleBasedTransliterator rule.
|
||||
|
@ -763,8 +763,8 @@ public abstract class Transliterator {
|
|||
} else {
|
||||
String IDLeft = ID.substring(0, i);
|
||||
String IDRight = ID.substring(i+1);
|
||||
resourceName += isReverse ? (IDRight + IDLeft)
|
||||
: (IDLeft + IDRight);
|
||||
resourceName += isReverse ? (IDRight + '$' + IDLeft)
|
||||
: (IDLeft + '$' + IDRight);
|
||||
}
|
||||
try {
|
||||
ResourceBundle resource = ResourceBundle.getBundle(resourceName);
|
||||
|
|
|
@ -198,7 +198,7 @@ import java.text.MessageFormat;
|
|||
* <p>Copyright © IBM Corporation 1999. All rights reserved.
|
||||
*
|
||||
* @author Alan Liu
|
||||
* @version $RCSfile: Transliterator.java,v $ $Revision: 1.1 $ $Date: 1999/12/20 18:29:21 $
|
||||
* @version $RCSfile: Transliterator.java,v $ $Revision: 1.2 $ $Date: 1999/12/20 19:02:27 $
|
||||
*/
|
||||
public abstract class Transliterator {
|
||||
/**
|
||||
|
@ -319,7 +319,7 @@ public abstract class Transliterator {
|
|||
* to this String to obtain the class name.
|
||||
*/
|
||||
private static final String RB_RULE_BASED_PREFIX =
|
||||
"com.ibm.text.resources.TransliterationRule";
|
||||
"com.ibm.text.resources.TransliterationRule$";
|
||||
|
||||
/**
|
||||
* Resource bundle key for the RuleBasedTransliterator rule.
|
||||
|
@ -763,8 +763,8 @@ public abstract class Transliterator {
|
|||
} else {
|
||||
String IDLeft = ID.substring(0, i);
|
||||
String IDRight = ID.substring(i+1);
|
||||
resourceName += isReverse ? (IDRight + IDLeft)
|
||||
: (IDLeft + IDRight);
|
||||
resourceName += isReverse ? (IDRight + '$' + IDLeft)
|
||||
: (IDLeft + '$' + IDRight);
|
||||
}
|
||||
try {
|
||||
ResourceBundle resource = ResourceBundle.getBundle(resourceName);
|
||||
|
|
Loading…
Add table
Reference in a new issue