X Tutup
Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public static Map<String, Integer> countDuplicateCharactersVCP1(String str) {
// or, like this (this code produce the same result as the commented code above
int cp = str.codePointAt(i);
String ch = String.valueOf(Character.toChars(cp));
if(Character.charCount(cp) == 2) { // 2 means a suroggate pair
if(Character.charCount(cp) == 2) { // 2 means a surrogate pair
i++;
}

Expand Down
X Tutup