Revert "Unicode: s/codepoint/code_point/g"

This reverts commit ea9ac3155d.
It replaced "codepoint" with "code_points", not "code_point".
This commit is contained in:
Nico Weber 2020-08-05 16:28:19 -04:00 committed by Andreas Kling
commit 19ac1f6368
Notes: sideshowbarker 2024-07-19 04:15:33 +09:00
45 changed files with 449 additions and 449 deletions

View file

@ -126,9 +126,9 @@ String JsonParser::consume_quoted_string()
sb.append(consume());
sb.append(consume());
auto code_points = AK::StringUtils::convert_to_uint_from_hex(sb.to_string());
if (code_points.has_value()) {
final_sb.append_code_points(code_points.value());
auto codepoint = AK::StringUtils::convert_to_uint_from_hex(sb.to_string());
if (codepoint.has_value()) {
final_sb.append_codepoint(codepoint.value());
} else {
final_sb.append('?');
}