mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-06 03:50:02 +02:00
GT-3347 - code cleanup, code review
Unify char representation and string representation code paths. Add CHAR_SEQ string layout enum. Misc javadocs.
This commit is contained in:
parent
603ca28c01
commit
3faebfebe8
14 changed files with 168 additions and 222 deletions
|
@ -1063,16 +1063,4 @@ public class StringUtilities {
|
|||
}
|
||||
return new String(new int[] { codePoint }, 0, 1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if the specified code point is the 'replacement' code point 0xFFFD,
|
||||
* which is used when decoding bytes into unicode chars and there was a bad or invalid
|
||||
* sequence that does not have a mapping. (ie. decoding byte char 0x80 as US-ASCII)
|
||||
*
|
||||
* @param codePoint to test
|
||||
* @return boolean true if the char is 0xFFFD (ie. UNICODE REPLACEMENT char)
|
||||
*/
|
||||
public static boolean isUnicodeReplacementCodePoint(int codePoint) {
|
||||
return codePoint == UNICODE_REPLACEMENT;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue