1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 05:54:58 +00:00

Unicode: s/codepoint/code_point/g

Unicode calls them "code points" so let's follow their style.
This commit is contained in:
Andreas Kling 2020-08-03 19:06:41 +02:00
parent b139fb9f38
commit ea9ac3155d
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 codepoint = AK::StringUtils::convert_to_uint_from_hex(sb.to_string());
if (codepoint.has_value()) {
final_sb.append_codepoint(codepoint.value());
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());
} else {
final_sb.append('?');
}