/** * Implements Section 1.3.2.4 of Java2IDL Mapping. All non-IDL identifier characters must be replaced with their * Unicode representation. */ static String mangleUnicodeChars(String identifier) { StringBuffer mangledIdentifier = new StringBuffer(); for (int i = 0; i < identifier.length(); i++) { char nextChar = identifier.charAt(i); if (isIDLIdentifierChar(nextChar)) { mangledIdentifier.append(nextChar); } else { String unicode = charToUnicodeRepresentation(nextChar); mangledIdentifier.append(unicode); } } return mangledIdentifier.toString(); }
/** * Implements Section 1.3.2.4 of Java2IDL Mapping. All non-IDL identifier characters must be replaced with their * Unicode representation. */ static String mangleUnicodeChars(String identifier) { StringBuffer mangledIdentifier = new StringBuffer(); for (int i = 0; i < identifier.length(); i++) { char nextChar = identifier.charAt(i); if (isIDLIdentifierChar(nextChar)) { mangledIdentifier.append(nextChar); } else { String unicode = charToUnicodeRepresentation(nextChar); mangledIdentifier.append(unicode); } } return mangledIdentifier.toString(); }