mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-13 17:01:16 +00:00
ICU-13005 update APIChangeReport.html (with char16_t/UChar mangling)
X-SVN-Rev: 39967
This commit is contained in:
parent
78ee8a40ed
commit
8e18cecf63
2 changed files with 68 additions and 1409 deletions
File diff suppressed because it is too large
Load diff
|
@ -465,8 +465,9 @@ public class StableAPI {
|
|||
public String version;
|
||||
public String file;
|
||||
public String comparableName;
|
||||
public String comparablePrototype;
|
||||
public boolean equals(Function right){
|
||||
return this.prototype.equals(right.prototype);
|
||||
return this.comparablePrototype.equals(right.comparablePrototype);
|
||||
}
|
||||
static Function fromXml(Node n){
|
||||
Function f = new Function();
|
||||
|
@ -484,6 +485,13 @@ public class StableAPI {
|
|||
|
||||
f.simplifyPrototype();
|
||||
|
||||
f.comparablePrototype = f.prototype;
|
||||
// Modify the prototype here, but don't display it to the user. ( Char16Ptr --> char16_t* etc )
|
||||
for(int i=0; i<aliasList.length; i+=2) {
|
||||
f.comparablePrototype = f.comparablePrototype.replaceAll(aliasList[i+0], aliasList[i+1]);
|
||||
}
|
||||
|
||||
|
||||
if(f.file == null) {
|
||||
f.file = "{null}";
|
||||
} else {
|
||||
|
@ -523,6 +531,17 @@ public class StableAPI {
|
|||
"\\)[ ]*const[ ]*$", ")", // TODO: notify about this difference, separately - remove const from function type
|
||||
};
|
||||
|
||||
/**
|
||||
* This list is applied only for comparisons.
|
||||
* The resulting string is NOT shown to the user.
|
||||
* These should be ignored as far as changes go. func(UChar) === func(char16_t)
|
||||
*/
|
||||
static private String aliasList[] = {
|
||||
"UChar", "char16_t",
|
||||
"ConstChar16Ptr", "const char16_t*",
|
||||
"Char16Ptr", "char16_t*",
|
||||
};
|
||||
|
||||
/**
|
||||
* Special cases:
|
||||
*
|
||||
|
@ -632,11 +651,15 @@ public class StableAPI {
|
|||
// ele.setAttribute("status", status);
|
||||
// return ele;
|
||||
// }
|
||||
|
||||
/**
|
||||
* @Override
|
||||
*/
|
||||
public int compareTo(Function o) {
|
||||
return comparableName.compareTo(((Function)o).comparableName);
|
||||
}
|
||||
public String comparableName() {
|
||||
return file+"|"+prototype+"|"+status+"|"+version+"|"+id;
|
||||
return file+"|"+comparablePrototype+"|"+status+"|"+version+"|"+id;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue